T - type of the entity for which this represents a database interaction.public static final class DbAction.Merge<T> extends Object implements DbAction.WithDependingOn<T>, DbAction.WithPropertyPath<T>
DbAction.AcquireLockAllRoot<T>, DbAction.AcquireLockRoot<T>, DbAction.Delete<T>, DbAction.DeleteAll<T>, DbAction.DeleteAllRoot<T>, DbAction.DeleteRoot<T>, DbAction.Insert<T>, DbAction.InsertRoot<T>, DbAction.Merge<T>, DbAction.Update<T>, DbAction.UpdateRoot<T>, DbAction.WithDependingOn<T>, DbAction.WithEntity<T>, DbAction.WithGeneratedId<T>, DbAction.WithPropertyPath<T>| Constructor and Description |
|---|
Merge(T entity,
PersistentPropertyPath<RelationalPersistentProperty> propertyPath,
DbAction.WithEntity<?> dependingOn) |
| Modifier and Type | Method and Description |
|---|---|
DbAction.WithEntity<?> |
getDependingOn()
The
DbAction of a parent entity, possibly the aggregate root. |
T |
getEntity() |
PersistentPropertyPath<RelationalPersistentProperty> |
getPropertyPath() |
Map<PersistentPropertyPath<RelationalPersistentProperty>,Object> |
getQualifiers()
Additional values to be set during insert or update statements.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityType, getQualifierpublic Merge(T entity, PersistentPropertyPath<RelationalPersistentProperty> propertyPath, DbAction.WithEntity<?> dependingOn)
public T getEntity()
getEntity in interface DbAction.WithEntity<T>null.public PersistentPropertyPath<RelationalPersistentProperty> getPropertyPath()
getPropertyPath in interface DbAction.WithPropertyPath<T>public DbAction.WithEntity<?> getDependingOn()
DbAction.WithDependingOnDbAction of a parent entity, possibly the aggregate root. This is used to obtain values needed to
persist the entity, that are not part of the current entity, especially the id of the parent, which might only
become available once the parent entity got persisted.getDependingOn in interface DbAction.WithDependingOn<T>null.DbAction.WithDependingOn.getQualifiers()public Map<PersistentPropertyPath<RelationalPersistentProperty>,Object> getQualifiers()
DbAction.WithDependingOnValues come from parent entities but one might also add values manually.
getQualifiers in interface DbAction.WithDependingOn<T>null.Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.