| Package | Description |
|---|---|
| org.fastnate.generator.context | |
| org.fastnate.generator.dialect | |
| org.fastnate.generator.statements |
| Modifier and Type | Method and Description |
|---|---|
GeneratorTable |
TableIdGenerator.getGeneratorTable() |
GeneratorTable |
EntityClass.getTable()
The main table of the entity.
|
GeneratorTable |
GeneratorColumn.getTable()
The table of this column.
|
GeneratorTable |
PluralProperty.getTable()
The modified table.
|
GeneratorTable |
PrimitiveProperty.getTable()
The table of the column.
|
<A extends Annotation> |
GeneratorContext.resolveTable(A annotation,
Function<A,String> catalogName,
Function<A,String> schemaName,
Function<A,String> tableName,
String defaultTableName)
Finds resp. builds the metadata to the given table from the given (optional) annotation.
|
GeneratorTable |
GeneratorContext.resolveTable(String catalogName,
String schemaName,
String tableName)
Finds resp. builds the metadata to the given table.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,GeneratorTable> |
GeneratorContext.getTables()
Mapping from the names of all known database table to their description (including column information).
|
| Modifier and Type | Method and Description |
|---|---|
protected static GeneratorColumn |
PluralProperty.buildValueColumn(GeneratorTable table,
javax.persistence.AssociationOverride override,
AttributeAccessor attribute,
String defaultColumnName)
Builds the column that contains the value for the collection / map.
|
IdGenerator |
IdGenerator.derive(GeneratorTable entityTable)
Some implementations (like the Hibernate table generator) create a different generator, depending on the table
name.
|
IdGenerator |
TableIdGenerator.derive(GeneratorTable currentTable) |
void |
ContextModelListener.foundTable(GeneratorTable table)
Called when a new table was discovered.
|
void |
DefaultContextModelListener.foundTable(GeneratorTable table) |
ColumnExpression |
IdentityValue.getExpression(GeneratorTable entityTable,
GeneratorColumn targetColumn,
Number targetId,
boolean whereExpression) |
abstract ColumnExpression |
IdGenerator.getExpression(GeneratorTable table,
GeneratorColumn column,
Number id,
boolean whereExpression)
Builds the reference to another entity that has the given ID.
|
ColumnExpression |
SequenceIdGenerator.getExpression(GeneratorTable entityTable,
GeneratorColumn column,
Number targetId,
boolean whereExpression) |
ColumnExpression |
TableIdGenerator.getExpression(GeneratorTable table,
GeneratorColumn column,
Number targetId,
boolean whereExpression) |
IdGenerator |
GeneratorContext.getGenerator(javax.persistence.GeneratedValue generatedValue,
GeneratorTable table,
GeneratorColumn column)
Finds the correct generator for the given annotation.
|
void |
GeneratorContext.registerGenerators(AnnotatedElement element,
GeneratorTable table)
Registers the
TableGenerator and SequenceGenerator declared at the given element. |
| Constructor and Description |
|---|
AnyMapping(GeneratorContext context,
AttributeAccessor attribute,
GeneratorTable containerTabble,
javax.persistence.Column typeColumn,
String metaDefName)
Creates a new instance of
AnyMapping. |
EntityProperty(GeneratorContext context,
GeneratorTable containerTable,
AttributeAccessor attribute,
javax.persistence.AssociationOverride override)
Creates a new instance of
EntityProperty. |
GeneratorColumn(GeneratorTable table,
int index,
String name,
boolean autoGenerated) |
IdentityValue(GeneratorContext context,
GeneratorTable table,
GeneratorColumn column) |
PrimitiveProperty(GeneratorContext context,
GeneratorTable table,
AttributeAccessor attribute,
javax.persistence.Column columnMetadata)
Instantiates a new primitive property.
|
PrimitiveProperty(GeneratorContext context,
GeneratorTable table,
AttributeAccessor attribute,
javax.persistence.Column columnMetadata,
boolean autogenerated)
Instantiates a new primitive property.
|
VersionProperty(GeneratorContext context,
GeneratorTable table,
AttributeAccessor attribute,
javax.persistence.Column column)
Creates a new instance of
VersionProperty. |
| Modifier and Type | Method and Description |
|---|---|
void |
GeneratorDialect.adjustNextIdentityValue(StatementsWriter writer,
GeneratorTable table,
GeneratorColumn column,
long nextValue)
Adjusts the next value of the given identity column to ensure that it is bigger than the last generated value.
|
void |
PostgresDialect.adjustNextIdentityValue(StatementsWriter writer,
GeneratorTable table,
GeneratorColumn columnName,
long nextValue) |
void |
GeneratorDialect.truncateTable(StatementsWriter writer,
GeneratorTable table)
Adds a "truncate table" statement to the given writer.
|
void |
PostgresDialect.truncateTable(StatementsWriter writer,
GeneratorTable table) |
| Modifier and Type | Method and Description |
|---|---|
GeneratorTable |
AbstractStatementsWriter.AbstractTableStatement.getTable()
The main table of this update / insert statement.
|
GeneratorTable |
TableStatement.getTable()
The affected table of this update / insert statement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PostgreSqlBulkWriter.closeBulkWriter(GeneratorTable table)
Closes the current writer of the given table (for example when the table structure has changed).
|
TableStatement |
AbstractStatementsWriter.createInsertStatement(GeneratorDialect dialect,
GeneratorTable table) |
TableStatement |
ConnectedStatementsWriter.createInsertStatement(GeneratorDialect dialect,
GeneratorTable table) |
TableStatement |
StatementsWriter.createInsertStatement(GeneratorDialect dialect,
GeneratorTable table)
Creates a container for a dedicated "insert into table" statement.
|
TableStatement |
AbstractStatementsWriter.createUpdateStatement(GeneratorDialect dialect,
GeneratorTable table,
GeneratorColumn idColumn,
ColumnExpression idValue) |
TableStatement |
StatementsWriter.createUpdateStatement(GeneratorDialect dialect,
GeneratorTable table,
GeneratorColumn idColumn,
ColumnExpression idValue)
Creates a container for a dedicated "update table" statement.
|
| Constructor and Description |
|---|
AbstractTableStatement(GeneratorDialect dialect,
GeneratorTable table) |
InsertStatement(GeneratorDialect dialect,
GeneratorTable table)
Creates a new instance of InsertStatement.
|
UpdateStatement(GeneratorDialect dialect,
GeneratorTable table,
GeneratorColumn idColumn,
ColumnExpression idValue)
Creates a new instance of UpdateStatement.
|
Copyright © 2020 fastnate.org. All rights reserved.