public abstract class DbAction<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DbAction.Delete<T>
Represents an delete statement, possibly a cascading delete statement, i.e. the delete necessary because one
aggregate root gets deleted.
|
static class |
DbAction.DeleteAll<T>
Represents an delete statement.
|
static class |
DbAction.Insert<T>
Represents an insert statement.
|
static class |
DbAction.Update<T>
Represents an update statement.
|
Modifier and Type | Method and Description |
---|---|
static <T> DbAction.Delete<T> |
delete(Object id,
Class<T> type,
T entity,
JdbcPropertyPath propertyPath,
DbAction dependingOn) |
static <T> DbAction.DeleteAll<T> |
deleteAll(Class<T> type,
JdbcPropertyPath propertyPath,
DbAction dependingOn) |
protected abstract void |
doExecuteWith(Interpreter interpreter)
Executing this DbAction with the given
Interpreter without any exception handling. |
Map<String,Object> |
getAdditionalValues()
Key-value-pairs to specify additional values to be used with the statement which can't be obtained from the entity,
nor from
DbAction s this depends on. |
DbAction |
getDependingOn()
Another action, this action depends on.
|
T |
getEntity()
The entity of which the database representation is affected by this action.
|
Class<T> |
getEntityType()
Class of the entity of which the database representation is affected by this action. |
JdbcPropertyPath |
getPropertyPath()
The path from the Aggregate Root to the entity affected by this
DbAction . |
static <T> DbAction.Insert<T> |
insert(T entity,
JdbcPropertyPath propertyPath,
DbAction dependingOn) |
String |
toString() |
static <T> DbAction.Update<T> |
update(T entity,
JdbcPropertyPath propertyPath,
DbAction dependingOn) |
public static <T> DbAction.Insert<T> insert(T entity, JdbcPropertyPath propertyPath, DbAction dependingOn)
public static <T> DbAction.Update<T> update(T entity, JdbcPropertyPath propertyPath, DbAction dependingOn)
public static <T> DbAction.Delete<T> delete(Object id, Class<T> type, T entity, JdbcPropertyPath propertyPath, DbAction dependingOn)
public static <T> DbAction.DeleteAll<T> deleteAll(Class<T> type, JdbcPropertyPath propertyPath, DbAction dependingOn)
protected abstract void doExecuteWith(Interpreter interpreter)
Interpreter
without any exception handling.interpreter
- the Interpreter
responsible for actually executing the DbAction
.@Generated(value="lombok") public String toString()
@Generated(value="lombok") public Class<T> getEntityType()
Class
of the entity of which the database representation is affected by this action.@Generated(value="lombok") public T getEntity()
@Generated(value="lombok") public JdbcPropertyPath getPropertyPath()
DbAction
.@Generated(value="lombok") public Map<String,Object> getAdditionalValues()
DbAction
s this depends on. A used case are map keys, which need to be persisted with
the map value but aren't part of the value.@Generated(value="lombok") public DbAction getDependingOn()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.