Package | Description |
---|---|
org.fastnate.generator | |
org.fastnate.generator.context | |
org.fastnate.generator.dialect | |
org.fastnate.generator.statements |
Modifier and Type | Method and Description |
---|---|
protected void |
EntitySqlGenerator.writeStatement(EntityStatement stmt)
Writes the given statement to the
EntitySqlGenerator.writer . |
Modifier and Type | Method and Description |
---|---|
List<? extends EntityStatement> |
TableIdGenerator.alignNextValue() |
List<? extends EntityStatement> |
SequenceIdGenerator.alignNextValue() |
abstract List<? extends EntityStatement> |
IdGenerator.alignNextValue()
Creates all statements that are necessary to set the next value created from the database is
currentValue + 1 . |
List<? extends EntityStatement> |
IdentityValue.alignNextValue() |
List<EntityStatement> |
Property.createPostInsertStatements(E entity)
Creates additional SQL statements that are necessary after this property is written (e.g. for mapping tables) .
|
List<EntityStatement> |
MapProperty.createPostInsertStatements(E entity) |
List<EntityStatement> |
EntityClass.createPostInsertStatements(E entity)
Marks an entity as written and creates any pending update / insert statements.
|
List<EntityStatement> |
EmbeddedProperty.createPostInsertStatements(E entity) |
List<EntityStatement> |
CollectionProperty.createPostInsertStatements(E entity) |
List<? extends EntityStatement> |
TableIdGenerator.createPreInsertStatements() |
List<? extends EntityStatement> |
SequenceIdGenerator.createPreInsertStatements() |
abstract List<? extends EntityStatement> |
IdGenerator.createPreInsertStatements()
Creates the statements that are needed in the output before
IdGenerator.addNextValue(InsertStatement, String, Number) . |
List<EntityStatement> |
IdentityValue.createPreInsertStatements() |
List<? extends EntityStatement> |
Property.createPreInsertStatements(E entity)
Creates SQL statements that are necessary before this property is written (e.g. for updating the table
generator).
|
List<? extends EntityStatement> |
GeneratedIdProperty.createPreInsertStatements(E entity) |
List<EntityStatement> |
EmbeddedProperty.createPreInsertStatements(E entity) |
List<EntityStatement> |
Property.generatePendingStatements(E entity,
Object writtenEntity,
Object... arguments)
Generates the update statements for an entity that are required after another entity was generated.
|
List<EntityStatement> |
MapProperty.generatePendingStatements(E entity,
Object writtenEntity,
Object... arguments) |
List<EntityStatement> |
EntityProperty.generatePendingStatements(E entity,
Object writtenEntity,
Object... arguments) |
List<EntityStatement> |
CollectionProperty.generatePendingStatements(E entity,
Object writtenEntity,
Object... arguments) |
<E> List<EntityStatement> |
GenerationState.PendingState.generatePendingStatements(Object entity)
Generates the update statements for all entities that are required after the given entity was generated.
|
List<EntityStatement> |
GeneratorContext.getAlignmentStatements()
Builds all statements that are necessary to align ID generators in the database with the current IDs.
|
Modifier and Type | Method and Description |
---|---|
List<? extends EntityStatement> |
PostgresDialect.adjustNextIdentityValue(String tableName,
String columnName,
long nextValue) |
List<? extends EntityStatement> |
GeneratorDialect.adjustNextIdentityValue(String tableName,
String columnName,
long nextValue)
Adjusts the next value of the given identity column to ensure that it is bigger than the last generated value.
|
List<? extends EntityStatement> |
OracleDialect.adjustNextSequenceValue(String sequenceName,
long currentSequenceValue,
long nextSequenceValue,
int incrementSize) |
List<? extends EntityStatement> |
MySqlDialect.adjustNextSequenceValue(String sequenceName,
long currentSequenceValue,
long nextSequenceValue,
int incrementSize) |
List<? extends EntityStatement> |
GeneratorDialect.adjustNextSequenceValue(String sequenceName,
long currentSequenceValue,
long nextSequenceValue,
int incrementSize)
Adjusts the given sequence to ensure that the next value is exactly the given value.
|
Modifier and Type | Method and Description |
---|---|
String |
MySqlDialect.createSql(EntityStatement stmt)
Replace any subselect in an insert statement, if the same table is selected.
|
String |
GeneratorDialect.createSql(EntityStatement stmt)
Creates an SQL statement from the given insert statement.
|
Modifier and Type | Class and Description |
---|---|
class |
InsertStatement
Holds the information for an SQL Insert statement.
|
class |
PlainStatement
A single (unparsed) SQL statement.
|
class |
TableStatement
A SQL statement that affects a table and a set of columns.
|
class |
UpdateStatement
Holds the information for an SQL update statement.
|
Copyright © 2016 fastnate.org. All rights reserved.