public static final class GenerationState.PendingState extends GenerationState
| Modifier and Type | Class and Description |
|---|---|
private static class |
GenerationState.PendingState.Update<E> |
GenerationState.PendingState| Modifier and Type | Field and Description |
|---|---|
private List<GenerationState.PendingState.Update<?>> |
updates |
PERSISTED| Constructor and Description |
|---|
PendingState() |
| Modifier and Type | Method and Description |
|---|---|
<E> void |
addPendingUpdate(E entity,
Property<E,?> property,
Object... arguments)
Adds an entity that has to be updated, as soon as the associated entity (of this state) was written.
|
List<GenerationState.PendingState.Update<?>> |
getUpdates() |
<E> void |
writePendingStatements(StatementsWriter writer,
Object entity)
Generates the update statements for all entities that are required after the given entity was generated.
|
private final List<GenerationState.PendingState.Update<?>> updates
@Generated(value="lombok") public PendingState()
public <E> void addPendingUpdate(E entity,
Property<E,?> property,
Object... arguments)
entity - the entity to updateproperty - the property to writearguments - additional arguments to rememberpublic <E> void writePendingStatements(StatementsWriter writer, Object entity) throws IOException
writer - the target of the generated statementsentity - the entity that exists now in the databaseIOException - if the writer throws one@Generated(value="lombok") public List<GenerationState.PendingState.Update<?>> getUpdates()
Copyright © 2022 fastnate.org. All rights reserved.