Uses of Class
org.fastnate.generator.context.GeneratorTable
Packages that use GeneratorTable
Package
Description
-
Uses of GeneratorTable in org.fastnate.generator.context
Fields in org.fastnate.generator.context declared as GeneratorTableModifier and TypeFieldDescriptionprivate final GeneratorTableTableIdGenerator.generatorTableprivate GeneratorTableEntityClass.tableThe main table of the entity.private final GeneratorTableGeneratorColumn.tableThe table of this column.private final GeneratorTableIdentityValue.tableprivate final GeneratorTablePluralProperty.tableThe modified table.private final GeneratorTablePrimitiveProperty.tableThe table of the column.Fields in org.fastnate.generator.context with type parameters of type GeneratorTableModifier and TypeFieldDescriptionprivate final Map<String, GeneratorTable> GeneratorContext.tablesMapping from the names of all known database table to their description (including column information).Methods in org.fastnate.generator.context that return GeneratorTableModifier and TypeMethodDescriptionTableIdGenerator.getGeneratorTable()EntityClass.getTable()The main table of the entity.GeneratorColumn.getTable()The table of this column.PluralProperty.getTable()The modified table.PrimitiveProperty.getTable()The table of the column.<A extends Annotation>
GeneratorTableGeneratorContext.resolveTable(jakarta.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.GeneratorContext.resolveTable(String catalogName, String schemaName, String tableName) Finds resp. builds the metadata to the given table.private static GeneratorTablePluralProperty.resolveTable(GeneratorContext context, jakarta.persistence.AssociationOverride override, jakarta.persistence.JoinTable joinTable, jakarta.persistence.CollectionTable collectionTable, GeneratorTable sourceEntityTable, String targetEntityTable) Methods in org.fastnate.generator.context that return types with arguments of type GeneratorTableModifier and TypeMethodDescriptionGeneratorContext.getTables()Mapping from the names of all known database table to their description (including column information).Methods in org.fastnate.generator.context with parameters of type GeneratorTableModifier and TypeMethodDescriptionprivate static GeneratorColumnMapProperty.buildKeyColumn(GeneratorTable table, jakarta.persistence.MapKeyColumn keyColumn, String defaultKeyColumn) private static GeneratorColumnMapProperty.buildKeyColumn(GeneratorTable table, jakarta.persistence.MapKeyJoinColumn keyColumn, String defaultKeyColumn) private static GeneratorColumnPluralProperty.buildValueColumn(GeneratorTable table, jakarta.persistence.AssociationOverride asscoiationOverride, jakarta.persistence.AttributeOverride attributeOverride, AttributeAccessor attribute, String defaultColumnName) Builds the column that contains the value for the collection / map.IdGenerator.derive(GeneratorTable entityTable) Some implementations (like the Hibernate table generator) create a different generator, depending on the table name.TableIdGenerator.derive(GeneratorTable currentTable) voidContextModelListener.foundTable(GeneratorTable table) Called when a new table was discovered.voidDefaultContextModelListener.foundTable(GeneratorTable table) private IdGeneratorGeneratorContext.getDefaultSequenceGenerator(GeneratorTable table) private IdGeneratorGeneratorContext.getDefaultTableGenerator(GeneratorTable table) IdentityValue.getExpression(GeneratorTable entityTable, GeneratorColumn targetColumn, Number targetId, boolean whereExpression) abstract ColumnExpressionIdGenerator.getExpression(GeneratorTable table, GeneratorColumn column, Number id, boolean whereExpression) Builds the reference to another entity that has the given ID.SequenceIdGenerator.getExpression(GeneratorTable entityTable, GeneratorColumn column, Number targetId, boolean whereExpression) TableIdGenerator.getExpression(GeneratorTable table, GeneratorColumn column, Number targetId, boolean whereExpression) GeneratorContext.getGenerator(jakarta.persistence.GeneratedValue generatedValue, GeneratorTable table, GeneratorColumn column) Finds the correct generator for the given annotation.voidGeneratorContext.registerGenerators(AnnotatedElement element, GeneratorTable table) Registers theTableGeneratorandSequenceGeneratordeclared at the given element.private static GeneratorColumnEntityProperty.resolveJoinColumn(GeneratorTable containerTable, AttributeAccessor attribute, jakarta.persistence.AssociationOverride override, EntityClass<?> targetClass) private static GeneratorTablePluralProperty.resolveTable(GeneratorContext context, jakarta.persistence.AssociationOverride override, jakarta.persistence.JoinTable joinTable, jakarta.persistence.CollectionTable collectionTable, GeneratorTable sourceEntityTable, String targetEntityTable) Constructors in org.fastnate.generator.context with parameters of type GeneratorTableModifierConstructorDescriptionEmbeddedProperty(EntityClass<?> entityClass, GeneratorTable table, AttributeAccessor attribute, Map<String, jakarta.persistence.AttributeOverride> surroundingAttributeOverrides, Map<String, jakarta.persistence.AssociationOverride> surroundingAssociationOverrides) Instantiates a new embedded property.EntityProperty(GeneratorContext context, GeneratorTable containerTable, AttributeAccessor attribute, jakarta.persistence.AssociationOverride override) Creates a new instance ofEntityProperty.GeneratorColumn(GeneratorTable table, int index, String name, String qualifiedName, boolean autoGenerated) Creates a newGeneratorColumninstance.IdentityValue(GeneratorContext context, GeneratorTable table, GeneratorColumn column) PrimitiveProperty(GeneratorContext context, GeneratorTable table, AttributeAccessor attribute, jakarta.persistence.Column columnMetadata) Instantiates a new primitive property.PrimitiveProperty(GeneratorContext context, GeneratorTable table, AttributeAccessor attribute, jakarta.persistence.Column columnMetadata, boolean autogenerated) Instantiates a new primitive property.privateTableIdGenerator(GeneratorContext context, boolean relativeIds, GeneratorTable generatorTable, GeneratorColumn pkColumn, ColumnExpression pkColumnValue, GeneratorColumn valueColumn, int allocationSize, long initialValue, long nextValue, long maxAllocatedValue) Creates a newTableIdGeneratorinstance.VersionProperty(GeneratorContext context, GeneratorTable table, AttributeAccessor attribute, jakarta.persistence.Column column) Creates a new instance ofVersionProperty. -
Uses of GeneratorTable in org.fastnate.generator.dialect
Methods in org.fastnate.generator.dialect with parameters of type GeneratorTableModifier and TypeMethodDescriptionvoidGeneratorDialect.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.voidPostgresDialect.adjustNextIdentityValue(StatementsWriter writer, GeneratorTable table, GeneratorColumn columnName, long nextValue) voidGeneratorDialect.truncateTable(StatementsWriter writer, GeneratorTable table) Adds a "truncate table" statement to the given writer.voidPostgresDialect.truncateTable(StatementsWriter writer, GeneratorTable table) -
Uses of GeneratorTable in org.fastnate.generator.provider
Methods in org.fastnate.generator.provider with parameters of type GeneratorTableModifier and TypeMethodDescriptiondefault <E,X> Property <X, ?> JpaProvider.buildProperty(EntityClass<E> entityClass, GeneratorTable propertyTable, AttributeAccessor attribute, Map<String, jakarta.persistence.AttributeOverride> surroundingAttributeOverrides, Map<String, jakarta.persistence.AssociationOverride> surroundingAssociationOverrides) Builds the property for the given attribute. -
Uses of GeneratorTable in org.fastnate.generator.statements
Fields in org.fastnate.generator.statements declared as GeneratorTableModifier and TypeFieldDescriptionprivate final GeneratorTableAbstractStatementsWriter.AbstractTableStatement.tableThe main table of this update / insert statement.Fields in org.fastnate.generator.statements with type parameters of type GeneratorTableModifier and TypeFieldDescriptionprivate final Map<GeneratorTable, List<ConnectedStatementsWriter.PreparedInsertStatement>> ConnectedStatementsWriter.availablePreparedStatementsAll available prepared statements per table.private final Map<GeneratorTable, List<ConnectedStatementsWriter.PreparedInsertStatement>> ConnectedStatementsWriter.ContextListener.availablePreparedStatementsprivate final Map<GeneratorTable, Writer> PostgreSqlBulkWriter.bulkWritersThe open bulk files for each table.private final Map<GeneratorTable, Integer> PostgreSqlBulkWriter.fileNumbersRemembers for each table which files we've already generated.Methods in org.fastnate.generator.statements that return GeneratorTableModifier and TypeMethodDescriptionAbstractStatementsWriter.AbstractTableStatement.getTable()The main table of this update / insert statement.TableStatement.getTable()The affected table of this update / insert statement.Methods in org.fastnate.generator.statements with parameters of type GeneratorTableModifier and TypeMethodDescriptionvoidPostgreSqlBulkWriter.closeBulkWriter(GeneratorTable table) Closes the current writer of the given table (for example when the table structure has changed).AbstractStatementsWriter.createInsertStatement(GeneratorDialect dialect, GeneratorTable table) ConnectedStatementsWriter.createInsertStatement(GeneratorDialect dialect, GeneratorTable table) StatementsWriter.createInsertStatement(GeneratorDialect dialect, GeneratorTable table) Creates a container for a dedicated "insert into table" statement.AbstractStatementsWriter.createUpdateStatement(GeneratorDialect dialect, GeneratorTable table, GeneratorColumn idColumn, ColumnExpression idValue) StatementsWriter.createUpdateStatement(GeneratorDialect dialect, GeneratorTable table, GeneratorColumn idColumn, ColumnExpression idValue) Creates a container for a dedicated "update table" statement.private WriterPostgreSqlBulkWriter.findBulkWriter(GeneratorTable generatorTable, GeneratorDialect dialect) Constructors in org.fastnate.generator.statements with parameters of type GeneratorTableModifierConstructorDescriptionAbstractTableStatement(GeneratorDialect dialect, GeneratorTable table) Creates a newAbstractTableStatementinstance.InsertStatement(GeneratorDialect dialect, GeneratorTable table) Creates a new instance of InsertStatement.(package private)PreparedInsertStatement(GeneratorDialect dialect, Connection connection, GeneratorTable table) protectedUpdateStatement(GeneratorDialect dialect, GeneratorTable table, GeneratorColumn idColumn, ColumnExpression idValue) Creates a new instance of UpdateStatement.Constructor parameters in org.fastnate.generator.statements with type arguments of type GeneratorTableModifierConstructorDescriptionContextListener(GeneratorContext context, Statement plainStatement, List<ConnectedStatementsWriter.PreparedInsertStatement> preparedStatements, Map<GeneratorTable, List<ConnectedStatementsWriter.PreparedInsertStatement>> availablePreparedStatements)