Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- 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 - Enum Class in org.fastnate.generator.context
-
Indicates how persistent attributes are accessed.
- 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.
- 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.
- 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.
- 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. - AttributeAccessor - Interface in org.fastnate.generator.context
-
Offers access to a persistent attribute in an entity class.
B
- BooleanConverter - Class in org.fastnate.generator.converter
-
Converts a boolean to a SQL expression.
- BooleanConverter() - Constructor for class org.fastnate.generator.converter.BooleanConverter
- 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
- 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.
- 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.
- 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
- 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.
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. - CharConverter - Class in org.fastnate.generator.converter
-
Describes a char property of an
EntityClass. - CharConverter() - Constructor for class org.fastnate.generator.converter.CharConverter
- ClassUtil - Class in org.fastnate.util
-
Helper for inspection of classes.
- 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.FileStatementsWriter
- close() - Method in class org.fastnate.generator.statements.LiquibaseStatementsWriter
-
Writes the remaining elements.
- close() - Method in class org.fastnate.generator.statements.PostgreSqlBulkWriter
- 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).
- 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.
- ColumnExpression - Interface in org.fastnate.generator.statements
-
An expression for a column value in an
TableStatement. - ConnectedStatementsWriter - Class in org.fastnate.generator.statements
-
An implementation of a
StatementsWriterwhich writes the SQL statements directly to a database connection. - 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.
- ContextModelListener - Interface in org.fastnate.generator.context
-
Implementations of this class are interested in the discovery of new
entity classesorgenerators. - 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
- 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. - 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.
- 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.
- 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.
- 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.
- 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.
- DefaultContextModelListener - Class in org.fastnate.generator.context
-
Base implementation of a
ContextModelListenerwith empty methods. - DefaultContextModelListener() - Constructor for class org.fastnate.generator.context.DefaultContextModelListener
- 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
- DIALECT_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for the target SQL dialect.
- DurationConverter - Class in org.fastnate.generator.converter
-
Converts a
Durationto an SQL expression. - DurationConverter() - Constructor for class org.fastnate.generator.converter.DurationConverter
E
- 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.
- ensureDirectoryExists(File) - Static method in class org.fastnate.generator.statements.FileStatementsWriter
-
Ensures, that the parent directory of the given output file exists.
- EntityClass<E> - Class in org.fastnate.generator.context
-
Describes the DB relevant metadata of an
entity class. - 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
- EntityMappingInformation(Class<?>, String, boolean, boolean) - Constructor for class org.fastnate.generator.context.PluralProperty.EntityMappingInformation
- 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.
- 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. - 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.
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
- 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. - 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.
- 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.
- fireContextObjectAdded(BiConsumer<ContextModelListener, T>, T) - Method in class org.fastnate.generator.context.GeneratorContext
-
Fires an event to all
listeners. - 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
- 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
- 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
- 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.PendingState - Class in org.fastnate.generator.context
-
Marks all pending updates for an entity, that was not written up to now.
- 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.
- GeneratorDialect - Class in org.fastnate.generator.dialect
-
Handles database specific conversions.
- GeneratorDialect() - Constructor for class org.fastnate.generator.dialect.GeneratorDialect
- 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).
- 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.
- 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.
- 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.
- 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. - getDefaultSequenceGenerators() - Method in class org.fastnate.generator.context.GeneratorContext
-
The default sequence generator, if none is explicitly specified in a
GeneratedValue. - 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.
- 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.
- 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
- 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.
- 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.
- 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.
- 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.
- 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
- 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
- hasPluralAnnotation(AttributeAccessor) - Static method in class org.fastnate.generator.context.PluralProperty
-
Indicates, that the given attribute has an annotation that indicates a plural property.
- HOURS - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding hours to a reference date.
I
- 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
- 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
- importData(Connection) - Method in interface org.fastnate.util.StartupImport
-
Start import of all the data.
- initialize(Properties) - Method in interface org.fastnate.generator.provider.JpaProvider
-
Initializes this provider from the given settings.
- InsertStatement(GeneratorDialect, GeneratorTable) - Constructor for class org.fastnate.generator.statements.AbstractStatementsWriter.InsertStatement
-
Creates a new instance of InsertStatement.
- 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.
- 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.
- 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
- 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).
- 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
- JpaProvider - Interface in org.fastnate.generator.provider
-
Encapsulates details specific to the current JPA implementation.
L
- 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_STATEMENTS_KEY - Static variable in class org.fastnate.generator.statements.ConnectedStatementsWriter
-
Name of the setting which turns logging of statements on or off.
M
- MappingInformation(Class<?>, boolean, String, boolean) - 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.
- METHOD - Enum constant in enum class org.fastnate.generator.context.AccessStyle
- MILLISECONDS - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding milliseconds to a reference date.
- 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
- 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
- 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.
- 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. - 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.
- OracleDialect - Class in org.fastnate.generator.dialect
-
Handles Oracle specific conversions.
- OracleDialect() - Constructor for class org.fastnate.generator.dialect.OracleDialect
- 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.
P
- 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.
- 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
- 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.
- 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.
- PREFER_SEQUENCE_CURRENT_VALUE - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for
GeneratorContext.preferSequenceCurentValue. - 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.
- 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_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for the JPA provider.
Q
- QUOTE_ALL_IDENTIFIERS_KEY - Static variable in class org.fastnate.generator.context.GeneratorContext
-
The settings key for
GeneratorContext.quoteAllIdentifiers. - 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
- 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. - removeContextModelListener(ContextModelListener) - Method in class org.fastnate.generator.context.GeneratorContext
-
Removes a listener from this context.
- reset() - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
Resets the content of this statement to reuse it.
- 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.
- 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.
S
- SECONDS - Static variable in class org.fastnate.util.RelativeDate
-
Used for adding seconds to a reference date.
- 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. - 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
- setColumnValue(GeneratorColumn, ColumnExpression) - Method in class org.fastnate.generator.statements.AbstractStatementsWriter.AbstractTableStatement
-
Sets the value for a specific column.
- 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
- 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
- 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.
- 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.
- StatementsWriter - Interface in org.fastnate.generator.statements
-
Responsible to write
EntityStatements to a file or to the database. - 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
- 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. - TableStatement - Interface in org.fastnate.generator.statements
-
A SQL statement that affects a table and a set of columns.
- 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() - Method in class org.fastnate.generator.context.EntityClass
- 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.
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. - UniquePropertyQuality - Enum Class in org.fastnate.generator.context
- 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
- UpdateStatement(GeneratorDialect, GeneratorTable, GeneratorColumn, ColumnExpression) - Constructor for class org.fastnate.generator.statements.AbstractStatementsWriter.UpdateStatement
-
Creates a new instance of UpdateStatement.
V
- value() - Element in annotation interface org.fastnate.generator.DefaultValue
-
The value to use during export.
- ValueConverter<T> - Interface in org.fastnate.generator.converter
-
Converts a primitive value to an expression.
- 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() - 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(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.
- 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.
- 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(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.
- 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.
- 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.
- 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