Package | Description |
---|---|
org.fastnate.generator.context | |
org.fastnate.generator.dialect | |
org.fastnate.generator.statements |
Modifier and Type | Field and Description |
---|---|
private GeneratorTable |
TableIdGenerator.generatorTable |
private GeneratorTable |
EntityClass.table
The main table of the entity.
|
private GeneratorTable |
GeneratorColumn.table
The table of this column.
|
private GeneratorTable |
GeneratorContext.GeneratorId.table |
private GeneratorTable |
IdentityValue.table |
private GeneratorTable |
PluralProperty.table
The modified table.
|
private GeneratorTable |
PrimitiveProperty.table
The table of the column.
|
Modifier and Type | Field and Description |
---|---|
private Map<String,GeneratorTable> |
GeneratorContext.tables
Mapping from the names of all known database table to their description (including column information).
|
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(javax.persistence.AssociationOverride override,
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.
|
private static GeneratorTable |
PluralProperty.resolveTable(GeneratorContext context,
javax.persistence.AssociationOverride override,
javax.persistence.JoinTable joinTable,
javax.persistence.CollectionTable collectionTable,
GeneratorTable sourceEntityTable,
String targetEntityTable) |
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 |
---|---|
(package private) <T> AnyMapping<T> |
EntityProperty.MappingInformation.buildAnyMapping(GeneratorContext context,
GeneratorTable containerTable) |
(package private) <T> AnyMapping<T> |
PluralProperty.EntityMappingInformation.buildAnyMapping(GeneratorContext context,
GeneratorTable containerTable) |
private static GeneratorColumn |
MapProperty.buildKeyColumn(GeneratorTable table,
javax.persistence.MapKeyColumn keyColumn,
String defaultKeyColumn) |
private static GeneratorColumn |
MapProperty.buildKeyColumn(GeneratorTable table,
javax.persistence.MapKeyJoinColumn keyColumn,
String defaultKeyColumn) |
(package private) <X> Property<X,?> |
EntityClass.buildProperty(GeneratorTable propertyTable,
AttributeAccessor attribute,
Map<String,javax.persistence.AttributeOverride> surroundingAttributeOverrides,
Map<String,javax.persistence.AssociationOverride> surroundingAssociationOverrides)
Builds the property for the given attribute.
|
private static GeneratorColumn |
PluralProperty.buildValueColumn(GeneratorTable table,
javax.persistence.AssociationOverride asscoiationOverride,
javax.persistence.AttributeOverride attributeOverride,
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. |
private static GeneratorTable |
PluralProperty.resolveTable(GeneratorContext context,
javax.persistence.AssociationOverride override,
javax.persistence.JoinTable joinTable,
javax.persistence.CollectionTable collectionTable,
GeneratorTable sourceEntityTable,
String targetEntityTable) |
Constructor and Description |
---|
AnyMapping(GeneratorContext context,
AttributeAccessor attribute,
GeneratorTable containerTabble,
javax.persistence.Column typeColumn,
String metaDefName)
Creates a new instance of
AnyMapping . |
EmbeddedProperty(EntityClass<?> entityClass,
GeneratorTable table,
AttributeAccessor attribute,
Map<String,javax.persistence.AttributeOverride> surroundingAttributeOverrides,
Map<String,javax.persistence.AssociationOverride> surroundingAssociationOverrides)
Instantiates a new embedded property.
|
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) |
GeneratorId(String id,
GeneratorTable table) |
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.
|
TableIdGenerator(GeneratorDialect dialect,
boolean relativeIds,
GeneratorTable generatorTable,
GeneratorColumn pkColumn,
ColumnExpression pkColumnValue,
GeneratorColumn valueColumn,
int allocationSize,
long initialValue,
long nextValue,
long maxAllocatedValue) |
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 | Field and Description |
---|---|
private GeneratorTable |
AbstractStatementsWriter.AbstractTableStatement.table
The main table of this update / insert statement.
|
Modifier and Type | Field and Description |
---|---|
private Map<GeneratorTable,List<ConnectedStatementsWriter.PreparedInsertStatement>> |
ConnectedStatementsWriter.availablePreparedStatements
All available prepared statements per table.
|
private Map<GeneratorTable,List<ConnectedStatementsWriter.PreparedInsertStatement>> |
ConnectedStatementsWriter.ContextListener.availablePreparedStatements |
private Map<GeneratorTable,Writer> |
PostgreSqlBulkWriter.bulkWriters
The open bulk files for each table.
|
private Map<GeneratorTable,Integer> |
PostgreSqlBulkWriter.fileNumbers
Remembers for each table which files we've already generated.
|
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.
|
private Writer |
PostgreSqlBulkWriter.findBulkWriter(GeneratorTable generatorTable,
GeneratorDialect dialect) |
Constructor and Description |
---|
AbstractTableStatement(GeneratorDialect dialect,
GeneratorTable table) |
InsertStatement(GeneratorDialect dialect,
GeneratorTable table)
Creates a new instance of InsertStatement.
|
PreparedInsertStatement(GeneratorDialect dialect,
Connection connection,
GeneratorTable table) |
UpdateStatement(GeneratorDialect dialect,
GeneratorTable table,
GeneratorColumn idColumn,
ColumnExpression idValue)
Creates a new instance of UpdateStatement.
|
Constructor and Description |
---|
ContextListener(GeneratorContext context,
Statement plainStatement,
List<ConnectedStatementsWriter.PreparedInsertStatement> preparedStatements,
Map<GeneratorTable,List<ConnectedStatementsWriter.PreparedInsertStatement>> availablePreparedStatements) |
Copyright © 2022 fastnate.org. All rights reserved.