Uses of Class
org.fastnate.generator.context.GeneratorTable
Packages that use GeneratorTable
Package
Description
-
Uses of GeneratorTable in org.fastnate.generator.context
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.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 TypeMethodDescriptionIdGenerator.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) 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.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.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
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.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.protectedUpdateStatement(GeneratorDialect dialect, GeneratorTable table, GeneratorColumn idColumn, ColumnExpression idValue) Creates a new instance of UpdateStatement.