T - type of the entity for which this represents a database interaction.public static class DbAction.Insert<T> extends Object implements DbAction.WithGeneratedId<T>, DbAction.WithDependingOn<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 |
|---|
Insert(T entity,
@NonNull PersistentPropertyPath<RelationalPersistentProperty> propertyPath,
@NonNull DbAction.WithEntity<?> dependingOn) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
void |
doExecuteWith(Interpreter interpreter)
Executing this DbAction with the given
Interpreter without any exception handling. |
boolean |
equals(Object o) |
@NonNull DbAction.WithEntity<?> |
getDependingOn()
The
DbAction of a parent entity, possibly the aggregate root. |
T |
getEntity() |
Class<T> |
getEntityType() |
Object |
getGeneratedId() |
@NonNull PersistentPropertyPath<RelationalPersistentProperty> |
getPropertyPath() |
Map<PersistentPropertyPath<RelationalPersistentProperty>,Object> |
getQualifiers()
Additional values to be set during insert or update statements.
|
int |
hashCode() |
void |
setGeneratedId(Object generatedId) |
void |
setQualifiers(Map<PersistentPropertyPath<RelationalPersistentProperty>,Object> qualifiers) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetQualifierexecuteWithpublic Insert(@NonNull
T entity,
@NonNull
@NonNull PersistentPropertyPath<RelationalPersistentProperty> propertyPath,
@NonNull
@NonNull DbAction.WithEntity<?> dependingOn)
public void doExecuteWith(Interpreter interpreter)
DbActionInterpreter without any exception handling.doExecuteWith in interface DbAction<T>interpreter - the Interpreter responsible for actually executing the DbAction.public Class<T> getEntityType()
getEntityType in interface DbAction<T>getEntityType in interface DbAction.WithDependingOn<T>getEntityType in interface DbAction.WithEntity<T>getEntityType in interface DbAction.WithGeneratedId<T>getEntityType in interface DbAction.WithPropertyPath<T>@NonNull public T getEntity()
getEntity in interface DbAction.WithEntity<T>null.@NonNull public @NonNull PersistentPropertyPath<RelationalPersistentProperty> getPropertyPath()
getPropertyPath in interface DbAction.WithPropertyPath<T>@NonNull public @NonNull 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.public Object getGeneratedId()
getGeneratedId in interface DbAction.WithGeneratedId<T>null.public void setQualifiers(Map<PersistentPropertyPath<RelationalPersistentProperty>,Object> qualifiers)
public void setGeneratedId(Object generatedId)
protected boolean canEqual(Object other)
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.