T
- type of the entity for which this represents a database interaction.public static class DbAction.InsertRoot<T> extends Object implements DbAction.WithVersion, DbAction.WithGeneratedId<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>, DbAction.WithVersion
Constructor and Description |
---|
InsertRoot(T entity) |
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) |
T |
getEntity() |
Object |
getGeneratedId() |
Number |
getNextVersion() |
int |
hashCode() |
void |
setGeneratedId(Object generatedId) |
void |
setNextVersion(Number nextVersion) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEntityType
executeWith
public InsertRoot(@NonNull T entity)
public void doExecuteWith(Interpreter interpreter)
DbAction
Interpreter
without any exception handling.doExecuteWith
in interface DbAction<T>
interpreter
- the Interpreter
responsible for actually executing the DbAction
.@NonNull public T getEntity()
getEntity
in interface DbAction.WithEntity<T>
null
.public Number getNextVersion()
getNextVersion
in interface DbAction.WithVersion
public Object getGeneratedId()
getGeneratedId
in interface DbAction.WithGeneratedId<T>
null
.public void setNextVersion(Number nextVersion)
setNextVersion
in interface DbAction.WithVersion
public void setGeneratedId(Object generatedId)
protected boolean canEqual(Object other)
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.