Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- absoluteIds - Variable in class org.fastnate.generator.context.GeneratedIdProperty
-
Shortcut for the inverse of
GeneratorContext.isWriteRelativeIds(). - AbstractDateConverter<T> - Class in org.fastnate.generator.converter
- AbstractDateConverter(TemporalType) - Constructor for class org.fastnate.generator.converter.AbstractDateConverter
- AbstractDateConverter(AttributeAccessor, boolean) - Constructor for class org.fastnate.generator.converter.AbstractDateConverter
-
Creates a new instance of this
AbstractDateConverter. - AbstractStatementsWriter - Class in org.fastnate.generator.statements
-
Base class for implementations of
StatementsWriter. - AbstractStatementsWriter() - Constructor for class org.fastnate.generator.statements.AbstractStatementsWriter
- AbstractStatementsWriter.AbstractTableStatement - Class in org.fastnate.generator.statements
-
Base class for insert and update statements.
- AbstractStatementsWriter.InsertStatement - Class in org.fastnate.generator.statements
-
Holds the information for an SQL Insert statement.
- AbstractStatementsWriter.PlainStatement - Class in org.fastnate.generator.statements
-
A single (unparsed) SQL statement.
- AbstractStatementsWriter.UpdateStatement - Class in org.fastnate.generator.statements
-
Holds the information for an SQL update statement.
- AbstractTableStatement(GeneratorDialect, GeneratorTable) - Constructor for class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
Creates a new
AbstractTableStatementinstance. - accessStyle - Variable in class org.fastnate.generator.context.EntityClass
-
The type of access that is used for the properties (field access or bean property access).
- AccessStyle - Enum Class in org.fastnate.generator.context
-
Indicates how persistent attributes are accessed.
- AccessStyle() - Constructor for enum class org.fastnate.generator.context.AccessStyle
- addColumns(StringBuilder, Collection<T>, BiConsumer<StringBuilder, T>) - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.InsertStatement
-
Adds columns to an SQL expression.
- addContextModelListener(ContextModelListener) - Method in class org.fastnate.generator.context.GeneratorContext
-
Adds a new listener to this context.
- addContextObject(Map<K, ? super T>, BiConsumer<ContextModelListener, ? super T>, K, T) - Method in class org.fastnate.generator.context.GeneratorContext
- addInsertExpression(TableStatement, E) - Method in class org.fastnate.generator.context.EmbeddedProperty
- addInsertExpression(TableStatement, E) - Method in class org.fastnate.generator.context.EntityProperty
- addInsertExpression(TableStatement, E) - Method in class org.fastnate.generator.context.GeneratedIdProperty
- addInsertExpression(TableStatement, E) - Method in class org.fastnate.generator.context.PluralProperty
- addInsertExpression(TableStatement, E) - Method in class org.fastnate.generator.context.PrimitiveProperty
- addInsertExpression(TableStatement, E) - Method in class org.fastnate.generator.context.Property
-
Adds an expression according to the current value of the property for the given entity to an SQL insert statement.
- additionalProperties - Variable in class org.fastnate.generator.context.EntityClass
-
Properties of this entity, excluding the
EntityClass.idPropertyor properties fromEntityClass.joinedParentClass. - addNextValue(TableStatement, GeneratorColumn, Number) - Method in class org.fastnate.generator.context.IdentityValue
- addNextValue(TableStatement, GeneratorColumn, Number) - Method in class org.fastnate.generator.context.IdGenerator
-
Adds the generated value to the given statement.
- addNextValue(TableStatement, GeneratorColumn, Number) - Method in class org.fastnate.generator.context.SequenceIdGenerator
- addNextValue(TableStatement, GeneratorColumn, Number) - Method in class org.fastnate.generator.context.TableIdGenerator
- addPendingUpdate(E, Property<E, ?>, Object...) - Method in class org.fastnate.generator.context.GenerationState.PendingState
-
Adds an entity that has to be updated, as soon as the associated entity (of this state) was written.
- addQuotedCharacter(StringBuilder, char) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Adds a quoted character to the result string buffer.
- addQuotedCharacter(StringBuilder, char) - Method in class org.fastnate.generator.dialect.MsSqlDialect
- addQuotedCharacter(StringBuilder, char) - Method in class org.fastnate.generator.dialect.PostgresDialect
- adjustIdentifier(String) - Method in class org.fastnate.generator.context.GeneratorContext
-
Quotes an object in the current database dialect, if it is marked for quoting with surrounding '"' or '`' in the column definition or if we
quote all identifiers. - adjustNextIdentityValue(StatementsWriter, GeneratorTable, GeneratorColumn, long) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Adjusts the next value of the given identity column to ensure that it is bigger than the last generated value.
- adjustNextIdentityValue(StatementsWriter, GeneratorTable, GeneratorColumn, long) - Method in class org.fastnate.generator.dialect.PostgresDialect
- adjustNextSequenceValue(StatementsWriter, String, long, long, int) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Adjusts the given sequence to ensure that the next value is exactly the given value.
- adjustNextSequenceValue(StatementsWriter, String, long, long, int) - Method in class org.fastnate.generator.dialect.OracleDialect
- alignNextValue(StatementsWriter) - Method in class org.fastnate.generator.context.IdentityValue
- alignNextValue(StatementsWriter) - Method in class org.fastnate.generator.context.IdGenerator
-
Creates all statements that are necessary to set the next value created from the database is
currentValue + 1. - alignNextValue(StatementsWriter) - Method in class org.fastnate.generator.context.SequenceIdGenerator
- alignNextValue(StatementsWriter) - Method in class org.fastnate.generator.context.TableIdGenerator
- all - Enum constant in enum class org.fastnate.generator.context.UniquePropertyQuality
-
All primitives or entity references are allowed.
- allocationSize - Variable in class org.fastnate.generator.context.SequenceIdGenerator
-
The amount to increment by when allocating sequence numbers from the sequence.
- allocationSize - Variable in class org.fastnate.generator.context.TableIdGenerator
- allProperties - Variable in class org.fastnate.generator.context.EntityClass
-
All properties of this entity, including
EntityClass.idPropertyand properties fromEntityClass.joinedParentClass. - allUniqueProperties - Variable in class org.fastnate.generator.context.EntityClass
-
All available sets of properties that make up an additional unique identifier for the entities.
- AnnotationDefaults - Class in org.fastnate.generator.context
-
Creates an implementation of an annotation class to access the default values for the single values.
- AnnotationDefaults(Map<String, Object>) - Constructor for class org.fastnate.generator.context.AnnotationDefaults
- appendSql(StringBuilder) - Method in interface org.fastnate.generator.statements.ColumnExpression
-
Adds the SQL for this expression to the given
StringBuilder. - arguments - Variable in class org.fastnate.generator.context.GenerationState.PendingState.Update
- associationOverrides - Variable in class org.fastnate.generator.context.EntityClass
-
All association overriddes of this class and the parent classes.
- attribute - Variable in class org.fastnate.generator.context.Property
-
Used to access the value of the property.
- AttributeAccessor - Interface in org.fastnate.generator.context
-
Offers access to a persistent attribute in an entity class.
- attributeName - Variable in class org.fastnate.generator.converter.StringConverter
- attributeName - Variable in class org.fastnate.generator.converter.UnsupportedTypeConverter
- attributeOverrides - Variable in class org.fastnate.generator.context.EntityClass
-
All attribute overriddes of this class and the parent classes.
- autoGenerated - Variable in class org.fastnate.generator.context.GeneratorColumn
-
Indicates that the values of this column are not part of an insert statement, because they are generated by the database.
- availableColumns - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- availablePreparedStatements - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
All available prepared statements per table.
- availablePreparedStatements - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter.ContextListener
B
- batchCount - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The count of statements executed in the current batch.
- batchSupported - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Indicates that the database connection supports batch statements.
- BooleanConverter - Class in org.fastnate.generator.converter
-
Converts a boolean to a SQL expression.
- BooleanConverter() - Constructor for class org.fastnate.generator.converter.BooleanConverter
- build() - Method in class org.fastnate.generator.context.EntityClass
-
Reads the metadata from
EntityClass.entityClassand fills all other properties. - buildConnection(GeneratorContext) - Static method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- buildCurrentSequenceValue(String, int, boolean) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Builds the SQL expression that is used for referencing the current value of the given sequence.
- buildCurrentSequenceValue(String, int, boolean) - Method in class org.fastnate.generator.dialect.MsSqlDialect
- buildCurrentSequenceValue(String, int, boolean) - Method in class org.fastnate.generator.dialect.OracleDialect
- buildCurrentSequenceValue(String, int, boolean) - Method in class org.fastnate.generator.dialect.PostgresDialect
- buildDiscriminator() - Method in class org.fastnate.generator.context.EntityClass
- buildDiscriminator(EntityClass<?>, DiscriminatorColumn) - Method in class org.fastnate.generator.context.EntityClass
- buildEmbeddedProperties(EntityClass<?>, Class<?>) - Method in class org.fastnate.generator.context.PluralProperty
-
Builds the embedded properties of this property.
- buildErrorMessage(String, Object...) - Static method in exception class org.fastnate.generator.context.ModelException
-
Builds the error message from the given message and parameters.
- buildGenerators(Class<?>) - Method in class org.fastnate.generator.context.EntityClass
-
Fills the generators of the
EntityClass.context. - buildIdColumn(AttributeAccessor, AssociationOverride, CollectionTable, String) - Static method in class org.fastnate.generator.context.PluralProperty
-
Builds the name of the column that contains the ID of the entity for the given attribute.
- buildIdColumn(AttributeAccessor, AssociationOverride, JoinColumn[], String) - Static method in class org.fastnate.generator.context.PluralProperty
- buildIdColumn(AttributeAccessor, AssociationOverride, JoinTable, CollectionTable, String) - Static method in class org.fastnate.generator.context.PluralProperty
- buildIdProperty(Class<? super E>) - Method in class org.fastnate.generator.context.EntityClass
-
Fills the
EntityClass.idProperty. - buildInheritance() - Method in class org.fastnate.generator.context.EntityClass
-
Determine the inheritance type and discriminator properties.
- buildKeyColumn(GeneratorTable, MapKeyColumn, String) - Static method in class org.fastnate.generator.context.MapProperty
- buildKeyColumn(GeneratorTable, MapKeyJoinColumn, String) - Static method in class org.fastnate.generator.context.MapProperty
- buildNextSequenceValue(String, int) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Builds the SQL expression resp. statement that is used for creating the next value of the given sequence.
- buildNextSequenceValue(String, int) - Method in class org.fastnate.generator.dialect.MsSqlDialect
- buildNextSequenceValue(String, int) - Method in class org.fastnate.generator.dialect.OracleDialect
- buildOverrides(Class<? super E>) - Method in class org.fastnate.generator.context.EntityClass
- buildPrimaryKeyJoinColumn() - Method in class org.fastnate.generator.context.EntityClass
- buildProperties(Class<? super E>, Class<? super E>) - Method in class org.fastnate.generator.context.EntityClass
-
Fills the
EntityClass.properties. - buildProperty(EntityClass<E>, GeneratorTable, AttributeAccessor, Map<String, AttributeOverride>, Map<String, AssociationOverride>) - Method in interface org.fastnate.generator.provider.JpaProvider
-
Builds the property for the given attribute.
- buildQualifiedName(String, String, String) - Method in class org.fastnate.generator.context.GeneratorContext
-
Builds the fully qualified name for the given database object.
- buildUniqueProperties(UniqueConstraint[]) - Method in class org.fastnate.generator.context.EntityClass
- buildUniqueProperty(SingularProperty<E, ?>) - Method in class org.fastnate.generator.context.EntityClass
- buildValueColumn(GeneratorTable, AssociationOverride, AttributeOverride, AttributeAccessor, String) - Static method in class org.fastnate.generator.context.PluralProperty
-
Builds the column that contains the value for the collection / map.
- builtListeners - Variable in class org.fastnate.generator.context.EntityClass
-
The list of listeners that are informed when this class has finished to build all properties.
- bulkWriters - Variable in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
The open bulk files for each table.
C
- CalendarConverter - Class in org.fastnate.generator.converter
-
Converts a calendar property of an
EntityClassto SQL. - CalendarConverter(TemporalType) - Constructor for class org.fastnate.generator.converter.CalendarConverter
-
Creates a new instance of
CalendarConverter. - CalendarConverter(AttributeAccessor, boolean) - Constructor for class org.fastnate.generator.converter.CalendarConverter
-
Creates a new instance of
CalendarConverter. - catalog - Variable in class org.fastnate.generator.context.GeneratorTable
-
The optional name of the catalog that contains this table,
nullif the default catalog is used. - catalog - Variable in class org.fastnate.generator.context.SequenceIdGenerator
-
The (optional) catalog that contains the schema of the sequence.
- changeSetAuthour - Variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The author of the next created change set.
- changeSetComment - Variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The comment of the next created change set.
- changeSetId - Variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The ID of the next created change set.
- changeSetStarted - Variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Indicates if we are currently in a changeSet.
- CharConverter - Class in org.fastnate.generator.converter
-
Describes a char property of an
EntityClass. - CharConverter() - Constructor for class org.fastnate.generator.converter.CharConverter
- checkUpdate(int, String) - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- ClassUtil - Class in org.fastnate.util
-
Helper for inspection of classes.
- ClassUtil() - Constructor for class org.fastnate.util.ClassUtil
- close() - Method in class org.fastnate.generator.EntitySqlGenerator
-
Writes any missing SQL and closes any open resources.
- close() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter
- close() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- close() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- close() - Method in class org.fastnate.generator.statements.FileStatementsWriter
- close() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Writes the remaining elements.
- close() - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
- closeBatch() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- closeBulkWriter(GeneratorTable) - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
Closes the current writer of the given table (for example when the table structure has changed).
- closeBulkWriters() - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
- closeConnection - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Indicates that we should close the connection at the end.
- CollectionProperty<E,
T> - Class in org.fastnate.generator.context -
Describes a property of an
EntityClassthat contains more than one value. - CollectionProperty(EntityClass<?>, AttributeAccessor, AssociationOverride, AttributeOverride) - Constructor for class org.fastnate.generator.context.CollectionProperty
-
Creates a new collection property.
- column - Variable in class org.fastnate.generator.context.EntityProperty
-
The description of the join column.
- column - Variable in class org.fastnate.generator.context.IdentityValue
- column - Variable in class org.fastnate.generator.context.PrimitiveProperty
-
The column name in the table.
- columnCount - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- ColumnExpression - Interface in org.fastnate.generator.statements
-
An expression for a column value in an
TableStatement. - columns - Variable in class org.fastnate.generator.context.GeneratorTable
-
The known columns for this table.
- composition - Variable in class org.fastnate.generator.context.EntityProperty
-
Indicates that, according to the
CascadeType, we should remove the target entity when the current entity is removed. - composition - Variable in class org.fastnate.generator.context.EntityProperty.MappingInformation
- composition - Variable in class org.fastnate.generator.context.PluralProperty
-
Indicates that, according to the
CascadeType, we should remove the target entities when the current entity is removed. - composition - Variable in class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- ConnectedStatementsWriter - Class in org.fastnate.generator.statements
-
An implementation of a
StatementsWriterwhich writes the SQL statements directly to a database connection. - ConnectedStatementsWriter(Connection, boolean, GeneratorContext) - Constructor for class org.fastnate.generator.statements.ConnectedStatementsWriter
- ConnectedStatementsWriter(Connection, GeneratorContext) - Constructor for class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Creates a new StatementsWriter that writes to a database connection.
- ConnectedStatementsWriter(GeneratorContext) - Constructor for class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Creates a new StatementsWriter that writes to a database connection.
- ConnectedStatementsWriter.ContextListener - Class in org.fastnate.generator.statements
- ConnectedStatementsWriter.PreparedInsertStatement - Class in org.fastnate.generator.statements
- connection - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The database connection that was used when creating this generator.
- constructor - Variable in class org.fastnate.generator.context.EmbeddedProperty
- context - Variable in class org.fastnate.generator.context.EntityClass
-
The current context.
- context - Variable in class org.fastnate.generator.context.EntityProperty
-
The current context.
- context - Variable in class org.fastnate.generator.context.GeneratorTable
-
The current generator context.
- context - Variable in class org.fastnate.generator.context.IdentityValue
- context - Variable in class org.fastnate.generator.context.PluralProperty
-
The current context.
- context - Variable in class org.fastnate.generator.context.PrimitiveProperty
-
The current context.
- context - Variable in class org.fastnate.generator.context.TableIdGenerator
- context - Variable in class org.fastnate.generator.EntitySqlGenerator
-
Used to keep the state of indices and to store any configuration.
- context - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The generator context that is attached to this writer.
- context - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter.ContextListener
- context - Variable in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
The current generation context.
- contextListener - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The listener for model changes in the context when new classes are discovered.
- contextListener - Variable in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
The current generation context.
- ContextListener() - Constructor for class org.fastnate.generator.statements.PostgreSqlBulkWriter.ContextListener
- ContextListener(GeneratorContext, Statement, List<ConnectedStatementsWriter.PreparedInsertStatement>, Map<GeneratorTable, List<ConnectedStatementsWriter.PreparedInsertStatement>>) - Constructor for class org.fastnate.generator.statements.ConnectedStatementsWriter.ContextListener
- ContextModelListener - Interface in org.fastnate.generator.context
-
Implementations of this class are interested in the discovery of new
entity classesorgenerators. - contextModelListeners - Variable in class org.fastnate.generator.context.GeneratorContext
-
All listeners of this context.
- convertBooleanValue(boolean) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Converts a boolean value to an SQL expression for the current database type.
- convertBooleanValue(boolean) - Method in class org.fastnate.generator.dialect.PostgresDialect
- converter - Variable in class org.fastnate.generator.context.PrimitiveProperty
-
The converter for any value.
- converter - Variable in class org.fastnate.generator.statements.PrimitiveColumnExpression
-
Converts the primitive value to an SQL string.
- convertNumber(Number, Class<N>) - Static method in class org.fastnate.util.ClassUtil
-
Tries to convert the given number to the given type.
- convertNumberValue(Number) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Converts a numeric value to an SQL expression for the current database type.
- convertTemporalValue(Date) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Builds the SQL expression for a date / time / timestamp.
- convertTemporalValue(Date) - Method in class org.fastnate.generator.dialect.MsSqlDialect
- convertTemporalValue(Date, TemporalType) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Converts a date to an appropriate SQL expression.
- convertTemporalValue(Date, TemporalType) - Method in class org.fastnate.generator.dialect.MsSqlDialect
- convertTemporalValue(Date, TemporalType) - Method in class org.fastnate.generator.dialect.OracleDialect
- convertToDatabaseDate(Date, TemporalType) - Method in class org.fastnate.generator.dialect.GeneratorDialect
- copySetting(Properties, String, String) - Static method in interface org.fastnate.generator.provider.JpaProvider
-
Copies a JPA provider specific property to the matching Fastnate property, if it is not set already.
- create(Class<A>) - Static method in class org.fastnate.generator.context.AnnotationDefaults
-
Creates a proxy class that returns the default value from the annotation for every method.
- create(Class<A>, Map<String, Object>) - Static method in class org.fastnate.generator.context.AnnotationDefaults
-
Creates a proxy class that returns the default value from the annotation for every method.
- create(String, GeneratorDialect) - Static method in class org.fastnate.generator.statements.PrimitiveColumnExpression
-
Creates a new instance of a
PrimitiveColumnExpressionfor a string. - create(N, GeneratorDialect) - Static method in class org.fastnate.generator.statements.PrimitiveColumnExpression
-
Creates a new instance of
PrimitiveColumnExpressionfor a number. - createAddDateExpression(String, long, String) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Creates an SQL expression to add a value to a date.
- createAddDateExpression(String, long, String) - Method in class org.fastnate.generator.dialect.MySqlDialect
- createAddDateExpression(String, long, String) - Method in class org.fastnate.generator.dialect.OracleDialect
- createAddDateExpression(String, long, String) - Method in class org.fastnate.generator.dialect.PostgresDialect
- createBasicConverter(String, Class<T>) - Method in interface org.fastnate.generator.provider.JpaProvider
-
Creates a converter for a primitive database type.
- createBlobExpression(byte[]) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Converts the given byte array to an SQL expression for the current database.
- createBlobExpression(byte[]) - Method in class org.fastnate.generator.dialect.H2Dialect
- createBlobExpression(byte[]) - Method in class org.fastnate.generator.dialect.MsSqlDialect
- createBlobExpression(byte[]) - Method in class org.fastnate.generator.dialect.MySqlDialect
-
Create MySQL specific binary expression.
- createBlobExpression(byte[]) - Method in class org.fastnate.generator.dialect.OracleDialect
- createBlobExpression(byte[]) - Method in class org.fastnate.generator.dialect.PostgresDialect
- createConverter(AttributeAccessor, Class<T>, boolean) - Method in interface org.fastnate.generator.provider.JpaProvider
-
Creates a converter for an attribute that has a
PrimitiveProperty. - createDefaultProvider() - Static method in class org.fastnate.generator.context.GeneratorContext
- createDirectValueStatement(StatementsWriter, E, ColumnExpression, ColumnExpression, T) - Method in class org.fastnate.generator.context.PluralProperty
-
Creates the statements for a (not embeddable) value from the collection.
- createEmbeddedValueStatement(StatementsWriter, E, ColumnExpression, ColumnExpression, T) - Method in class org.fastnate.generator.context.PluralProperty
-
Writes all embedded properties of a value of a collection table.
- createFallbackConverter(String, Class<T>) - Method in interface org.fastnate.generator.provider.JpaProvider
-
Creates the converter for a type that is unknown to us.
- createHexBlobExpression(String, byte[], String) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Creates the hex presentation of the given blob.
- createInsertStatement(GeneratorDialect, GeneratorTable) - Method in class org.fastnate.generator.statements.AbstractStatementsWriter
- createInsertStatement(GeneratorDialect, GeneratorTable) - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- createInsertStatement(GeneratorDialect, GeneratorTable) - Method in interface org.fastnate.generator.statements.StatementsWriter
-
Creates a container for a dedicated "insert into table" statement.
- createNextValue() - Method in class org.fastnate.generator.context.IdentityValue
- createNextValue() - Method in class org.fastnate.generator.context.IdGenerator
-
Resolves the next value of this generator.
- createNextValue() - Method in class org.fastnate.generator.context.SequenceIdGenerator
- createNextValue() - Method in class org.fastnate.generator.context.TableIdGenerator
- createNextValue(Class<N>) - Method in class org.fastnate.generator.context.IdGenerator
-
Resolves the next value of this generator.
- createPlainStatement(GeneratorDialect, String) - Method in class org.fastnate.generator.statements.AbstractStatementsWriter
- createPlainStatement(GeneratorDialect, String) - Method in interface org.fastnate.generator.statements.StatementsWriter
-
Creates a container for a plain SQL statement, which is just executed "as is".
- createPostInsertStatements(E, StatementsWriter) - Method in class org.fastnate.generator.context.EntityClass
-
Marks an entity as written and creates any pending update / insert statements.
- createPostInsertStatements(StatementsWriter, E) - Method in class org.fastnate.generator.context.CollectionProperty
- createPostInsertStatements(StatementsWriter, E) - Method in class org.fastnate.generator.context.EmbeddedProperty
- createPostInsertStatements(StatementsWriter, E) - Method in class org.fastnate.generator.context.MapProperty
- createPostInsertStatements(StatementsWriter, E) - Method in class org.fastnate.generator.context.Property
-
Creates additional SQL statements that are necessary after this property is written (e.g. for mapping tables).
- createPreInsertStatements(StatementsWriter) - Method in class org.fastnate.generator.context.IdGenerator
-
Creates the statements that are needed in the output before
IdGenerator.addNextValue(TableStatement, GeneratorColumn, Number). - createPreInsertStatements(StatementsWriter) - Method in class org.fastnate.generator.context.SequenceIdGenerator
- createPreInsertStatements(StatementsWriter) - Method in class org.fastnate.generator.context.TableIdGenerator
- createPreInsertStatements(StatementsWriter, E) - Method in class org.fastnate.generator.context.EmbeddedProperty
- createPreInsertStatements(StatementsWriter, E) - Method in class org.fastnate.generator.context.GeneratedIdProperty
- createPreInsertStatements(StatementsWriter, E) - Method in class org.fastnate.generator.context.Property
-
Creates SQL statements that are necessary before this property is written (e.g. for updating the table generator).
- createUpdateStatement(GeneratorDialect, GeneratorTable, GeneratorColumn, ColumnExpression) - Method in class org.fastnate.generator.statements.AbstractStatementsWriter
- createUpdateStatement(GeneratorDialect, GeneratorTable, GeneratorColumn, ColumnExpression) - Method in interface org.fastnate.generator.statements.StatementsWriter
-
Creates a container for a dedicated "update table" statement.
- createValueExpression(E, ColumnExpression, T, ColumnExpression) - Method in class org.fastnate.generator.context.PluralProperty
-
Creates a SQL expression for a value of the collection, as long as it is not embedded.
- createValueStatement(StatementsWriter, E, ColumnExpression, ColumnExpression, T) - Method in class org.fastnate.generator.context.PluralProperty
-
Adds a value statement to the list of collection statements.
- currentSequenceValue - Variable in class org.fastnate.generator.context.SequenceIdGenerator
- CurrentSequenceValueExpression - Class in org.fastnate.generator.statements
-
A
ColumnExpressionwhich references an ID using thecurrent value of a sequence. - CurrentSequenceValueExpression(SequenceIdGenerator, long, boolean) - Constructor for class org.fastnate.generator.statements.CurrentSequenceValueExpression
-
Creates a new instance of an expression that references an ID by using the current value of a sequence.
- currentValue - Variable in class org.fastnate.generator.context.IdentityValue
- customConverter - Variable in class org.fastnate.generator.converter.CustomValueConverter
- CustomValueConverter<T,
C> - Class in org.fastnate.generator.converter -
A value converter that uses an
AttributeConverter. - CustomValueConverter(AttributeConverter<T, C>, ValueConverter<C>) - Constructor for class org.fastnate.generator.converter.CustomValueConverter
D
- DATABASE_DRIVER_KEY - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Name of the setting that contains the connection driver class, if the writer create the a connection himself.
- DATABASE_PASSWORD_KEY - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Name of the setting that contains the connection password, if the writer create the a connection himself.
- DATABASE_URL_KEY - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Name of the setting that contains the connection URL, if the writer create the a connection himself.
- DATABASE_USER_KEY - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Name of the setting that contains the connection user, if the writer create the a connection himself.
- databaseValue - Variable in class org.fastnate.generator.statements.PrimitiveColumnExpression
-
The primitive database value (which may be used in an prepared statement).
- DATE_PRECISIONS - Static variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- DateConverter - Class in org.fastnate.generator.converter
-
Converts a date property of an
EntityClassto SQL. - DateConverter(TemporalType) - Constructor for class org.fastnate.generator.converter.DateConverter
-
Creates a new instance of
DateConverter. - DateConverter(AttributeAccessor, boolean) - Constructor for class org.fastnate.generator.converter.DateConverter
-
Creates a new instance of
DateConverter. - DAYS - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding days to a reference date.
- DEFAULT_BUFFER_SIZE - Static variable in class org.fastnate.generator.converter.SerializableConverter
-
Serializable objects tend to be big, so start not to small with the buffer.
- DEFAULT_COLUMN_LENGTH - Static variable in class org.fastnate.generator.converter.StringConverter
- DEFAULT_DIALECTS - Static variable in class org.fastnate.generator.context.GeneratorContext
- DEFAULT_FORMATS - Static variable in class org.fastnate.generator.converter.AbstractDateConverter
- DefaultContextModelListener - Class in org.fastnate.generator.context
-
Base implementation of a
ContextModelListenerwith empty methods. - DefaultContextModelListener() - Constructor for class org.fastnate.generator.context.DefaultContextModelListener
- defaultSequenceGenerators - Variable in class org.fastnate.generator.context.GeneratorContext
-
The default sequence generator, if none is explicitly specified in a
GeneratedValue. - defaultTableGenerators - Variable in class org.fastnate.generator.context.GeneratorContext
-
The default table generator, if none is explicitly specified in a
GeneratedValue. - defaultValue - Variable in class org.fastnate.generator.context.PrimitiveProperty
-
The default value.
- DefaultValue - Annotation Interface in org.fastnate.generator
-
Annotation for attributes of
entities, which indicates default values during SQL generation. - derive(GeneratorTable) - Method in class org.fastnate.generator.context.IdGenerator
-
Some implementations (like the Hibernate table generator) create a different generator, depending on the table name.
- derive(GeneratorTable) - Method in class org.fastnate.generator.context.TableIdGenerator
- descriptions - Variable in class org.fastnate.generator.context.GeneratorContext
-
Contains the extracted metadata to every known class of an
Entity. - descriptionsByName - Variable in class org.fastnate.generator.context.GeneratorContext
-
The mapping from the
name of an entityto theextracted metadata. - detectDialect() - Method in class org.fastnate.generator.context.GeneratorContext
- detectDialect(String) - Static method in class org.fastnate.generator.context.GeneratorContext
- dialect - Variable in class org.fastnate.generator.context.GeneratorContext
-
Identifies the SQL dialect for generating SQL statements.
- dialect - Variable in class org.fastnate.generator.context.PluralProperty
-
The current database dialect, as defined in the context.
- dialect - Variable in class org.fastnate.generator.context.SequenceIdGenerator
-
The current database dialect.
- dialect - Variable in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
The current database dialect
- dialect - Variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The current database dialect (in case any plain SQL statement needs to be written).
- DIALECT_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for the target SQL dialect.
- difference - Variable in class org.fastnate.generator.statements.SequenceValueExpression
-
The difference of the referenced ID to the sequence value.
- directory - Variable in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
The directory for the bulk files.
- discriminator - Variable in class org.fastnate.generator.context.EntityClass
-
The SQL expression that is used for the disciminator column of this class.
- discriminatorColumn - Variable in class org.fastnate.generator.context.EntityClass
-
The column for
EntityClass.discriminator. - DurationConverter - Class in org.fastnate.generator.converter
-
Converts a
Durationto an SQL expression. - DurationConverter() - Constructor for class org.fastnate.generator.converter.DurationConverter
E
- embeddedProperties - Variable in class org.fastnate.generator.context.EmbeddedProperty
-
The properties within the embedded object.
- embeddedProperties - Variable in class org.fastnate.generator.context.PluralProperty
-
Contains all properties of an embedded element collection.
- embeddedPropertiesByName - Variable in class org.fastnate.generator.context.PluralProperty
-
Contains all properties of an embedded element collection by their name.
- EmbeddedProperty<E,
T> - Class in org.fastnate.generator.context -
Handling of properties defined in
Embeddables. - EmbeddedProperty(EntityClass<?>, GeneratorTable, AttributeAccessor, Map<String, AttributeOverride>, Map<String, AssociationOverride>) - Constructor for class org.fastnate.generator.context.EmbeddedProperty
-
Instantiates a new embedded property.
- encoding - Variable in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
The encoding of the bulk files.
- ensureChangeSetStarted() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- ensureDirectoryExists(File) - Static method in class org.fastnate.generator.statements.FileStatementsWriter
-
Ensures, that the parent directory of the given output file exists.
- ensureIsNew(E) - Method in class org.fastnate.generator.context.GeneratedIdProperty
- entity - Variable in class org.fastnate.generator.context.EntityClass.EntityId
- entity - Variable in class org.fastnate.generator.context.GenerationState.PendingState.Update
- entityClass - Variable in class org.fastnate.generator.context.EntityClass
-
The represented class.
- entityClass - Variable in class org.fastnate.generator.context.GeneratedIdProperty
-
The entity class that contains our property.
- EntityClass<E> - Class in org.fastnate.generator.context
-
Describes the DB relevant metadata of an
entity class. - EntityClass(GeneratorContext, Class<E>) - Constructor for class org.fastnate.generator.context.EntityClass
-
Creates a new description of an entity class.
- EntityClass.EntityId - Class in org.fastnate.generator.context
-
Helper object to use as key in the state map, if we have a
GeneratedIdProperty. - entityConstructor - Variable in class org.fastnate.generator.context.EntityClass
-
The JPA constructor.
- EntityConverter - Class in org.fastnate.generator.converter
-
Converts the reference to an entity to an expression that uses the sequence value of that entity.
- EntityConverter() - Constructor for class org.fastnate.generator.converter.EntityConverter
- EntityId(Object) - Constructor for class org.fastnate.generator.context.EntityClass.EntityId
- EntityMappingInformation(Class<?>, String, boolean, boolean) - Constructor for class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- EntityMappingInformation(AttributeAccessor, AssociationOverride, int) - Constructor for class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- entityName - Variable in class org.fastnate.generator.context.EntityClass
-
The entity name.
- EntityProperty<E,
T> - Class in org.fastnate.generator.context -
Describes a property of an
EntityClassthat references exactly one other entity. - EntityProperty(GeneratorContext, GeneratorTable, AttributeAccessor, AssociationOverride) - Constructor for class org.fastnate.generator.context.EntityProperty
-
Creates a new instance of
EntityProperty. - EntityProperty.MappingInformation - Class in org.fastnate.generator.context
-
Helper for evaluating correct mapping information from the annotations.
- entityReference - Variable in class org.fastnate.generator.context.PluralProperty
-
Indicates that entities are referenced by the collection.
- EntitySqlGenerator - Class in org.fastnate.generator
-
Creates SQL statements for a set of entities using their JPA annotations.
- EntitySqlGenerator(GeneratorContext, Writer) - Constructor for class org.fastnate.generator.EntitySqlGenerator
-
Creates a new instance for a output writer.
- EntitySqlGenerator(GeneratorContext, Connection) - Constructor for class org.fastnate.generator.EntitySqlGenerator
-
Creates a new instance for a database connection.
- EntitySqlGenerator(GeneratorContext, StatementsWriter) - Constructor for class org.fastnate.generator.EntitySqlGenerator
-
Creates a new
EntitySqlGeneratorinstance. - EntityStatement - Interface in org.fastnate.generator.statements
-
Base class for statements generated by a
StatementsWriter. - entityStates - Variable in class org.fastnate.generator.context.EntityClass
-
The states of written entities.
- EnumConverter<E> - Class in org.fastnate.generator.converter
-
Describes a enum property of an
EntityClass. - EnumConverter(AttributeAccessor, Class<E>, boolean) - Constructor for class org.fastnate.generator.converter.EnumConverter
-
Creates a new instance of this
EnumConverter. - equals(Object) - Method in class org.fastnate.generator.context.EntityClass.EntityId
- equals(Object) - Method in class org.fastnate.generator.context.GeneratorContext.GeneratorId
- ESCAPES - Static variable in class org.fastnate.generator.dialect.MySqlDialect
- executeUpdate() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- exportType - Variable in class org.fastnate.generator.converter.EnumConverter
F
- failIfRequired(E) - Method in class org.fastnate.generator.context.Property
-
Throws an IllegalArgumentException if the field was not filled.
- FIELD - Enum constant in enum class org.fastnate.generator.context.AccessStyle
- fileNumbers - Variable in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
Remembers for each table which files we've already generated.
- FileStatementsWriter - Class in org.fastnate.generator.statements
-
Implementation of
StatementsWriterwhich writes the statements into aWriterresp. - FileStatementsWriter(File) - Constructor for class org.fastnate.generator.statements.FileStatementsWriter
-
Creates a new instance for a specifc file and UTF-8 encoding.
- FileStatementsWriter(File, Charset) - Constructor for class org.fastnate.generator.statements.FileStatementsWriter
-
Creates a new instance for a specifc file and encoding.
- FileStatementsWriter(Writer) - Constructor for class org.fastnate.generator.statements.FileStatementsWriter
-
Creates a new
FileStatementsWriterinstance. - FileStatementsWriter(GeneratorContext) - Constructor for class org.fastnate.generator.statements.FileStatementsWriter
-
Creates a new instance of
FileStatementsWriter. - findBulkWriter(GeneratorTable, GeneratorDialect) - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
- findEntity(E) - Method in class org.fastnate.generator.EntitySqlGenerator
-
Tries to find an entity in an online store.
- findEntityMappingInformation(AttributeAccessor) - Method in class org.fastnate.generator.context.EntityProperty
-
Builds the mapping information for a reference to an entity.
- findEntityMappingInformation(AttributeAccessor, AssociationOverride, int) - Method in class org.fastnate.generator.context.PluralProperty
-
Builds the mapping information for a entity collection.
- findHierarchyRoot(Class<? super E>) - Method in class org.fastnate.generator.context.EntityClass
- findIdProperty(Iterable<AttributeAccessor>) - Method in class org.fastnate.generator.context.EntityClass
- findMappedId(AttributeAccessor) - Static method in class org.fastnate.generator.context.PluralProperty
- findPropertyByColumnName(String) - Method in class org.fastnate.generator.context.EntityClass
- findReferencedEntities(E) - Method in class org.fastnate.generator.context.CollectionProperty
- findReferencedEntities(E) - Method in class org.fastnate.generator.context.EmbeddedProperty
- findReferencedEntities(E) - Method in class org.fastnate.generator.context.EntityProperty
- findReferencedEntities(E) - Method in class org.fastnate.generator.context.MapProperty
- findReferencedEntities(E) - Method in class org.fastnate.generator.context.Property
-
Finds all entities in the current property, that are referenced.
- findValueConstructor(Class<T>) - Static method in class org.fastnate.generator.context.PluralProperty
- finishPart(StringBuilder, String, int, int, boolean, boolean, String) - Static method in class org.fastnate.generator.dialect.GeneratorDialect
- fireContextObjectAdded(BiConsumer<ContextModelListener, T>, T) - Method in class org.fastnate.generator.context.GeneratorContext
-
Fires an event to all
listeners. - firstCall - Variable in class org.fastnate.generator.statements.CurrentSequenceValueExpression
- flush() - Method in class org.fastnate.generator.EntitySqlGenerator
-
Writes any open and alignment statements.
- flush() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter
- flush() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- flush() - Method in class org.fastnate.generator.statements.FileStatementsWriter
- flush() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- flush() - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
- flush() - Method in interface org.fastnate.generator.statements.StatementsWriter
-
Flushes any open statements.
- foundColumn(GeneratorColumn) - Method in interface org.fastnate.generator.context.ContextModelListener
-
Called when a new table column was discovered.
- foundColumn(GeneratorColumn) - Method in class org.fastnate.generator.context.DefaultContextModelListener
- foundColumn(GeneratorColumn) - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter.ContextListener
- foundColumn(GeneratorColumn) - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter.ContextListener
- foundEntityClass(EntityClass<?>) - Method in interface org.fastnate.generator.context.ContextModelListener
-
Called when a new entity class was discovered.
- foundEntityClass(EntityClass<?>) - Method in class org.fastnate.generator.context.DefaultContextModelListener
- foundGenerator(IdGenerator) - Method in interface org.fastnate.generator.context.ContextModelListener
-
Called when a new generator was discovered.
- foundGenerator(IdGenerator) - Method in class org.fastnate.generator.context.DefaultContextModelListener
- foundGenerator(IdGenerator) - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter.ContextListener
- foundTable(GeneratorTable) - Method in interface org.fastnate.generator.context.ContextModelListener
-
Called when a new table was discovered.
- foundTable(GeneratorTable) - Method in class org.fastnate.generator.context.DefaultContextModelListener
G
- generatedFiles - Variable in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
All files generated by this writer.
- GeneratedIdProperty<E,
T> - Class in org.fastnate.generator.context -
Describes an
Idproperty of anEntityClass. - GeneratedIdProperty(EntityClass<E>, AttributeAccessor, Column) - Constructor for class org.fastnate.generator.context.GeneratedIdProperty
-
Creates a new instance of
GeneratedIdProperty. - generatePendingStatements(StatementsWriter, E, Object, Object...) - Method in class org.fastnate.generator.context.EntityProperty
- generatePendingStatements(StatementsWriter, E, Object, Object...) - Method in class org.fastnate.generator.context.PluralProperty
- generatePendingStatements(StatementsWriter, E, Object, Object...) - Method in class org.fastnate.generator.context.Property
-
Generates the update statements for an entity that are required after another entity was generated.
- GenerationState - Class in org.fastnate.generator.context
-
Encapsulates the state of a generated entity.
- GenerationState() - Constructor for class org.fastnate.generator.context.GenerationState
- GenerationState.PendingState - Class in org.fastnate.generator.context
-
Marks all pending updates for an entity, that was not written up to now.
- GenerationState.PendingState.Update<E> - Class in org.fastnate.generator.context
- generator - Variable in class org.fastnate.generator.context.GeneratedIdProperty
-
The generator used for generating new values of this property.
- GeneratorColumn - Class in org.fastnate.generator.context
-
Contains the metadata for a column from a
GeneratorTable. - GeneratorColumn(GeneratorTable, int, String, String, boolean) - Constructor for class org.fastnate.generator.context.GeneratorColumn
-
Creates a new
GeneratorColumninstance. - GeneratorContext - Class in org.fastnate.generator.context
-
Represents the configuration and state for one or more
EntitySqlGenerators. - GeneratorContext() - Constructor for class org.fastnate.generator.context.GeneratorContext
-
Creates a default generator context.
- GeneratorContext(Properties) - Constructor for class org.fastnate.generator.context.GeneratorContext
-
Creates a new instance of
GeneratorContext. - GeneratorContext(GeneratorDialect) - Constructor for class org.fastnate.generator.context.GeneratorContext
-
Creates a generator context for a dialect.
- GeneratorContext.GeneratorId - Class in org.fastnate.generator.context
- GeneratorDialect - Class in org.fastnate.generator.dialect
-
Handles database specific conversions.
- GeneratorDialect() - Constructor for class org.fastnate.generator.dialect.GeneratorDialect
- GeneratorId(String, String) - Constructor for class org.fastnate.generator.context.GeneratorContext.GeneratorId
- generators - Variable in class org.fastnate.generator.context.GeneratorContext
-
Mapping from the name of a generator to the generator itself.
- generatorTable - Variable in class org.fastnate.generator.context.TableIdGenerator
- GeneratorTable - Class in org.fastnate.generator.context
-
Stores the metadata about existing database tables.
- GeneratorTable(int, String, String, String, String, GeneratorContext) - Constructor for class org.fastnate.generator.context.GeneratorTable
-
Creates a new
GeneratorTableinstance. - getAccessStyle() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
Describes how this attribute accesses the values below.
- getAccessStyle() - Method in class org.fastnate.generator.context.EntityClass
-
The type of access that is used for the properties (field access or bean property access).
- getAccociationOverrides(Map<String, AssociationOverride>, String, AnnotatedElement) - Static method in class org.fastnate.generator.context.EntityClass
-
Finds all association overrides that are attached to the given field, method or class, by taking the already defined overrides into account.
- getActualTypeArgument(Class<? extends I>, Class<I>, int) - Static method in class org.fastnate.util.ClassUtil
- getActualTypeBinding(Class<? extends I>, Class<I>, int) - Static method in class org.fastnate.util.ClassUtil
-
Resolves the actual binding of a generic type that was specified in a superclass and bound in a subclass.
- getActualTypeBinding(Class<? extends I>, Class<I>, Type) - Static method in class org.fastnate.util.ClassUtil
-
Resolves the actual binding of a generic type to a specific class by inspecting type variables in the declaring class and the (sub)class of the object.
- getAdditionalProperties() - Method in class org.fastnate.generator.context.EntityClass
-
Properties of this entity, excluding the
EntityClass.idPropertyor properties fromEntityClass.joinedParentClass. - getAllocationSize() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
The amount to increment by when allocating sequence numbers from the sequence.
- getAllocationSize() - Method in class org.fastnate.generator.context.TableIdGenerator
- getAllProperties() - Method in class org.fastnate.generator.context.EntityClass
-
All properties of this entity, including
EntityClass.idPropertyand properties fromEntityClass.joinedParentClass. - getAllUniqueProperties() - Method in class org.fastnate.generator.context.EntityClass
-
All available sets of properties that make up an additional unique identifier for the entities.
- getArguments() - Method in class org.fastnate.generator.context.GenerationState.PendingState.Update
- getAssociationOverrides() - Method in class org.fastnate.generator.context.EntityClass
-
All association overriddes of this class and the parent classes.
- getAttribute() - Method in class org.fastnate.generator.context.Property
-
Used to access the value of the property.
- getAttributeOverrides() - Method in class org.fastnate.generator.context.EntityClass
-
All attribute overriddes of this class and the parent classes.
- getAttributeOverrides(Map<String, AttributeOverride>, String, AnnotatedElement) - Static method in class org.fastnate.generator.context.EntityClass
-
Finds all
AttributeOverridesthat are attached to the given field, method or class, by taking the already defined overrides into account. - getAutoGenerationType(GeneratorDialect) - Method in interface org.fastnate.generator.provider.JpaProvider
-
Resolves the generation type to use, if
GenerationType.AUTOis specified in the model. - getCallerMethod() - Static method in class org.fastnate.util.ClassUtil
-
Resolves the name of the method that called the caller of this method.
- getCallerMethod(Class<?>) - Static method in class org.fastnate.util.ClassUtil
-
Resolves the name of the method that called the caller of this method.
- getCatalog() - Method in class org.fastnate.generator.context.GeneratorTable
-
The optional name of the catalog that contains this table,
nullif the default catalog is used. - getCatalog() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
The (optional) catalog that contains the schema of the sequence.
- getChangeSetAuthour() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The author of the next created change set.
- getChangeSetComment() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The comment of the next created change set.
- getChangeSetId() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The ID of the next created change set.
- getColumn() - Method in class org.fastnate.generator.context.EntityProperty
-
The description of the join column.
- getColumn() - Method in class org.fastnate.generator.context.PrimitiveProperty
-
The column name in the table.
- getColumn() - Method in class org.fastnate.generator.context.SingularProperty
-
The associated column.
- getColumnAnnotation(AttributeAccessor, Map<String, AttributeOverride>) - Static method in class org.fastnate.generator.context.EntityClass
- getColumnCount() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- getColumns() - Method in class org.fastnate.generator.context.GeneratorTable
-
The known columns for this table.
- getConcatOperator() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
The operator used to concat two Strings.
- getConcatOperator() - Method in class org.fastnate.generator.dialect.MsSqlDialect
- getConnection() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The database connection that was used when creating this generator.
- getContext() - Method in class org.fastnate.generator.context.EntityClass
-
The current context.
- getContext() - Method in class org.fastnate.generator.context.EntityProperty
-
The current context.
- getContext() - Method in class org.fastnate.generator.context.GeneratorTable
-
The current generator context.
- getContext() - Method in class org.fastnate.generator.context.PluralProperty
-
The current context.
- getContext() - Method in class org.fastnate.generator.context.PrimitiveProperty
-
The current context.
- getContext() - Method in class org.fastnate.generator.context.TableIdGenerator
- getContext() - Method in class org.fastnate.generator.EntitySqlGenerator
-
Used to keep the state of indices and to store any configuration.
- getContextModelListeners() - Method in class org.fastnate.generator.context.GeneratorContext
-
All listeners of this context.
- getConverter() - Method in class org.fastnate.generator.context.PrimitiveProperty
-
The converter for any value.
- getConverter() - Method in class org.fastnate.generator.statements.PrimitiveColumnExpression
-
Converts the primitive value to an SQL string.
- getCurrentValue() - Method in class org.fastnate.generator.context.IdentityValue
- getCurrentValue() - Method in class org.fastnate.generator.context.IdGenerator
-
The last value returned by
IdGenerator.createNextValue(Class). - getCurrentValue() - Method in class org.fastnate.generator.context.SequenceIdGenerator
- getCurrentValue() - Method in class org.fastnate.generator.context.TableIdGenerator
- getDatabaseValue() - Method in class org.fastnate.generator.statements.PrimitiveColumnExpression
-
The primitive database value (which may be used in an prepared statement).
- getDeclaredAttributes(Class<E>, Class<? extends E>) - Method in enum class org.fastnate.generator.context.AccessStyle
-
Finds all attributes of the current access type that are referenced in the given class.
- getDeclaringClass() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The class that declared this attribute.
- getDefaultGeneratorTable() - Method in interface org.fastnate.generator.provider.JpaProvider
-
The name of the default generator
TableGenerator.table(), if none was specified for a table generator. - getDefaultGeneratorTablePkColumnName() - Method in interface org.fastnate.generator.provider.JpaProvider
-
The name of the default generator
TableGenerator.pkColumnName(), if none was specified for a table generator. - getDefaultGeneratorTablePkColumnValue(String) - Method in interface org.fastnate.generator.provider.JpaProvider
-
The name of the default generator
TableGenerator.pkColumnValue(), if none was specified for a table generator. - getDefaultGeneratorTableValueColumnName() - Method in interface org.fastnate.generator.provider.JpaProvider
-
The name of the default generator
TableGenerator.valueColumnName(), if none was specified for a table generator. - getDefaultSequence(String) - Method in interface org.fastnate.generator.provider.JpaProvider
-
The name of the default
sequence, if none was specified for a sequence generator. - getDefaultSequenceGenerator(GeneratorTable) - Method in class org.fastnate.generator.context.GeneratorContext
- getDefaultSequenceGenerators() - Method in class org.fastnate.generator.context.GeneratorContext
-
The default sequence generator, if none is explicitly specified in a
GeneratedValue. - getDefaultTableGenerator(GeneratorTable) - Method in class org.fastnate.generator.context.GeneratorContext
- getDefaultTableGenerators() - Method in class org.fastnate.generator.context.GeneratorContext
-
The default table generator, if none is explicitly specified in a
GeneratedValue. - getDefaultValue() - Method in class org.fastnate.generator.context.PrimitiveProperty
-
The default value.
- getDefaultValue(AttributeAccessor) - Method in class org.fastnate.generator.context.PrimitiveProperty
-
Finds the default value from the given attribute.
- getDefaultValue(AttributeAccessor) - Method in class org.fastnate.generator.context.VersionProperty
- getDescription(E) - Method in class org.fastnate.generator.context.GeneratorContext
-
Finds the description for the class of an entity.
- getDescription(Class<E>) - Method in class org.fastnate.generator.context.GeneratorContext
-
Finds the description for a class.
- getDescriptions() - Method in class org.fastnate.generator.context.GeneratorContext
-
Contains the extracted metadata to every known class of an
Entity. - getDescriptionsByName() - Method in class org.fastnate.generator.context.GeneratorContext
-
The mapping from the
name of an entityto theextracted metadata. - getDialect() - Method in class org.fastnate.generator.context.GeneratorContext
-
Identifies the SQL dialect for generating SQL statements.
- getDialect() - Method in class org.fastnate.generator.context.PluralProperty
-
The current database dialect, as defined in the context.
- getDialect() - Method in class org.fastnate.generator.context.PrimitiveProperty
-
Resolves the current dialect from the context.
- getDialect() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
The current database dialect.
- getDialect() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
The current database dialect
- getDialect() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The current database dialect (in case any plain SQL statement needs to be written).
- getDifference() - Method in class org.fastnate.generator.statements.SequenceValueExpression
-
The difference of the referenced ID to the sequence value.
- getDifference() - Method in class org.fastnate.util.RelativeDate
-
The difference of the time to the
RelativeDate.referenceDate. - getDirectory() - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
The directory for the bulk files.
- getDiscriminator() - Method in class org.fastnate.generator.context.EntityClass
-
The SQL expression that is used for the disciminator column of this class.
- getDiscriminatorColumn() - Method in class org.fastnate.generator.context.EntityClass
-
The column for
EntityClass.discriminator. - getElement() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The actual field or method.
- getEmbeddedProperties() - Method in class org.fastnate.generator.context.EmbeddedProperty
-
The properties within the embedded object.
- getEmbeddedProperties() - Method in class org.fastnate.generator.context.PluralProperty
-
Contains all properties of an embedded element collection.
- getEmbeddedPropertiesByName() - Method in class org.fastnate.generator.context.PluralProperty
-
Contains all properties of an embedded element collection by their name.
- getEmptyValuesExpression() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
The SQL expression to use in an empty insert statement.
- getEmptyValuesExpression() - Method in class org.fastnate.generator.dialect.MySqlDialect
- getEncoding() - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
The encoding of the bulk files.
- getEntity() - Method in class org.fastnate.generator.context.GenerationState.PendingState.Update
- getEntityClass() - Method in class org.fastnate.generator.context.EntityClass
-
The represented class.
- getEntityClass() - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
The entity class that contains our property.
- getEntityName() - Method in class org.fastnate.generator.context.EntityClass
-
The entity name.
- getEntityReference(E, String, boolean) - Method in class org.fastnate.generator.context.EntityClass
-
Creates an expression that references the id of an entity of this class.
- getEntityReference(Object, String, GeneratorContext, boolean) - Static method in class org.fastnate.generator.converter.EntityConverter
-
Creates an expression for an entity.
- getEntityStates() - Method in class org.fastnate.generator.context.EntityClass
-
The states of written entities.
- getExpression(E, boolean) - Method in class org.fastnate.generator.context.EntityProperty
- getExpression(E, boolean) - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Creates the reference of an entity in SQL using its (relative or absolute) id.
- getExpression(E, boolean) - Method in class org.fastnate.generator.context.PrimitiveProperty
- getExpression(E, boolean) - Method in class org.fastnate.generator.context.Property
-
Creates the expression for the current value of the given entity in SQL.
- getExpression(E, GeneratorContext) - Method in class org.fastnate.generator.converter.EnumConverter
- getExpression(Serializable, GeneratorContext) - Method in class org.fastnate.generator.converter.SerializableConverter
- getExpression(Boolean, GeneratorContext) - Method in class org.fastnate.generator.converter.BooleanConverter
- getExpression(Character, GeneratorContext) - Method in class org.fastnate.generator.converter.CharConverter
- getExpression(Number, GeneratorContext) - Method in class org.fastnate.generator.converter.NumberConverter
- getExpression(Object, GeneratorContext) - Method in class org.fastnate.generator.converter.EntityConverter
- getExpression(Object, GeneratorContext) - Method in class org.fastnate.generator.converter.LobConverter
- getExpression(Object, GeneratorContext) - Method in class org.fastnate.generator.converter.UnsupportedTypeConverter
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.AbstractDateConverter
-
Use database independent default values.
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.BooleanConverter
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.CharConverter
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.DurationConverter
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.EnumConverter
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.LobConverter
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.NumberConverter
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.StringConverter
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.TemporalConverter
- getExpression(String, GeneratorContext) - Method in interface org.fastnate.generator.converter.ValueConverter
-
Builds the expression for writing the default value into an SQL clause.
- getExpression(Duration, GeneratorContext) - Method in class org.fastnate.generator.converter.DurationConverter
- getExpression(Calendar, GeneratorContext) - Method in class org.fastnate.generator.converter.CalendarConverter
- getExpression(Date, GeneratorContext) - Method in class org.fastnate.generator.converter.AbstractDateConverter
-
Converts the given value into an SQL expression.
- getExpression(GeneratorTable, GeneratorColumn, Number, boolean) - Method in class org.fastnate.generator.context.IdentityValue
- getExpression(GeneratorTable, GeneratorColumn, Number, boolean) - Method in class org.fastnate.generator.context.IdGenerator
-
Builds the reference to another entity that has the given ID.
- getExpression(GeneratorTable, GeneratorColumn, Number, boolean) - Method in class org.fastnate.generator.context.SequenceIdGenerator
- getExpression(GeneratorTable, GeneratorColumn, Number, boolean) - Method in class org.fastnate.generator.context.TableIdGenerator
- getExpression(T, GeneratorContext) - Method in class org.fastnate.generator.converter.CustomValueConverter
- getExpression(T, GeneratorContext) - Method in class org.fastnate.generator.converter.TemporalConverter
- getExpression(T, GeneratorContext) - Method in interface org.fastnate.generator.converter.ValueConverter
-
Builds the expression for writing the given value into an SQL clause.
- getGeneratedFiles() - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
All files generated by this writer.
- getGeneratedIdReference(E, boolean) - Method in class org.fastnate.generator.context.EntityClass
- getGenerator() - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
The generator used for generating new values of this property.
- getGenerator(GeneratedValue, GeneratorTable, GeneratorColumn) - Method in class org.fastnate.generator.context.GeneratorContext
-
Finds the correct generator for the given annotation.
- getGeneratorTable() - Method in class org.fastnate.generator.context.TableIdGenerator
- getGenericType() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The generic type of the accessed attribute.
- getHierarchyRoot() - Method in class org.fastnate.generator.context.EntityClass
-
The description of the entity class that is the root of the current inheritance hierarchy.
- getIdColumn() - Method in class org.fastnate.generator.context.PluralProperty
-
The column that contains the id of the entity.
- getIdColumn() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.UpdateStatement
- getIdColumn(AttributeAccessor) - Method in class org.fastnate.generator.context.EntityClass
-
Resolves the column for the
id propertyof this entity class. - getIdField() - Method in class org.fastnate.generator.context.EntityProperty
-
The name of the id for referencing an embedded id.
- getIdProperty() - Method in class org.fastnate.generator.context.EntityClass
-
The property that contains the id for the entity.
- getIdValue() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.UpdateStatement
- getImplementationClass() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The class that is the type of every object that contains this attribute.
- getIndex() - Method in class org.fastnate.generator.context.GeneratorColumn
-
The index of this column in the list of all columns of the associated table.
- getIndex() - Method in class org.fastnate.generator.context.GeneratorTable
-
The index of this table in the list of all available tables.
- getInheritanceType() - Method in class org.fastnate.generator.context.EntityClass
-
The inheritance type of this class.
- getInitializedValue(E) - Method in class org.fastnate.generator.context.EmbeddedProperty
-
Ensures that the property of the given entity is initialized.
- getInitialValue() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
The value from which the sequence object is to start generating.
- getInitialValue() - Method in class org.fastnate.generator.context.TableIdGenerator
- getInverseProperty() - Method in class org.fastnate.generator.context.EntityProperty
-
The opposite property of a bidirectional mapping.
- getInverseProperty() - Method in class org.fastnate.generator.context.PluralProperty
-
The opposite property of a bidirectional mapping.
- getJoinColumnName(JoinColumn[]) - Static method in class org.fastnate.generator.context.PluralProperty
- getJoinedParentClass() - Method in class org.fastnate.generator.context.EntityClass
-
The description of the next entity class that has
InheritanceType.JOINED, if any. - getKeyClass() - Method in class org.fastnate.generator.context.MapProperty
-
The class of the key of the map.
- getKeyColumn() - Method in class org.fastnate.generator.context.CollectionProperty
- getKeyColumn() - Method in class org.fastnate.generator.context.MapProperty
-
The name of the column that contains the key.
- getKeyColumn() - Method in class org.fastnate.generator.context.PluralProperty
-
An optional column that contains the index / key of the values.
- getKeyConverter() - Method in class org.fastnate.generator.context.MapProperty
-
The converter for the target value,
nullif not a primitive value. - getKeyEntityClass() - Method in class org.fastnate.generator.context.MapProperty
-
The description of the key class,
nullif not an entity. - getLetter() - Method in class org.fastnate.generator.dialect.GeneratorDialect
- getMappedBy() - Method in class org.fastnate.generator.context.EntityProperty
-
The optional name of a property in the target type, that owns the relationship.
- getMappedBy() - Method in class org.fastnate.generator.context.EntityProperty.MappingInformation
- getMappedBy() - Method in class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- getMappedBy() - Method in class org.fastnate.generator.context.PluralProperty
-
Indicates that this property is defined by another property on the target type.
- getMappedId() - Method in class org.fastnate.generator.context.PluralProperty
-
The property to use, if an id is embedded.
- getMatchingQuality(Property<?, ?>) - Static method in enum class org.fastnate.generator.context.UniquePropertyQuality
-
Finds the best quality that matches the given property.
- getMaxAllocatedValue() - Method in class org.fastnate.generator.context.TableIdGenerator
-
The maximum allocated value.
- getMaxUniqueProperties() - Method in class org.fastnate.generator.context.GeneratorContext
-
The maximum count of columns that are used when referencing an entity using it's unique properties.
- getMillis() - Method in class org.fastnate.util.RelativeDate.Precision
-
The precision of the unit in milliseconds.
- getModifiers() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The combination of
Modifiers. - getName() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The name of the accessed attribute.
- getName() - Method in class org.fastnate.generator.context.GeneratorColumn
-
The name of this column, as given by the metamodel.
- getName() - Method in class org.fastnate.generator.context.GeneratorTable
-
The name of this table.
- getName() - Method in class org.fastnate.generator.context.NamedObject
-
Resolves the name of this object, as given by the metamodel.
- getName() - Method in class org.fastnate.generator.context.Property
-
The name of this property.
- getNextValue() - Method in class org.fastnate.generator.context.TableIdGenerator
- getOptionalTable() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Returns the string to use when no table is required, e.g. for "SELECT 1, 2 FROM DUAL" this would return "FROM DUAL".
- getOptionalTable() - Method in class org.fastnate.generator.dialect.MySqlDialect
- getOptionalTable() - Method in class org.fastnate.generator.dialect.OracleDialect
- getOrderColumn() - Method in class org.fastnate.generator.context.CollectionProperty
-
The name of the column that saves the order of the entries in the collection.
- getParentEntityClass() - Method in class org.fastnate.generator.context.EntityClass
-
Only used during
EntityClass.build()to find the joinedParentClass even if that one references our class. - getPkColumn() - Method in class org.fastnate.generator.context.TableIdGenerator
- getPkColumnValue() - Method in class org.fastnate.generator.context.TableIdGenerator
- getPrecision() - Method in class org.fastnate.util.RelativeDate
-
Finds the highest possible unit of the difference between the reference date and this date.
- getPredicate(E) - Method in class org.fastnate.generator.context.EmbeddedProperty
- getPredicate(E) - Method in class org.fastnate.generator.context.EntityProperty
- getPredicate(E) - Method in class org.fastnate.generator.context.PrimitiveProperty
- getPredicate(E) - Method in class org.fastnate.generator.context.Property
-
Creates an SQL predicate that references all entities that have the same value as the given entity.
- getPrimaryKeyJoinColumn() - Method in class org.fastnate.generator.context.EntityClass
-
The column that contains the id of this entity if
EntityClass.joinedParentClassis notnull. - getProperties() - Method in class org.fastnate.generator.context.EntityClass
-
Mapping from the name of all persistent properties to their description.
- getProperty() - Method in class org.fastnate.generator.context.GenerationState.PendingState.Update
- getPropertyArgument(AttributeAccessor, Class<T>, int) - Static method in class org.fastnate.generator.context.PluralProperty
-
Inspects the given attribute and searches for a generic type argument.
- getProvider() - Method in class org.fastnate.generator.context.GeneratorContext
-
Identifies the JPA provider to indicate implementation specific details.
- getQualifiedName() - Method in class org.fastnate.generator.context.GeneratorColumn
-
The name of this column, as used by the current dialect.
- getQualifiedName() - Method in class org.fastnate.generator.context.GeneratorTable
-
The fully qualified name of this table, as used by the dialect.
- getQualifiedName() - Method in class org.fastnate.generator.context.NamedObject
-
Resolves the fully qualfified name of this object, as it is used by the dialect.
- getQualifiedName() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
The fully qualfied name of the sequence, including the optional catalog and schema name.
- getReferenceDate() - Method in class org.fastnate.util.RelativeDate
-
The date that is the base for this date.
- getRequiredEmbeddedProperties() - Method in class org.fastnate.generator.context.PluralProperty
-
Contains all properties of an embedded element collection which reference a required entity.
- getSchema() - Method in class org.fastnate.generator.context.GeneratorTable
-
The optional name of the schema that contains this table,
nullif the default schema is used. - getSchema() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
The (optional) schema that contains the sequence.
- getSequence() - Method in class org.fastnate.generator.statements.SequenceValueExpression
-
The written sequence.
- getSequenceName() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
The name of the sequence.
- getSettings() - Method in class org.fastnate.generator.context.GeneratorContext
-
Contains the settings that were given during creation, resp. as read from the persistence configuration.
- getSql() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- getStateId(E) - Method in class org.fastnate.generator.context.EntityClass
-
Finds the id for the given entity, for look up in the
EntityClass.entityStates. - getStatement() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- getStatements() - Method in class org.fastnate.generator.statements.ListStatementsWriter
- getStatementsCount() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The count of statements that we have executed up to now.
- getStatementsCount() - Method in class org.fastnate.generator.statements.FileStatementsWriter
-
The count of written statements.
- getStatementsCount() - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
The count of written statements.
- getStatementSeparator() - Method in class org.fastnate.generator.statements.FileStatementsWriter
-
The separator of the single statements, defaults to
";\n". - getStates() - Method in class org.fastnate.generator.context.GeneratorContext
-
Contains the state of single entities, maps from an entity name to the mapping of an id to its state.
- getStates(EntityClass<?>) - Method in class org.fastnate.generator.context.GeneratorContext
-
The entity states for the given entity class.
- getStyle(AccessType) - Static method in enum class org.fastnate.generator.context.AccessStyle
-
Determines the correct mapping to the style for the given accesstype.
- getTable() - Method in class org.fastnate.generator.context.EntityClass
-
The main table of the entity.
- getTable() - Method in class org.fastnate.generator.context.GeneratorColumn
-
The table of this column.
- getTable() - Method in class org.fastnate.generator.context.PluralProperty
-
The modified table.
- getTable() - Method in class org.fastnate.generator.context.PrimitiveProperty
-
The table of the column.
- getTable() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
The main table of this update / insert statement.
- getTable() - Method in interface org.fastnate.generator.statements.TableStatement
-
The affected table of this update / insert statement.
- getTables() - Method in class org.fastnate.generator.context.GeneratorContext
-
Mapping from the names of all known database table to their description (including column information).
- getTargetClass() - Method in class org.fastnate.generator.context.EntityProperty
-
The description of the type of this property.
- getType() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The type of the accessed attribute.
- getType() - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
The type of the numbers.
- getType() - Method in class org.fastnate.generator.context.Property
-
The type of the property.
- getUniqueProperties() - Method in class org.fastnate.generator.context.EntityClass
-
The properties that make up an additional unique identifier for the entity.
- getUniquePropertiesQuality() - Method in class org.fastnate.generator.context.EntityClass
-
Indicates the quality of
EntityClass.uniqueProperties. - getUniquePropertyQuality() - Method in class org.fastnate.generator.context.GeneratorContext
-
Indicates what kind of properties are used for referencing an entity with its unique properties.
- getUnit() - Method in class org.fastnate.util.RelativeDate.Precision
-
The name of the unit of this precision.
- getUnknownIdMarker() - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Marker for the ID of an entity which needs to be referenced by its unique properties.
- getUnquotedCatalog() - Method in class org.fastnate.generator.context.GeneratorTable
-
Removes any quotes from the catalog name.
- getUnquotedName() - Method in class org.fastnate.generator.context.NamedObject
-
Removes any quotes, if the object name contains them.
- getUnquotedSchema() - Method in class org.fastnate.generator.context.GeneratorTable
-
Removes any quotes from the schema name.
- getUpdates() - Method in class org.fastnate.generator.context.GenerationState.PendingState
- getValue() - Method in class org.fastnate.generator.statements.PrimitiveColumnExpression
-
The original primitive value.
- getValue(E) - Method in interface org.fastnate.generator.context.AttributeAccessor
-
Resolves the current value for the attribute on the given entity.
- getValue(E) - Method in class org.fastnate.generator.context.CollectionProperty
- getValue(E) - Method in class org.fastnate.generator.context.MapProperty
- getValue(E) - Method in class org.fastnate.generator.context.Property
-
Resolves the current value for this property on the given entity.
- getValueClass() - Method in class org.fastnate.generator.context.EntityProperty.MappingInformation
- getValueClass() - Method in class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- getValueClass() - Method in class org.fastnate.generator.context.PluralProperty
-
The class of the value of the collection.
- getValueColumn() - Method in class org.fastnate.generator.context.PluralProperty
-
The column that contains the value (or the id of the value).
- getValueColumn() - Method in class org.fastnate.generator.context.TableIdGenerator
- getValueColumnValue() - Method in class org.fastnate.generator.context.TableIdGenerator
- getValueConstructor() - Method in class org.fastnate.generator.context.PluralProperty
-
The noargs constructor for the values of the collection.
- getValueConverter() - Method in class org.fastnate.generator.context.PluralProperty
-
The converter for the value of the collection,
nullif not a primitive value. - getValueEntityClass() - Method in class org.fastnate.generator.context.PluralProperty
-
The description of the
PluralProperty.valueClass,nullif not an entity (or something provider specific). - getValues() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
The columns and their values.
- getWriter() - Method in class org.fastnate.generator.EntitySqlGenerator
-
The target of any generated SQL statement, e.g. a file or database.
- getWriter() - Method in class org.fastnate.generator.statements.FileStatementsWriter
-
Used to write the SQL statements.
- getWriter() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The receiver of our XML elements.
H
- H2Dialect - Class in org.fastnate.generator.dialect
-
Handles H2 specific conversions.
- H2Dialect() - Constructor for class org.fastnate.generator.dialect.H2Dialect
- hashCode() - Method in class org.fastnate.generator.context.EntityClass.EntityId
- hashCode() - Method in class org.fastnate.generator.context.GeneratorContext.GeneratorId
- hasPluralAnnotation(AttributeAccessor) - Static method in class org.fastnate.generator.context.PluralProperty
-
Indicates, that the given attribute has an annotation that indicates a plural property.
- hierarchyRoot - Variable in class org.fastnate.generator.context.EntityClass
-
The description of the entity class that is the root of the current inheritance hierarchy.
- HOURS - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding hours to a reference date.
I
- id - Variable in class org.fastnate.generator.context.EmbeddedProperty
- id - Variable in class org.fastnate.generator.context.GeneratorContext.GeneratorId
- idColumn - Variable in class org.fastnate.generator.context.PluralProperty
-
The column that contains the id of the entity.
- idColumn - Variable in class org.fastnate.generator.statements.AbstractStatementsWriter.UpdateStatement
- IdentityValue - Class in org.fastnate.generator.context
-
Contains the current value for a primary key of type
GenerationType.IDENTITY. - IdentityValue(GeneratorContext, GeneratorTable, GeneratorColumn) - Constructor for class org.fastnate.generator.context.IdentityValue
- idField - Variable in class org.fastnate.generator.context.EntityProperty
-
The name of the id for referencing an embedded id.
- IdGenerator - Class in org.fastnate.generator.context
-
Saves the current value and increments the value for a
GeneratedIdProperty. - IdGenerator() - Constructor for class org.fastnate.generator.context.IdGenerator
- idProperty - Variable in class org.fastnate.generator.context.EntityClass
-
The property that contains the id for the entity.
- idValue - Variable in class org.fastnate.generator.statements.AbstractStatementsWriter.UpdateStatement
- importData(Connection) - Method in interface org.fastnate.util.StartupImport
-
Start import of all the data.
- index - Variable in class org.fastnate.generator.context.GeneratorColumn
-
The index of this column in the list of all columns of the associated table.
- index - Variable in class org.fastnate.generator.context.GeneratorTable
-
The index of this table in the list of all available tables.
- inheritanceType - Variable in class org.fastnate.generator.context.EntityClass
-
The inheritance type of this class.
- initialize(Properties) - Method in interface org.fastnate.generator.provider.JpaProvider
-
Initializes this provider from the given settings.
- initializeIdColumnForMappingTable(EntityClass<?>, AttributeAccessor, AssociationOverride, JoinTable, CollectionTable) - Method in class org.fastnate.generator.context.PluralProperty
- initializeInverseProperty() - Method in class org.fastnate.generator.context.PluralProperty
- initialValue - Variable in class org.fastnate.generator.context.SequenceIdGenerator
-
The value from which the sequence object is to start generating.
- initialValue - Variable in class org.fastnate.generator.context.TableIdGenerator
- InsertStatement(GeneratorDialect, GeneratorTable) - Constructor for class org.fastnate.generator.statements.AbstractStatementsWriter.InsertStatement
-
Creates a new instance of InsertStatement.
- inspectUniqueConstraint(UniqueConstraint) - Method in class org.fastnate.generator.context.EntityClass
- inverseProperty - Variable in class org.fastnate.generator.context.EntityProperty
-
The opposite property of a bidirectional mapping.
- inverseProperty - Variable in class org.fastnate.generator.context.PluralProperty
-
The opposite property of a bidirectional mapping.
- invoke(Object, Method, Object[]) - Method in class org.fastnate.generator.context.AnnotationDefaults
-
Finds the default value for the original method.
- isAbsoluteIds() - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Shortcut for the inverse of
GeneratorContext.isWriteRelativeIds(). - isAllowed(Property<?, ?>) - Method in enum class org.fastnate.generator.context.UniquePropertyQuality
-
Indicates which type of property is allowed for this quality.
- isAutoGenerated() - Method in class org.fastnate.generator.context.GeneratorColumn
-
Indicates that the values of this column are not part of an insert statement, because they are generated by the database.
- isBetterUniquePropertyQuality(UniquePropertyQuality) - Method in class org.fastnate.generator.context.EntityClass
- isChangeSetStarted() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Indicates if we are currently in a changeSet.
- isCollectionProperty(AttributeAccessor) - Static method in class org.fastnate.generator.context.CollectionProperty
-
Indicates that the given attribute references a collection and may be used by an
CollectionProperty. - isComposition() - Method in class org.fastnate.generator.context.EntityProperty
-
Indicates that, according to the
CascadeType, we should remove the target entity when the current entity is removed. - isComposition() - Method in class org.fastnate.generator.context.EntityProperty.MappingInformation
- isComposition() - Method in class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- isComposition() - Method in class org.fastnate.generator.context.PluralProperty
-
Indicates that, according to the
CascadeType, we should remove the target entities when the current entity is removed. - isComposition(CascadeType[]) - Static method in class org.fastnate.generator.context.Property
-
Indicates that the property is a composition according to the given cascade types.
- isEmbedded() - Method in class org.fastnate.generator.context.PluralProperty
-
Indicates that this propery is a
ElementCollectionthat referencesEmbeddables. - isEmptyStringEqualToNull() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that the empty string is equal to
nullin this database. - isEmptyStringEqualToNull() - Method in class org.fastnate.generator.dialect.OracleDialect
- isEmulatingSequences() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that tables are used in place of sequences, if
GenerationType.SEQUENCEis defined for aGeneratedValue. - isEmulatingSequences() - Method in class org.fastnate.generator.dialect.MsSqlDialect
- isEmulatingSequences() - Method in class org.fastnate.generator.dialect.MySqlDialect
- isEntityProperty(AttributeAccessor) - Static method in class org.fastnate.generator.context.EntityProperty
-
Indicates that the given attribute references a single entity and may be used by an
EntityProperty. - isEntityReference() - Method in class org.fastnate.generator.context.PluralProperty
-
Indicates that entities are referenced by the collection.
- isFastInTransaction() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that the database usually faster when all statements are executed within an transaction.
- isFastInTransaction() - Method in class org.fastnate.generator.dialect.MySqlDialect
- isFastInTransaction() - Method in class org.fastnate.generator.dialect.OracleDialect
- isId() - Method in class org.fastnate.generator.context.EmbeddedProperty
- isIdentitySupported() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that identity columns are supported by the database.
- isIdentitySupported() - Method in class org.fastnate.generator.dialect.OracleDialect
- isInitializingGeneratorTables() - Method in interface org.fastnate.generator.provider.JpaProvider
-
Indicates that this JPA implementation initializes the
TableGeneratortables when the schema is created. - isJoinedDiscriminatorNeeded() - Method in interface org.fastnate.generator.provider.JpaProvider
-
Indicates if the current JPA provider needs always a discriminator column for a JOINED table.
- isMapProperty(AttributeAccessor) - Static method in class org.fastnate.generator.context.MapProperty
-
Indicates that the given attribute references a map and may be used by an
MapProperty. - isNew(E) - Method in class org.fastnate.generator.context.EntityClass
-
Indicates that the given entity needs to be written.
- isNew(E) - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Indicates that the given entity needs to be written.
- isNextSequenceValueInInsertSupported() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that a sequence may be updated in the insert statement.
- ISO_DATETIMESECONDS_FORMAT - Static variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- isOptional() - Method in class org.fastnate.generator.context.EntityProperty.MappingInformation
- isPersistent(AttributeAccessor) - Method in interface org.fastnate.generator.provider.JpaProvider
-
Indicates that the given attribute is persistent according to the current JPA provider.
- isPlainExpressionAvailable() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
Indicates that at least one of the
column expressionsis not aprimitive SQL value. - isPostIncrement() - Method in class org.fastnate.generator.context.IdentityValue
- isPostIncrement() - Method in class org.fastnate.generator.context.IdGenerator
-
Indicates that
IdGenerator.createNextValue(Class)should be called after the entity was written - as the value is not available before. - isPostIncrement() - Method in class org.fastnate.generator.context.SequenceIdGenerator
- isPostIncrement() - Method in class org.fastnate.generator.context.TableIdGenerator
- isPostponedInsert(List<Object>, E) - Static method in class org.fastnate.generator.EntitySqlGenerator
- isPreferSequenceCurentValue() - Method in class org.fastnate.generator.context.GeneratorContext
-
Indiciates to use "currval" of a sequence if the referenced entity is the last created entity for that sequence before checking for
unique properties. - isPrimitive() - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Indicates that the ID is never "null", because we have a primitive ID value.
- isQuoteAllIdentifiers() - Method in class org.fastnate.generator.context.GeneratorContext
-
Indicates to quote all identifiers.
- isReference(E) - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Indicates that the given entity was not written before, but exists already in the database.
- isRelativeDatesSupported() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Indicates if our liquibase version supports relative dates.
- isRelativeIds() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
Indicates that the sequence is used when referencing existing IDs, instead of absolute IDs.
- isRelativeIds() - Method in class org.fastnate.generator.context.TableIdGenerator
- isRequired() - Method in class org.fastnate.generator.context.EmbeddedProperty
- isRequired() - Method in class org.fastnate.generator.context.EntityProperty
-
Indicates, that this property needs a value.
- isRequired() - Method in class org.fastnate.generator.context.PluralProperty
- isRequired() - Method in class org.fastnate.generator.context.PrimitiveProperty
-
Indicates if the property required.
- isRequired() - Method in class org.fastnate.generator.context.Property
-
Indicates if this property is an required field in the database (needs to exist when the insert statement is written).
- isRequired(AttributeAccessor) - Static method in class org.fastnate.generator.context.PrimitiveProperty
- isSchemaSupported() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that this dialect supports the
schemanaming. - isSchemaSupported() - Method in class org.fastnate.generator.dialect.MySqlDialect
- isSelectFromSameTableInInsertSupported() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that this dialect may select from the same table in an insert statement.
- isSelectFromSameTableInInsertSupported() - Method in class org.fastnate.generator.dialect.MySqlDialect
- isSequenceInWhereSupported() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that references to sequences in
WHEREexpressions are supported. - isSequenceInWhereSupported() - Method in class org.fastnate.generator.dialect.OracleDialect
- isSequenceSupported() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that sequences are supported by the database.
- isSettingIdentityAllowed() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates if this dialect supports writing absolute values to an
GenerationType.IDENTITYcolumn. - isSettingIdentityAllowed() - Method in class org.fastnate.generator.dialect.MsSqlDialect
- isTableColumn() - Method in class org.fastnate.generator.context.EmbeddedProperty
- isTableColumn() - Method in class org.fastnate.generator.context.EntityProperty
- isTableColumn() - Method in class org.fastnate.generator.context.PluralProperty
- isTableColumn() - Method in class org.fastnate.generator.context.Property
-
Indicates that this property maps to a column from the parent table.
- isTableColumn() - Method in class org.fastnate.generator.context.SingularProperty
- isUseTargetTable() - Method in class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- isUseTargetTable() - Method in class org.fastnate.generator.context.PluralProperty
-
Indicates to use a column of the target table.
- isWriteNullValues() - Method in class org.fastnate.generator.context.GeneratorContext
-
Indicates to include null values in statements.
- isWriteRelativeIds() - Method in class org.fastnate.generator.context.GeneratorContext
-
Indicates that we write into a schema that is not empty.
J
- joinedParentClass - Variable in class org.fastnate.generator.context.EntityClass
-
The description of the next entity class that has
InheritanceType.JOINED, if any. - JpaProvider - Interface in org.fastnate.generator.provider
-
Encapsulates details specific to the current JPA implementation.
K
- keyClass - Variable in class org.fastnate.generator.context.MapProperty
-
The class of the key of the map.
- keyColumn - Variable in class org.fastnate.generator.context.MapProperty
-
The name of the column that contains the key.
- keyConverter - Variable in class org.fastnate.generator.context.MapProperty
-
The converter for the target value,
nullif not a primitive value. - keyEntityClass - Variable in class org.fastnate.generator.context.MapProperty
-
The description of the key class,
nullif not an entity.
L
- lastLogTime - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The last time that we have written a log message about the count of statements.
- letter - Variable in class org.fastnate.generator.dialect.GeneratorDialect
- LiquibaseStatementsWriter - Class in org.fastnate.generator.statements
-
Generates statements for the Liquibase changelog file.
- LiquibaseStatementsWriter(OutputStream, String) - Constructor for class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Creates a new writer which generates an XML file with "UTF-8" encoding and use the H2 dialect for any plain statement.
- LiquibaseStatementsWriter(XMLStreamWriter, String) - Constructor for class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Creates a new writer which uses H2 for any plain statement.
- LiquibaseStatementsWriter(GeneratorContext) - Constructor for class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Creates a new writer which generates an XML file with "UTF-8" encoding.
- LiquibaseStatementsWriter(GeneratorDialect, OutputStream, String) - Constructor for class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Creates a new writer which generates an XML file with "UTF-8" encoding.
- LiquibaseStatementsWriter(GeneratorDialect, XMLStreamWriter, String) - Constructor for class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Creates a new writer.
- ListStatementsWriter - Class in org.fastnate.generator.statements
-
A simple
StatementsWriter, which just stores all generated statements into a list. - ListStatementsWriter() - Constructor for class org.fastnate.generator.statements.ListStatementsWriter
- LobConverter - Class in org.fastnate.generator.converter
-
Generates the expression for a
property. - LobConverter() - Constructor for class org.fastnate.generator.converter.LobConverter
- log - Static variable in class org.fastnate.generator.context.GeneratorContext
- log - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
- log - Static variable in class org.fastnate.generator.statements.FileStatementsWriter
- log - Static variable in class org.fastnate.generator.statements.PostgreSqlBulkWriter
- LOG_STATEMENTS_KEY - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Name of the setting which turns logging of statements on or off.
- logStatements - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Indicates that we log each statement for debugging purposes.
M
- mappedBy - Variable in class org.fastnate.generator.context.EntityProperty
-
The optional name of a property in the target type, that owns the relationship.
- mappedBy - Variable in class org.fastnate.generator.context.EntityProperty.MappingInformation
- mappedBy - Variable in class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- mappedBy - Variable in class org.fastnate.generator.context.PluralProperty
-
Indicates that this property is defined by another property on the target type.
- mappedId - Variable in class org.fastnate.generator.context.PluralProperty
-
The property to use, if an id is embedded.
- MappingInformation(Class<?>, boolean, String, boolean) - Constructor for class org.fastnate.generator.context.EntityProperty.MappingInformation
- MappingInformation(AttributeAccessor) - Constructor for class org.fastnate.generator.context.EntityProperty.MappingInformation
- MapProperty<E,
K, - Class in org.fastnate.generator.contextT> -
Describes a property of an
EntityClassthat is aMap. - MapProperty(EntityClass<?>, AttributeAccessor, AssociationOverride, AttributeOverride) - Constructor for class org.fastnate.generator.context.MapProperty
-
Creates a new map property.
- markExistingEntities(Iterable<E>) - Method in class org.fastnate.generator.EntitySqlGenerator
-
Marks a set of entity references, where we don't know the ID in the database.
- markExistingEntity(E) - Method in class org.fastnate.generator.context.EntityClass
-
Marks a entity reference, where we don't know the ID in the database.
- markExistingEntity(E, Number) - Method in class org.fastnate.generator.EntitySqlGenerator
-
Marks an entity reference, where we know the ID in the database.
- markPendingUpdates(E, V, Property<V, ?>, Object...) - Method in class org.fastnate.generator.context.EntityClass
-
Marks an update that is necessary when an entity is written (in the future).
- markReference(E) - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Marks an entity as reference, where we don't know the ID database.
- markReference(E, T) - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Marks an entity as reference, where we know the id in the database.
- MAX_BATCH_SIZE_KEY - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Name of the setting which controls the maximum size of generated batches.
- MAX_BLOB_LENGTH - Static variable in class org.fastnate.generator.dialect.OracleDialect
- MAX_ESCAPE - Static variable in class org.fastnate.generator.dialect.MySqlDialect
- MAX_VARCHAR_LENGTH - Static variable in class org.fastnate.generator.dialect.OracleDialect
- maxAllocatedValue - Variable in class org.fastnate.generator.context.TableIdGenerator
-
The maximum allocated value.
- maxBatchSize - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The maximum count of statements per batch job.
- maxSize - Variable in class org.fastnate.generator.converter.StringConverter
- maxUniqueProperties - Variable in class org.fastnate.generator.context.GeneratorContext
-
The maximum count of columns that are used when referencing an entity using it's unique properties.
- METHOD - Enum constant in enum class org.fastnate.generator.context.AccessStyle
- millis - Variable in class org.fastnate.util.RelativeDate.Precision
-
The precision of the unit in milliseconds.
- MILLISECONDS - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding milliseconds to a reference date.
- MILLISECONDS_BETWEEN_LOG_MESSAGES - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The count of milliseconds to wait, until a log message with the current count of statements is written.
- MINIMUM_JDBC_DRIVER_MAJOR_VERSION - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The minimum major version of the JDBC API that the driver needs to support.
- MINIMUM_JDBC_DRIVER_MINOR_VERSION - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The minimum minor version of the JDBC API that the driver needs to support.
- minSize - Variable in class org.fastnate.generator.converter.StringConverter
- MINUTES - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding minutes to a reference date.
- ModelException - Exception Class in org.fastnate.generator.context
-
Thrown if the classes in the entity model are for some reason invalid.
- ModelException(String) - Constructor for exception class org.fastnate.generator.context.ModelException
-
Creates a new instance of
ModelException. - ModelException(String, Throwable) - Constructor for exception class org.fastnate.generator.context.ModelException
-
Creates a new instance of
ModelException. - MsSqlDialect - Class in org.fastnate.generator.dialect
-
Handles MS SQL specific conversions.
- MsSqlDialect() - Constructor for class org.fastnate.generator.dialect.MsSqlDialect
- mustExist(Object, String, Object...) - Static method in exception class org.fastnate.generator.context.ModelException
-
Throws a
ModelExceptionif the given value isnull. - MySqlDialect - Class in org.fastnate.generator.dialect
-
Handles MySQL specific conversions.
- MySqlDialect() - Constructor for class org.fastnate.generator.dialect.MySqlDialect
N
- name - Variable in class org.fastnate.generator.context.GeneratorColumn
-
The name of this column, as given by the metamodel.
- name - Variable in class org.fastnate.generator.context.GeneratorTable
-
The name of this table.
- NamedObject - Class in org.fastnate.generator.context
-
Base class for database schema objects that have a (possibly quoted) name.
- NamedObject() - Constructor for class org.fastnate.generator.context.NamedObject
- needsAlignment - Variable in class org.fastnate.generator.context.IdentityValue
- newElement() - Method in class org.fastnate.generator.context.PluralProperty
-
Tries to create a new instance of an element using the parameter-less constructor.
- newInstance() - Method in class org.fastnate.generator.context.EntityClass
-
Creates a new entity of the represented
class. - NextSequenceValueExpression - Class in org.fastnate.generator.statements
-
A
ColumnExpressionwhich builds thenext value of a sequence. - NextSequenceValueExpression(SequenceIdGenerator, long) - Constructor for class org.fastnate.generator.statements.NextSequenceValueExpression
-
Creates a new instance of an expression that references an ID by using the next value of a sequence.
- nextValue - Variable in class org.fastnate.generator.context.SequenceIdGenerator
- nextValue - Variable in class org.fastnate.generator.context.TableIdGenerator
- NOW - Static variable in class org.fastnate.generator.dialect.GeneratorDialect
-
Deprecated.
- NOW - Static variable in class org.fastnate.util.RelativeDate
-
Represents the constant for writing the "now" function to SQL.
- NULL - Static variable in class org.fastnate.generator.statements.PrimitiveColumnExpression
-
Represents an expression of a
nullvalue. - NULL_VALUES_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for
GeneratorContext.writeNullValues. - nullable - Variable in class org.fastnate.generator.converter.StringConverter
- NUMBER_MAPPERS - Static variable in class org.fastnate.util.ClassUtil
-
Mapping from a number class to its mapping function.
- NumberConverter - Class in org.fastnate.generator.converter
-
Converts a numeric value to a SQL expression.
- NumberConverter(Class<? extends Number>) - Constructor for class org.fastnate.generator.converter.NumberConverter
-
Creates a new instance of
NumberConverter.
O
- onlyPrimitives - Enum constant in enum class org.fastnate.generator.context.UniquePropertyQuality
-
Only primitives are allowed (even optional).
- onlyRequired - Enum constant in enum class org.fastnate.generator.context.UniquePropertyQuality
-
Only required primitives and required entity references and are allowed.
- onlyRequiredPrimitives - Enum constant in enum class org.fastnate.generator.context.UniquePropertyQuality
-
Only required primitives are allowed.
- onPropertiesAvailable(Consumer<EntityClass<E>>) - Method in class org.fastnate.generator.context.EntityClass
-
Registers a listener that is called as soon as all properties of this class are built.
- optional - Variable in class org.fastnate.generator.context.EntityProperty.MappingInformation
- OracleDialect - Class in org.fastnate.generator.dialect
-
Handles Oracle specific conversions.
- OracleDialect() - Constructor for class org.fastnate.generator.dialect.OracleDialect
- orderColumn - Variable in class org.fastnate.generator.context.CollectionProperty
-
The name of the column that saves the order of the entries in the collection.
- org.fastnate.generator - package org.fastnate.generator
- org.fastnate.generator.context - package org.fastnate.generator.context
- org.fastnate.generator.converter - package org.fastnate.generator.converter
- org.fastnate.generator.dialect - package org.fastnate.generator.dialect
- org.fastnate.generator.provider - package org.fastnate.generator.provider
- org.fastnate.generator.statements - package org.fastnate.generator.statements
- org.fastnate.util - package org.fastnate.util
- OUTPUT_ENCODING_KEY - Static variable in class org.fastnate.generator.statements.FileStatementsWriter
-
Settings keyfor the encoding of the generated SQL file, if not given in the constructor. - OUTPUT_FILE_KEY - Static variable in class org.fastnate.generator.statements.FileStatementsWriter
-
Settings keyfor the generated SQL file, if not given in the constructor. - OUTPUT_FILE_KEY - Static variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Settings keyfor the generated XML file, if not given in the constructor. - outputStream - Variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The outputstream to close, if this writer is closed.
- overrides - Variable in class org.fastnate.generator.context.AnnotationDefaults
P
- parameterIndices - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- parentEntityClass - Variable in class org.fastnate.generator.context.EntityClass
-
Only used during
EntityClass.build()to find the joinedParentClass even if that one references our class. - parse - Variable in class org.fastnate.generator.converter.TemporalConverter
-
The method that creates the actual value from a string, which was defined as
DefaultValue. - PendingState() - Constructor for class org.fastnate.generator.context.GenerationState.PendingState
- PERSISTED - Static variable in class org.fastnate.generator.context.GenerationState
-
Marker for an entity, that was written already.
- PERSISTENCE_FILE_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for the path to the persistence.xml, either relative to the current directory or absolute.
- PERSISTENCE_UNIT_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for the name of the persistence unit in the persistence.xml.
- pkColumn - Variable in class org.fastnate.generator.context.TableIdGenerator
- pkColumnValue - Variable in class org.fastnate.generator.context.TableIdGenerator
- PlainColumnExpression - Class in org.fastnate.generator.statements
-
An SQL expression, which is printed to SQL "as is".
- PlainColumnExpression(String) - Constructor for class org.fastnate.generator.statements.PlainColumnExpression
- plainExpressionAvailable - Variable in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
Indicates that at least one of the
column expressionsis not aprimitive SQL value. - plainStatement - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter.ContextListener
- plainStatement - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Used to execute all plain SQL statements.
- PlainStatement(String) - Constructor for class org.fastnate.generator.statements.AbstractStatementsWriter.PlainStatement
- PluralProperty<E,
C, - Class in org.fastnate.generator.contextT> -
Base class for
MapPropertyandCollectionProperty. - PluralProperty(EntityClass<?>, AttributeAccessor, AssociationOverride, AttributeOverride, int) - Constructor for class org.fastnate.generator.context.PluralProperty
-
Creates a new property.
- PluralProperty.EntityMappingInformation - Class in org.fastnate.generator.context
-
Helper for evaluating correct mapping information from the annotations.
- PostgresDialect - Class in org.fastnate.generator.dialect
-
Handles PostgreSQL specific conversions.
- PostgresDialect() - Constructor for class org.fastnate.generator.dialect.PostgresDialect
- PostgreSqlBulkWriter - Class in org.fastnate.generator.statements
-
Implementation of a
StatementsWriterthat writes bulk text files for each table, and references them in "COPY INTO". - PostgreSqlBulkWriter(GeneratorContext) - Constructor for class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
Creates a new instance for a SQL file with UTF-8 encoding.
- PostgreSqlBulkWriter(GeneratorContext, File) - Constructor for class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
Creates a new instance for a SQL file with UTF-8 encoding.
- PostgreSqlBulkWriter(GeneratorContext, File, Writer, Charset) - Constructor for class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
Creates a new instance of
PostgreSqlBulkWriter. - PostgreSqlBulkWriter(GeneratorContext, File, Charset) - Constructor for class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
Creates a new instance for a SQL file.
- PostgreSqlBulkWriter.ContextListener - Class in org.fastnate.generator.statements
- postInsert(E) - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Called after the insert statement was written, to update any nessecary state in the context.
- Precision(String, long) - Constructor for class org.fastnate.util.RelativeDate.Precision
-
Creates a new
Precisioninstance. - PRECISIONS - Static variable in class org.fastnate.util.RelativeDate
-
All known precisions, from the smallest to the biggest.
- PREFER_SEQUENCE_CURRENT_VALUE - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for
GeneratorContext.preferSequenceCurentValue. - preferSequenceCurentValue - Variable in class org.fastnate.generator.context.GeneratorContext
-
Indiciates to use "currval" of a sequence if the referenced entity is the last created entity for that sequence before checking for
unique properties. - PreparedInsertStatement(GeneratorDialect, Connection, GeneratorTable) - Constructor for class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- preparedStatements - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter.ContextListener
- preparedStatements - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
All prepared statements for the tables.
- primaryKeyJoinColumn - Variable in class org.fastnate.generator.context.EntityClass
-
The column that contains the id of this entity if
EntityClass.joinedParentClassis notnull. - primitive - Variable in class org.fastnate.generator.context.GeneratedIdProperty
-
Indicates that the ID is never "null", because we have a primitive ID value.
- PrimitiveColumnExpression<T> - Class in org.fastnate.generator.statements
-
A
ColumnExpressionwhich contains a primitive value. - PrimitiveColumnExpression(T, Function<T, String>) - Constructor for class org.fastnate.generator.statements.PrimitiveColumnExpression
-
Creates a new instance of an expression where the original value is the database value.
- PrimitiveColumnExpression(T, T, Function<T, String>) - Constructor for class org.fastnate.generator.statements.PrimitiveColumnExpression
-
Creates a new
PrimitiveColumnExpressioninstance. - PrimitiveProperty<E,
T> - Class in org.fastnate.generator.context -
Describes a singular primitive property of an
EntityClass. - PrimitiveProperty(GeneratorContext, GeneratorTable, AttributeAccessor, Column) - Constructor for class org.fastnate.generator.context.PrimitiveProperty
-
Instantiates a new primitive property.
- PrimitiveProperty(GeneratorContext, GeneratorTable, AttributeAccessor, Column, boolean) - Constructor for class org.fastnate.generator.context.PrimitiveProperty
-
Instantiates a new primitive property.
- properties - Variable in class org.fastnate.generator.context.EntityClass
-
Mapping from the name of all persistent properties to their description.
- property - Variable in class org.fastnate.generator.context.GenerationState.PendingState.Update
- Property<E,
T> - Class in org.fastnate.generator.context -
Base class for the description of properties of an
EntityClass. - Property(AttributeAccessor) - Constructor for class org.fastnate.generator.context.Property
-
Creates a new instance of a property.
- provider - Variable in class org.fastnate.generator.context.GeneratorContext
-
Identifies the JPA provider to indicate implementation specific details.
- PROVIDER_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for the JPA provider.
Q
- qualifiedName - Variable in class org.fastnate.generator.context.GeneratorColumn
-
The name of this column, as used by the current dialect.
- qualifiedName - Variable in class org.fastnate.generator.context.GeneratorTable
-
The fully qualified name of this table, as used by the dialect.
- qualifiedName - Variable in class org.fastnate.generator.context.SequenceIdGenerator
-
The fully qualfied name of the sequence, including the optional catalog and schema name.
- QUOTE_ALL_IDENTIFIERS_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for
GeneratorContext.quoteAllIdentifiers. - quoteAllIdentifiers - Variable in class org.fastnate.generator.context.GeneratorContext
-
Indicates to quote all identifiers.
- quoteIdentifier(String) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Quotes an object name for the current database dialect.
- quoteIdentifier(String) - Method in class org.fastnate.generator.dialect.MsSqlDialect
- quoteIdentifier(String) - Method in class org.fastnate.generator.dialect.MySqlDialect
- quoteString(String) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Quotes the given string.
- quoteString(String) - Method in class org.fastnate.generator.dialect.MySqlDialect
-
Create MySQL specific quoting of the string.
- quoteString(String) - Method in class org.fastnate.generator.dialect.OracleDialect
R
- readPersistenceFile(Properties) - Static method in class org.fastnate.generator.context.GeneratorContext
-
Tries to read any persistence file defined in the settings.
- referenceDate - Variable in class org.fastnate.util.RelativeDate
-
The date that is the base for this date.
- ReferenceDate(long) - Constructor for class org.fastnate.util.RelativeDate.ReferenceDate
-
Creates a new instance of
RelativeDate.ReferenceDate. - registerGenerators(AnnotatedElement, GeneratorTable) - Method in class org.fastnate.generator.context.GeneratorContext
-
Registers the
TableGeneratorandSequenceGeneratordeclared at the given element. - RELATIVE_IDS_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for
GeneratorContext.writeRelativeIds. - RelativeDate - Class in org.fastnate.util
-
Used for date calculation when writing entities.
- RelativeDate(long) - Constructor for class org.fastnate.util.RelativeDate
-
Creates a new instance with the given millis as time.
- RelativeDate(RelativeDate.ReferenceDate, long) - Constructor for class org.fastnate.util.RelativeDate
-
Creates a new instance with the given millis as time and the given reference date.
- RelativeDate(RelativeDate.ReferenceDate, long, RelativeDate.Precision) - Constructor for class org.fastnate.util.RelativeDate
-
Creates a new difference to a given reference date.
- RelativeDate.Precision - Class in org.fastnate.util
-
The precision of a difference between a reference date and a date property.
- RelativeDate.ReferenceDate - Class in org.fastnate.util
-
Marker for
RelativeDate.NOWandRelativeDate.TODAY. - relativeDatesSupported - Variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Indicates if our liquibase version supports relative dates.
- relativeIds - Variable in class org.fastnate.generator.context.SequenceIdGenerator
-
Indicates that the sequence is used when referencing existing IDs, instead of absolute IDs.
- relativeIds - Variable in class org.fastnate.generator.context.TableIdGenerator
- removeContextModelListener(ContextModelListener) - Method in class org.fastnate.generator.context.GeneratorContext
-
Removes a listener from this context.
- required - Variable in class org.fastnate.generator.context.EntityProperty
-
Indicates, that this property needs a value.
- required - Variable in class org.fastnate.generator.context.PrimitiveProperty
-
Indicates if the property required.
- requiredEmbeddedProperties - Variable in class org.fastnate.generator.context.PluralProperty
-
Contains all properties of an embedded element collection which reference a required entity.
- reset() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
Resets the content of this statement to reuse it.
- reset() - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- resolveAnnotationAttribute(AssociationOverride, JoinTable, CollectionTable, Function<JoinTable, String>, Function<CollectionTable, String>, String) - Static method in class org.fastnate.generator.context.PluralProperty
- resolveColumn(String) - Method in class org.fastnate.generator.context.GeneratorTable
-
Adds or finds a column which is part of an insert statement to this statement.
- resolveColumn(String, boolean) - Method in class org.fastnate.generator.context.GeneratorTable
-
Adds or finds a column which is part of this table.
- resolveJoinColumn(GeneratorTable, AttributeAccessor, AssociationOverride, EntityClass<?>) - Static method in class org.fastnate.generator.context.EntityProperty
- resolveTable(AssociationOverride, A, Function<A, String>, Function<A, String>, Function<A, String>, String) - Method in class org.fastnate.generator.context.GeneratorContext
-
Finds resp. builds the metadata to the given table from the given (optional) annotation.
- resolveTable(String, String, String) - Method in class org.fastnate.generator.context.GeneratorContext
-
Finds resp. builds the metadata to the given table.
- resolveTable(GeneratorContext, AssociationOverride, JoinTable, CollectionTable, GeneratorTable, String) - Static method in class org.fastnate.generator.context.PluralProperty
S
- schema - Variable in class org.fastnate.generator.context.GeneratorTable
-
The optional name of the schema that contains this table,
nullif the default schema is used. - schema - Variable in class org.fastnate.generator.context.SequenceIdGenerator
-
The (optional) schema that contains the sequence.
- SECONDS - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding seconds to a reference date.
- sequence - Variable in class org.fastnate.generator.statements.SequenceValueExpression
-
The written sequence.
- SequenceIdGenerator - Class in org.fastnate.generator.context
-
Stores the current value for a
SequenceGenerator. - SequenceIdGenerator(SequenceGenerator, GeneratorContext) - Constructor for class org.fastnate.generator.context.SequenceIdGenerator
-
Creates a new instance of
SequenceIdGenerator. - sequenceName - Variable in class org.fastnate.generator.context.SequenceIdGenerator
-
The name of the sequence.
- SequenceValueExpression - Class in org.fastnate.generator.statements
-
Base class for
ColumnExpressions which reference an ID by using the value of a sequence. - SequenceValueExpression(SequenceIdGenerator, long) - Constructor for class org.fastnate.generator.statements.SequenceValueExpression
-
Creates a new
SequenceValueExpressioninstance. - SerializableConverter - Class in org.fastnate.generator.converter
-
Converts a
Serializableto a SQL expression. - SerializableConverter() - Constructor for class org.fastnate.generator.converter.SerializableConverter
- serialVersionUID - Static variable in exception class org.fastnate.generator.context.ModelException
- serialVersionUID - Static variable in class org.fastnate.util.RelativeDate.ReferenceDate
- serialVersionUID - Static variable in class org.fastnate.util.RelativeDate
- setColumnValue(GeneratorColumn, ColumnExpression) - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
Sets the value for a specific column.
- setColumnValue(GeneratorColumn, ColumnExpression) - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- setColumnValue(GeneratorColumn, ColumnExpression) - Method in interface org.fastnate.generator.statements.TableStatement
-
Sets a plain expression for a specific column.
- setContextModelListeners(List<ContextModelListener>) - Method in class org.fastnate.generator.context.GeneratorContext
-
All listeners of this context.
- setCurrentValue(long) - Method in class org.fastnate.generator.context.IdentityValue
- setCurrentValue(long) - Method in class org.fastnate.generator.context.IdGenerator
-
Sets a new start value.
- setCurrentValue(long) - Method in class org.fastnate.generator.context.SequenceIdGenerator
- setCurrentValue(long) - Method in class org.fastnate.generator.context.TableIdGenerator
- setDate(int) - Method in class org.fastnate.util.RelativeDate.ReferenceDate
- setDefaultSequenceGenerators(Map<String, SequenceIdGenerator>) - Method in class org.fastnate.generator.context.GeneratorContext
-
The default sequence generator, if none is explicitly specified in a
GeneratedValue. - setDefaultTableGenerators(Map<String, TableIdGenerator>) - Method in class org.fastnate.generator.context.GeneratorContext
-
The default table generator, if none is explicitly specified in a
GeneratedValue. - setDialect(GeneratorDialect) - Method in class org.fastnate.generator.context.GeneratorContext
-
Identifies the SQL dialect for generating SQL statements.
- setHours(int) - Method in class org.fastnate.util.RelativeDate.ReferenceDate
- setInverseProperty(Property<T, ?>) - Method in class org.fastnate.generator.context.EntityProperty
-
The opposite property of a bidirectional mapping.
- setMaxUniqueProperties(int) - Method in class org.fastnate.generator.context.GeneratorContext
-
The maximum count of columns that are used when referencing an entity using it's unique properties.
- setMinutes(int) - Method in class org.fastnate.util.RelativeDate.ReferenceDate
- setMonth(int) - Method in class org.fastnate.util.RelativeDate.ReferenceDate
- setPreferSequenceCurentValue(boolean) - Method in class org.fastnate.generator.context.GeneratorContext
-
Indiciates to use "currval" of a sequence if the referenced entity is the last created entity for that sequence before checking for
unique properties. - setProvider(JpaProvider) - Method in class org.fastnate.generator.context.GeneratorContext
-
Identifies the JPA provider to indicate implementation specific details.
- setQuoteAllIdentifiers(boolean) - Method in class org.fastnate.generator.context.GeneratorContext
-
Indicates to quote all identifiers.
- setSeconds(int) - Method in class org.fastnate.util.RelativeDate.ReferenceDate
- setStatementSeparator(String) - Method in class org.fastnate.generator.statements.FileStatementsWriter
-
The separator of the single statements, defaults to
";\n". - setTime(long) - Method in class org.fastnate.util.RelativeDate.ReferenceDate
- settings - Variable in class org.fastnate.generator.context.GeneratorContext
-
Contains the settings that were given during creation, resp. as read from the persistence configuration.
- setUniquePropertyQuality(UniquePropertyQuality) - Method in class org.fastnate.generator.context.GeneratorContext
-
Indicates what kind of properties are used for referencing an entity with its unique properties.
- setValue(E, T) - Method in interface org.fastnate.generator.context.AttributeAccessor
-
Sets a new value for the attribute on the given entity.
- setValue(E, T) - Method in class org.fastnate.generator.context.Property
-
Sets a new value for this property on the given entity.
- setWriteNullValues(boolean) - Method in class org.fastnate.generator.context.GeneratorContext
-
Indicates to include null values in statements.
- setWriteRelativeIds(boolean) - Method in class org.fastnate.generator.context.GeneratorContext
-
Indicates that we write into a schema that is not empty.
- setYear(int) - Method in class org.fastnate.util.RelativeDate.ReferenceDate
- SingularProperty<E,
T> - Class in org.fastnate.generator.context -
Represents a value that is exactly one column in the database.
- SingularProperty(AttributeAccessor) - Constructor for class org.fastnate.generator.context.SingularProperty
-
Creates a new instance of a SingularProperty.
- sql - Variable in class org.fastnate.generator.statements.AbstractStatementsWriter.PlainStatement
- sql - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- sql - Variable in class org.fastnate.generator.statements.PlainColumnExpression
- startNextChangeSet(String, String, String) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Closes the current change set (if any was started) and sets the infos of the next change set.
- StartupImport - Interface in org.fastnate.util
-
A class that is implemented by the fastnate-data module and is used by the actual JPA implementation to start the data import as soon as startup of JPA has finished.
- statement - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter.PreparedInsertStatement
- statements - Variable in class org.fastnate.generator.statements.ListStatementsWriter
- statementsCount - Variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
The count of statements that we have executed up to now.
- statementsCount - Variable in class org.fastnate.generator.statements.FileStatementsWriter
-
The count of written statements.
- statementsCount - Variable in class org.fastnate.generator.statements.PostgreSqlBulkWriter
-
The count of written statements.
- statementSeparator - Variable in class org.fastnate.generator.statements.FileStatementsWriter
-
The separator of the single statements, defaults to
";\n". - StatementsWriter - Interface in org.fastnate.generator.statements
-
Responsible to write
EntityStatements to a file or to the database. - states - Variable in class org.fastnate.generator.context.GeneratorContext
-
Contains the state of single entities, maps from an entity name to the mapping of an id to its state.
- stringConstructor - Variable in class org.fastnate.generator.converter.NumberConverter
- StringConverter - Class in org.fastnate.generator.converter
-
Converts a string property of an
EntityClass. - StringConverter() - Constructor for class org.fastnate.generator.converter.StringConverter
-
Creates a new instance of a StringConverter that accepts strings of arbitrary length.
- StringConverter(Column, boolean) - Constructor for class org.fastnate.generator.converter.StringConverter
-
Creates a new instance of a StringConverter for the given column definition.
- StringConverter(AttributeAccessor, boolean) - Constructor for class org.fastnate.generator.converter.StringConverter
-
Creates a new instance of a StringConverter for the given attribute.
T
- table - Variable in class org.fastnate.generator.context.EntityClass
-
The main table of the entity.
- table - Variable in class org.fastnate.generator.context.GeneratorColumn
-
The table of this column.
- table - Variable in class org.fastnate.generator.context.IdentityValue
- table - Variable in class org.fastnate.generator.context.PluralProperty
-
The modified table.
- table - Variable in class org.fastnate.generator.context.PrimitiveProperty
-
The table of the column.
- table - Variable in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
The main table of this update / insert statement.
- TableIdGenerator - Class in org.fastnate.generator.context
-
Saves the current value for a
TableGenerator. - TableIdGenerator(String, TableGenerator, GeneratorContext) - Constructor for class org.fastnate.generator.context.TableIdGenerator
-
Creates a new instance of
SequenceIdGenerator. - TableIdGenerator(GeneratorContext, boolean, GeneratorTable, GeneratorColumn, ColumnExpression, GeneratorColumn, int, long, long, long) - Constructor for class org.fastnate.generator.context.TableIdGenerator
-
Creates a new
TableIdGeneratorinstance. - tableName - Variable in class org.fastnate.generator.context.GeneratorContext.GeneratorId
- tables - Variable in class org.fastnate.generator.context.GeneratorContext
-
Mapping from the names of all known database table to their description (including column information).
- TableStatement - Interface in org.fastnate.generator.statements
-
A SQL statement that affects a table and a set of columns.
- targetClass - Variable in class org.fastnate.generator.context.EntityProperty
-
The description of the type of this property.
- targetType - Variable in class org.fastnate.generator.converter.EnumConverter
- TemporalConverter<T> - Class in org.fastnate.generator.converter
- TemporalConverter(Class<?>) - Constructor for class org.fastnate.generator.converter.TemporalConverter
-
Creates a new converter.
- test(boolean, String, Object...) - Static method in exception class org.fastnate.generator.context.ModelException
-
Throws a
ModelExceptionif the given condition is not met. - TODAY - Static variable in class org.fastnate.util.RelativeDate
-
Represents the constant for writing the "today" function to SQL.
- toSql() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.InsertStatement
- toSql() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.PlainStatement
- toSql() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.UpdateStatement
- toSql() - Method in interface org.fastnate.generator.statements.ColumnExpression
-
Generates the SQL for this expression.
- toSql() - Method in class org.fastnate.generator.statements.CurrentSequenceValueExpression
- toSql() - Method in interface org.fastnate.generator.statements.EntityStatement
-
Prints this statement as SQL.
- toSql() - Method in class org.fastnate.generator.statements.NextSequenceValueExpression
- toSql() - Method in class org.fastnate.generator.statements.PlainColumnExpression
- toSql() - Method in class org.fastnate.generator.statements.PrimitiveColumnExpression
- toSql(String) - Method in class org.fastnate.generator.statements.SequenceValueExpression
-
Builds the SQL expression by using the given SQL and the current
SequenceValueExpression.difference. - toString - Variable in class org.fastnate.generator.converter.TemporalConverter
-
The method that creates the SQL string from a temporal.
- toString() - Method in class org.fastnate.generator.context.EntityClass
- toString() - Method in class org.fastnate.generator.context.GeneratorContext.GeneratorId
- toString() - Method in class org.fastnate.generator.context.NamedObject
- toString() - Method in class org.fastnate.generator.context.Property
- toString() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
- toString() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.PlainStatement
- toString() - Method in class org.fastnate.generator.statements.PlainColumnExpression
- toString() - Method in class org.fastnate.generator.statements.PrimitiveColumnExpression
- toString() - Method in class org.fastnate.util.RelativeDate.Precision
- truncateTable(StatementsWriter, GeneratorTable) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Adds a "truncate table" statement to the given writer.
- truncateTable(StatementsWriter, GeneratorTable) - Method in class org.fastnate.generator.dialect.PostgresDialect
- truncateTables(GeneratorContext) - Method in interface org.fastnate.generator.statements.StatementsWriter
-
Truncates all discovered tables before any data is written to that tables.
- type - Variable in class org.fastnate.generator.context.GeneratedIdProperty
-
The type of the numbers.
- type - Variable in class org.fastnate.generator.converter.AbstractDateConverter
U
- UNIQUE_PROPERTIES_MAX_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for the
GeneratorContext.maxUniqueProperties. - UNIQUE_PROPERTIES_QUALITY_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for the
GeneratorContext.uniquePropertyQuality. - uniqueProperties - Variable in class org.fastnate.generator.context.EntityClass
-
The properties that make up an additional unique identifier for the entity.
- uniquePropertiesQuality - Variable in class org.fastnate.generator.context.EntityClass
-
Indicates the quality of
EntityClass.uniqueProperties. - uniquePropertyQuality - Variable in class org.fastnate.generator.context.GeneratorContext
-
Indicates what kind of properties are used for referencing an entity with its unique properties.
- UniquePropertyQuality - Enum Class in org.fastnate.generator.context
- UniquePropertyQuality() - Constructor for enum class org.fastnate.generator.context.UniquePropertyQuality
- unit - Variable in class org.fastnate.util.RelativeDate.Precision
-
The name of the unit of this precision.
- unknownIdMarker - Variable in class org.fastnate.generator.context.GeneratedIdProperty
-
Marker for the ID of an entity which needs to be referenced by its unique properties.
- unqoteObjectName(String) - Method in class org.fastnate.generator.context.NamedObject
-
Removes any quotes from the given object.
- UnsupportedTypeConverter - Class in org.fastnate.generator.converter
-
Converter used for all types that we can't convert.
- UnsupportedTypeConverter(String) - Constructor for class org.fastnate.generator.converter.UnsupportedTypeConverter
- Update(E, Property<E, ?>, Object[]) - Constructor for class org.fastnate.generator.context.GenerationState.PendingState.Update
- updates - Variable in class org.fastnate.generator.context.GenerationState.PendingState
- UpdateStatement(GeneratorDialect, GeneratorTable, GeneratorColumn, ColumnExpression) - Constructor for class org.fastnate.generator.statements.AbstractStatementsWriter.UpdateStatement
-
Creates a new instance of UpdateStatement.
- useTargetTable - Variable in class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- useTargetTable - Variable in class org.fastnate.generator.context.PluralProperty
-
Indicates to use a column of the target table.
- useTargetTable(AttributeAccessor, AssociationOverride) - Static method in class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
V
- value - Variable in class org.fastnate.generator.statements.PrimitiveColumnExpression
-
The original primitive value.
- value() - Element in annotation interface org.fastnate.generator.DefaultValue
-
The value to use during export.
- valueClass - Variable in class org.fastnate.generator.context.EntityProperty.MappingInformation
- valueClass - Variable in class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- valueClass - Variable in class org.fastnate.generator.context.PluralProperty
-
The class of the value of the collection.
- valueColumn - Variable in class org.fastnate.generator.context.PluralProperty
-
The column that contains the value (or the id of the value).
- valueColumn - Variable in class org.fastnate.generator.context.TableIdGenerator
- valueConstructor - Variable in class org.fastnate.generator.context.PluralProperty
-
The noargs constructor for the values of the collection.
- valueConverter - Variable in class org.fastnate.generator.context.PluralProperty
-
The converter for the value of the collection,
nullif not a primitive value. - valueConverter - Variable in class org.fastnate.generator.converter.CustomValueConverter
- ValueConverter<T> - Interface in org.fastnate.generator.converter
-
Converts a primitive value to an expression.
- valueEntityClass - Variable in class org.fastnate.generator.context.PluralProperty
-
The description of the
PluralProperty.valueClass,nullif not an entity (or something provider specific). - valueOf(String) - Static method in enum class org.fastnate.generator.context.AccessStyle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.fastnate.generator.context.UniquePropertyQuality
-
Returns the enum constant of this class with the specified name.
- values - Variable in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
The columns and their values.
- values() - Static method in enum class org.fastnate.generator.context.AccessStyle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.fastnate.generator.context.UniquePropertyQuality
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VERSION_KEY - Static variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Settings keyfor the generated liquibase version, if not given in the constructor. - VersionProperty<E,
T> - Class in org.fastnate.generator.context -
Represents a property marked with
Version. - VersionProperty(GeneratorContext, GeneratorTable, AttributeAccessor, Column) - Constructor for class org.fastnate.generator.context.VersionProperty
-
Creates a new instance of
VersionProperty.
W
- WEEKS - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding weeks to a reference date.
- write(E) - Method in class org.fastnate.generator.EntitySqlGenerator
-
Creates the Import-SQL for an entity.
- write(E, List<Object>) - Method in class org.fastnate.generator.EntitySqlGenerator
-
Creates the Import-SQL for an entity.
- write(Iterable<? extends E>) - Method in class org.fastnate.generator.EntitySqlGenerator
-
Creates the SQL for the given entities.
- write(String) - Method in class org.fastnate.generator.statements.FileStatementsWriter
-
Writes a bunch of SQL statements to the file.
- writeAlignmentStatements() - Method in class org.fastnate.generator.EntitySqlGenerator
-
Writes all statements that are necessary to align ID generators in the database with the current IDs.
- writeAlignmentStatements(StatementsWriter) - Method in class org.fastnate.generator.context.GeneratorContext
-
Builds all statements that are necessary to align ID generators in the database with the current IDs.
- writeAllocatedValue(StatementsWriter, boolean, long) - Method in class org.fastnate.generator.context.TableIdGenerator
- writeColumnExpression(ColumnExpression) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writeColumnExpression(TableStatement, T, ColumnExpression) - Method in class org.fastnate.generator.context.EntityProperty
-
Writes the column expression to the statement.
- writeComment(String) - Method in class org.fastnate.generator.EntitySqlGenerator
-
Writes a SQL comment to the target writer.
- writeComment(String) - Method in class org.fastnate.generator.statements.AbstractStatementsWriter
- writeComment(String) - Method in class org.fastnate.generator.statements.FileStatementsWriter
- writeComment(String) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writeComment(String) - Method in interface org.fastnate.generator.statements.StatementsWriter
-
Writes a SQL comment to the target.
- writeDateExpression(ColumnExpression, Date, Date) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writeInserts(E, List<Object>, EntityClass<E>, ColumnExpression) - Method in class org.fastnate.generator.EntitySqlGenerator
- writeNullValues - Variable in class org.fastnate.generator.context.GeneratorContext
-
Indicates to include null values in statements.
- writePendingStatements(StatementsWriter, Object) - Method in class org.fastnate.generator.context.GenerationState.PendingState
-
Generates the update statements for all entities that are required after the given entity was generated.
- writePlainStatement(String) - Method in class org.fastnate.generator.EntitySqlGenerator
-
Writes a plain SQL statement to the target writer.
- writePlainStatement(String) - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- writePlainStatement(String) - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
- writePlainStatement(GeneratorDialect, String) - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- writePlainStatement(GeneratorDialect, String) - Method in class org.fastnate.generator.statements.FileStatementsWriter
- writePlainStatement(GeneratorDialect, String) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writePlainStatement(GeneratorDialect, String) - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
- writePlainStatement(GeneratorDialect, String) - Method in interface org.fastnate.generator.statements.StatementsWriter
-
Writes a plain SQL statement.
- writePrimitiveExpression(PrimitiveColumnExpression<?>) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writer - Variable in class org.fastnate.generator.EntitySqlGenerator
-
The target of any generated SQL statement, e.g. a file or database.
- writer - Variable in class org.fastnate.generator.statements.FileStatementsWriter
-
Used to write the SQL statements.
- writer - Variable in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
The receiver of our XML elements.
- writeRelativeDateExpression(ColumnExpression, Date) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writeRelativeIds - Variable in class org.fastnate.generator.context.GeneratorContext
-
Indicates that we write into a schema that is not empty.
- writeSectionSeparator() - Method in class org.fastnate.generator.EntitySqlGenerator
-
Writes a new line to the target to separate different sections in the SQL file.
- writeSectionSeparator() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter
- writeSectionSeparator() - Method in class org.fastnate.generator.statements.FileStatementsWriter
- writeSectionSeparator() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writeSectionSeparator() - Method in interface org.fastnate.generator.statements.StatementsWriter
-
Writes a new line to the target file to separate different sections in the SQL file.
- writeSequenceExpression(SequenceValueExpression) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writeStatement(EntityStatement) - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- writeStatement(EntityStatement) - Method in class org.fastnate.generator.statements.FileStatementsWriter
- writeStatement(EntityStatement) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writeStatement(EntityStatement) - Method in class org.fastnate.generator.statements.ListStatementsWriter
- writeStatement(EntityStatement) - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
- writeStatement(EntityStatement) - Method in interface org.fastnate.generator.statements.StatementsWriter
-
Writes the given statement to a file or database.
- writeString(ColumnExpression, String) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writeTableEntities(E, List<Object>, Collection<Property<? super E, ?>>) - Method in class org.fastnate.generator.EntitySqlGenerator
- writeTableStatement(String) - Method in class org.fastnate.generator.statements.ConnectedStatementsWriter
- writeTableStatement(AbstractStatementsWriter.AbstractTableStatement) - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
- writeValueExpression(TableStatement, T, ColumnExpression) - Method in class org.fastnate.generator.context.PluralProperty
-
Writes the value expression to the statement.
Y
- YEARS - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding years to a reference date.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
RelativeDate.NOWinstead