- AbstractCsvDataProvider<E> - Class in org.fastnate.data.csv
-
Base class for converters that create SQL files from CSV files.
- AbstractCsvDataProvider(File) - Constructor for class org.fastnate.data.csv.AbstractCsvDataProvider
-
Initializes the converter from a path.
- AbstractCsvReader<R> - Class in org.fastnate.data.csv
-
Base class for reading a csv file into an object.
- AbstractCsvReader(File) - Constructor for class org.fastnate.data.csv.AbstractCsvReader
-
- AbstractDataProvider - Class in org.fastnate.data
-
Implementations of this class will automatically instantiated by the
EntityImporter
.
- AbstractDataProvider() - Constructor for class org.fastnate.data.AbstractDataProvider
-
- AbstractValueConverter<T> - Class in org.fastnate.generator.converter
-
- AbstractValueConverter() - Constructor for class org.fastnate.generator.converter.AbstractValueConverter
-
- AccessStyle - Enum in org.fastnate.generator.context
-
Indicates how persistent attributes are accessed.
- addColumnMapping(String, String) - Method in class org.fastnate.data.csv.AbstractCsvDataProvider
-
Defines the mapping from a column name to a property name.
- addConverter(String, CsvPropertyConverter<?>) - Method in class org.fastnate.data.csv.AbstractCsvDataProvider
-
Registers the converter to use for a specific column.
- addInsertExpression(E, InsertStatement) - Method in class org.fastnate.generator.context.EmbeddedProperty
-
- addInsertExpression(E, InsertStatement) - Method in class org.fastnate.generator.context.EntityProperty
-
- addInsertExpression(E, InsertStatement) - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
- addInsertExpression(E, InsertStatement) - Method in class org.fastnate.generator.context.PluralProperty
-
- addInsertExpression(E, InsertStatement) - Method in class org.fastnate.generator.context.PrimitiveProperty
-
- addInsertExpression(E, InsertStatement) - 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(InsertStatement, String, Number) - Method in class org.fastnate.generator.context.IdentityValue
-
- addNextValue(InsertStatement, String, Number) - Method in class org.fastnate.generator.context.IdGenerator
-
Adds the generated value to the given statement.
- addNextValue(InsertStatement, String, Number) - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
- addNextValue(InsertStatement, String, 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.PostgresDialect
-
- addValue(String, String) - Method in class org.fastnate.generator.statements.TableStatement
-
Adds a value to the list of value expressions.
- adjustNextIdentityValue(String, String, 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(String, String, long) - Method in class org.fastnate.generator.dialect.PostgresDialect
-
- adjustNextSequenceValue(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(String, long, long, int) - Method in class org.fastnate.generator.dialect.MySqlDialect
-
- adjustNextSequenceValue(String, long, long, int) - Method in class org.fastnate.generator.dialect.OracleDialect
-
- alignNextValue() - Method in class org.fastnate.generator.context.IdentityValue
-
- alignNextValue() - 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() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
- alignNextValue() - Method in class org.fastnate.generator.context.TableIdGenerator
-
- AnnotationDefaults - Class in org.fastnate.generator.context
-
Creates an implementation of an annotation class to access the default values for the single values.
- AnnotationDefaults() - Constructor for class org.fastnate.generator.context.AnnotationDefaults
-
- applyColumn(E, String, String) - Method in class org.fastnate.data.csv.AbstractCsvDataProvider
-
Converts a column value to a property value and sets that property for an entity.
- AttributeAccessor - Interface in org.fastnate.generator.context
-
Offers access to a persistent attribute in an entity class.
- CalendarConverter - Class in org.fastnate.generator.converter
-
- CalendarConverter(AttributeAccessor, boolean) - Constructor for class org.fastnate.generator.converter.CalendarConverter
-
- CalendarConverter(TemporalType) - Constructor for class org.fastnate.generator.converter.CalendarConverter
-
- CharConverter - Class in org.fastnate.generator.converter
-
- CharConverter() - Constructor for class org.fastnate.generator.converter.CharConverter
-
- ClassUtil - Class in org.fastnate.data.util
-
Helper for inspection of classes.
- close() - Method in class org.fastnate.generator.EntitySqlGenerator
-
Writes any missing SQL and closes the target writer.
- CollectionProperty<E,T> - Class in org.fastnate.generator.context
-
Describes a property of an
EntityClass
that contains more than one value.
- CollectionProperty(EntityClass<?>, AttributeAccessor, AssociationOverride) - Constructor for class org.fastnate.generator.context.CollectionProperty
-
Creates a new collection property.
- convert(Class<? extends Boolean>, String) - Method in class org.fastnate.data.csv.CsvBooleanConverter
-
- convert(Class<? extends Character>, String) - Method in class org.fastnate.data.csv.CsvCharacterConverter
-
- convert(Class<? extends Date>, String) - Method in class org.fastnate.data.csv.CsvDateConverter
-
- convert(Class<? extends Enum<?>>, String) - Method in class org.fastnate.data.csv.CsvEnumConverter
-
- convert(Class<? extends T>, String) - Method in class org.fastnate.data.csv.CsvFormatConverter
-
- convert(Class<? extends T>, String) - Method in class org.fastnate.data.csv.CsvMapConverter
-
- convert(Class<? extends Number>, String) - Method in class org.fastnate.data.csv.CsvNumberConverter
-
- convert(Class<? extends T>, String) - Method in interface org.fastnate.data.csv.CsvPropertyConverter
-
Converts a value from CSV to Java.
- convertBooleanValue(boolean) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Converts a boolean value for the current database type.
- convertBooleanValue(boolean) - Method in class org.fastnate.generator.dialect.PostgresDialect
-
- convertColumn(String, Class<T>, String) - Method in class org.fastnate.data.csv.AbstractCsvDataProvider
-
Tries to convert the given string to a value of the given type for the given column.
- 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.OracleDialect
-
- create(Map<N, V>, Class<N>) - Static method in class org.fastnate.data.csv.CsvMapConverter
-
Creates a new instance of a CsvMapConverter that uses numbers to lookup the values.
- create(Map<String, V>) - Static method in class org.fastnate.data.csv.CsvMapConverter
-
Creates a new instance of a CsvMapConverter that uses strings to lookup the values.
- 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.
- 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.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) - Static method in class org.fastnate.generator.context.PrimitiveProperty
-
Creates a converter for a primitive type.
- createEntities(Map<String, String>) - Method in class org.fastnate.data.csv.AbstractCsvDataProvider
-
Builds one or more entities from the given row.
- createEntities(Map<String, String>) - Method in class org.fastnate.data.csv.AbstractCsvReader
-
Builds one or more entities from the given row.
- createEntity() - Method in class org.fastnate.data.csv.AbstractCsvDataProvider
-
Creates a new empty entity for the current converter.
- createEntity(Map<String, String>) - Method in class org.fastnate.data.csv.AbstractCsvDataProvider
-
Builds one entity from the given row.
- createEntity(Map<String, String>) - Method in class org.fastnate.examples.data.OrganisationData
-
- createHexBlobExpression(String, byte[], String) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Creates the hex presentation of the given blob.
- 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(Class<N>) - 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
-
- createPostInsertStatements(E) - Method in class org.fastnate.generator.context.CollectionProperty
-
- createPostInsertStatements(E) - Method in class org.fastnate.generator.context.EmbeddedProperty
-
- createPostInsertStatements(E) - Method in class org.fastnate.generator.context.EntityClass
-
Marks an entity as written and creates any pending update / insert statements.
- createPostInsertStatements(E) - Method in class org.fastnate.generator.context.MapProperty
-
- createPostInsertStatements(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(E) - Method in class org.fastnate.generator.context.EmbeddedProperty
-
- createPreInsertStatements(E) - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
- createPreInsertStatements() - Method in class org.fastnate.generator.context.IdentityValue
-
- createPreInsertStatements() - Method in class org.fastnate.generator.context.IdGenerator
-
- createPreInsertStatements(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).
- createPreInsertStatements() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
- createPreInsertStatements() - Method in class org.fastnate.generator.context.TableIdGenerator
-
- createSql(EntityStatement) - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Creates an SQL statement from the given insert statement.
- createSql(EntityStatement) - Method in class org.fastnate.generator.dialect.MySqlDialect
-
Replace any subselect in an insert statement, if the same table is selected.
- CsvBooleanConverter - Class in org.fastnate.data.csv
-
Converts a string in a CSV file to a
Boolean
.
- CsvBooleanConverter() - Constructor for class org.fastnate.data.csv.CsvBooleanConverter
-
- CsvCharacterConverter - Class in org.fastnate.data.csv
-
Converts a string from a CSV file to a
Character
.
- CsvCharacterConverter() - Constructor for class org.fastnate.data.csv.CsvCharacterConverter
-
- CsvDateConverter - Class in org.fastnate.data.csv
-
Converts a string in a CSV file to a date.
- CsvDateConverter() - Constructor for class org.fastnate.data.csv.CsvDateConverter
-
- CsvEnumConverter - Class in org.fastnate.data.csv
-
Converts a string from a CSV file to an Enum value.
- CsvEnumConverter() - Constructor for class org.fastnate.data.csv.CsvEnumConverter
-
- CsvFormatConverter<T> - Class in org.fastnate.data.csv
-
Converts a string from a CSV file to a Java object using a
Format
.
- CsvFormatConverter(Format...) - Constructor for class org.fastnate.data.csv.CsvFormatConverter
-
- CsvMapConverter<K,T> - Class in org.fastnate.data.csv
-
Converts a string from a CSV file to an object by using an explicit mapping.
- CsvMapConverter() - Constructor for class org.fastnate.data.csv.CsvMapConverter
-
- CsvNumberConverter - Class in org.fastnate.data.csv
-
Converts a string from a CSV file to a number.
- CsvNumberConverter() - Constructor for class org.fastnate.data.csv.CsvNumberConverter
-
- CsvPropertyConverter<T> - Interface in org.fastnate.data.csv
-
Used to convert a CSV string to an Java object.
- GeneratedIdProperty<E> - Class in org.fastnate.generator.context
-
- GeneratedIdProperty(EntityClass<E>, AttributeAccessor, Column) - Constructor for class org.fastnate.generator.context.GeneratedIdProperty
-
- generatePendingStatements(E, Object, Object...) - Method in class org.fastnate.generator.context.CollectionProperty
-
- generatePendingStatements(E, Object, Object...) - Method in class org.fastnate.generator.context.EntityProperty
-
- generatePendingStatements(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.
- generatePendingStatements(E, Object, Object...) - Method in class org.fastnate.generator.context.MapProperty
-
- generatePendingStatements(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.
- GENERATION_ABORTED_MESSAGE - Static variable in class org.fastnate.data.EntityImporter
-
The String in the SQL, if the generation was aborted.
- 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.
- GeneratorContext - Class in org.fastnate.generator.context
-
- GeneratorContext() - Constructor for class org.fastnate.generator.context.GeneratorContext
-
Creates a default generator context.
- GeneratorContext(GeneratorDialect) - Constructor for class org.fastnate.generator.context.GeneratorContext
-
Creates a generator context for a dialect.
- GeneratorContext(Properties) - Constructor for class org.fastnate.generator.context.GeneratorContext
-
- GeneratorDialect - Class in org.fastnate.generator.dialect
-
Handles database specific conversions.
- GeneratorDialect() - Constructor for class org.fastnate.generator.dialect.GeneratorDialect
-
- getAccessStyle() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
Describes how this attribute accesses the values below.
- getActualTypeBinding(Class<? extends I>, Class<I>, int) - Static method in class org.fastnate.data.util.ClassUtil
-
Resolves the actual binding of a generic type that was specified in a superclass and bound in a subclass.
- getAlignmentStatements() - 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.
- getAutoGenerationType() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Resolves the GenerationType used, if GenerationType.AUTO
is set for a GeneratedValue
.
- getColumn() - Method in class org.fastnate.generator.context.SingularProperty
-
The name of the associated column.
- getCurrentValue() - Method in class org.fastnate.generator.context.IdGenerator
-
- getCurrentValue() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
- getCurrentValue() - Method in class org.fastnate.generator.context.TableIdGenerator
-
- getDeclaredAttributes(Class<E>) - Method in enum org.fastnate.generator.context.AccessStyle
-
Finds all attributes of the current access type that are referenced in the given class.
- getDefaultEncoding() - Method in class org.fastnate.data.csv.AbstractCsvReader
-
Defines the default encoding for CSV files, if it can't be determined from the BOM.
- getDefaultGeneratorTable() - Method in class org.fastnate.generator.provider.HibernateProvider
-
- 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 class org.fastnate.generator.provider.HibernateProvider
-
- 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() - Method in class org.fastnate.generator.provider.HibernateProvider
-
- getDefaultGeneratorTablePkColumnValue() - 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 class org.fastnate.generator.provider.HibernateProvider
-
- 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() - Method in class org.fastnate.generator.provider.HibernateProvider
-
- getDefaultSequence() - Method in interface org.fastnate.generator.provider.JpaProvider
-
The name of the default sequence
, if none was specified for a sequence
generator.
- 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(Class<E>) - Method in class org.fastnate.generator.context.GeneratorContext
-
Finds the description for a class.
- getDescription(E) - Method in class org.fastnate.generator.context.GeneratorContext
-
Finds the description for the class of an entity.
- getDialect() - Method in class org.fastnate.generator.context.PrimitiveProperty
-
Resolves the current dialect from the context.
- getElement() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The actual field or method.
- getEntities() - Method in class org.fastnate.data.AbstractDataProvider
-
The list of entities for which INSERT SQL statements will be generated.
- getEntityClass() - Method in class org.fastnate.data.csv.AbstractCsvDataProvider
-
The class of the created entities.
- 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.
- 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(String, String, Number, boolean) - Method in class org.fastnate.generator.context.IdentityValue
-
- getExpression(String, String, Number, boolean) - Method in class org.fastnate.generator.context.IdGenerator
-
Builds the reference to another entity that has the given 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(String, String, Number, boolean) - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
- getExpression(String, String, Number, boolean) - Method in class org.fastnate.generator.context.TableIdGenerator
-
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.AbstractValueConverter
-
- getExpression(Boolean, GeneratorContext) - Method in class org.fastnate.generator.converter.BooleanConverter
-
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.BooleanConverter
-
- getExpression(Calendar, GeneratorContext) - Method in class org.fastnate.generator.converter.CalendarConverter
-
- getExpression(Character, GeneratorContext) - Method in class org.fastnate.generator.converter.CharConverter
-
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.CharConverter
-
- getExpression(Object, GeneratorContext) - Method in class org.fastnate.generator.converter.EntityConverter
-
- getExpression(E, GeneratorContext) - Method in class org.fastnate.generator.converter.EnumConverter
-
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.EnumConverter
-
- getExpression(Object, GeneratorContext) - Method in class org.fastnate.generator.converter.LobConverter
-
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.LobConverter
-
- getExpression(Number, GeneratorContext) - Method in class org.fastnate.generator.converter.NumberConverter
-
- getExpression(Serializable, GeneratorContext) - Method in class org.fastnate.generator.converter.SerializableConverter
-
- getExpression(String, GeneratorContext) - Method in class org.fastnate.generator.converter.StringConverter
-
- getExpression(Date, GeneratorContext) - Method in class org.fastnate.generator.converter.TemporalConverter
-
Converts the given value into an SQL expression.
- getExpression(Object, GeneratorContext) - Method in class org.fastnate.generator.converter.UnsupportedTypeConverter
-
- getExpression(String, GeneratorContext) - Method in interface org.fastnate.generator.converter.ValueConverter
-
Builds the expression for writing the default value into an SQL clause.
- getExpression(T, GeneratorContext) - Method in interface org.fastnate.generator.converter.ValueConverter
-
Builds the expression for writing the given value into an SQL clause.
- getGenerator(GeneratedValue, String, String) - Method in class org.fastnate.generator.context.GeneratorContext
-
Finds the correct generator for the given annotation.
- getGenericType() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The generic type of the accessed attribute.
- getIdColumn() - Method in class org.fastnate.generator.context.PluralProperty
-
The name of the column that contains the ID of the entity that contains this collection.
- getMatchingQuality(Property<?, ?>) - Static method in enum org.fastnate.generator.context.UniquePropertyQuality
-
Finds the best quality that matches the given property.
- getName() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The name of the accessed attribute.
- getName() - Method in class org.fastnate.generator.context.Property
-
The name of this property.
- 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
-
- getOrder() - Method in class org.fastnate.data.AbstractDataProvider
-
The order of a data provider in comparison to others, defaults to 0.
- getOrder() - Method in class org.fastnate.data.csv.AbstractCsvDataProvider
-
Defaults to 0.
- getOrder() - Method in interface org.fastnate.data.DataProvider
-
An additional helper to sort the output by its precedence.
- 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.
- 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.
- getStyle(AccessType) - Static method in enum org.fastnate.generator.context.AccessStyle
-
Determines the correct mapping to the style for the given accesstype.
- getTable() - Method in class org.fastnate.generator.context.PluralProperty
-
The name of the table of this property, if any.
- getType() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
The type of the accessed attribute.
- 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.
- getValueColumn() - Method in class org.fastnate.generator.context.PluralProperty
-
The name of the column that contains the values of the collection.
- IdentityValue - Class in org.fastnate.generator.context
-
Contains the current value for a primary key of type GenerationType.IDENTITY
.
- IdentityValue() - Constructor for class org.fastnate.generator.context.IdentityValue
-
- IdGenerator - Class in org.fastnate.generator.context
-
- IdGenerator() - Constructor for class org.fastnate.generator.context.IdGenerator
-
- importData() - Method in class org.fastnate.data.EntityImporter
-
Imports the data and creates the default SQL file.
- importData(File) - Method in class org.fastnate.data.EntityImporter
-
Imports the data and creates the given SQL file.
- importData(Writer) - Method in class org.fastnate.data.EntityImporter
-
Asks the data providers to generate their entities and writes the SQL afterwards.
- ImportDataMojo - Class in org.fastnate.maven
-
- ImportDataMojo() - Constructor for class org.fastnate.maven.ImportDataMojo
-
- initialize(Properties) - Method in class org.fastnate.generator.provider.HibernateProvider
-
- initialize(Properties) - Method in interface org.fastnate.generator.provider.JpaProvider
-
Initializes this provider from the given settings.
- InsertStatement - Class in org.fastnate.generator.statements
-
Holds the information for an SQL Insert statement.
- InsertStatement(String) - Constructor for class org.fastnate.generator.statements.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.
- isAllowed(Property<?, ?>) - Method in enum org.fastnate.generator.context.UniquePropertyQuality
-
Indicates which type of property is allowed for this quality.
- isDataFile(File) - Method in interface org.fastnate.data.DataChangeDetector
-
Indicates that the given file contains relevant data for the SQL generation.
- isDataFile(File) - Method in class org.fastnate.maven.test.TestDetector
-
- isEmbedded() - Method in class org.fastnate.generator.context.PluralProperty
-
Indicates that this propery is a ElementCollection
that references Embeddable
s.
- isEmptyStringEqualToNull() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that the empty string is equal to null
in this database.
- isEmptyStringEqualToNull() - Method in class org.fastnate.generator.dialect.OracleDialect
-
- 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
-
- isJoinedDiscriminatorNeeded() - Method in class org.fastnate.generator.provider.HibernateProvider
-
- isJoinedDiscriminatorNeeded() - Method in interface org.fastnate.generator.provider.JpaProvider
-
Indicates if the current JPA provider needs always a discriminator column for a JOINED table.
- 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.
- isNextSequenceValueInInsertSupported() - Method in class org.fastnate.generator.dialect.MySqlDialect
-
- isPersistent() - Method in interface org.fastnate.generator.context.AttributeAccessor
-
Indicates that this attribute is written to the database.
- isPostIncrement() - Method in class org.fastnate.generator.context.IdentityValue
-
- isPostIncrement() - Method in class org.fastnate.generator.context.IdGenerator
-
- isPostIncrement() - Method in class org.fastnate.generator.context.SequenceIdGenerator
-
- isPostIncrement() - Method in class org.fastnate.generator.context.TableIdGenerator
-
- 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.
- isRequired() - Method in class org.fastnate.generator.context.EmbeddedProperty
-
- isRequired() - Method in class org.fastnate.generator.context.PluralProperty
-
- 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).
- isSequenceInWhereSupported() - Method in class org.fastnate.generator.dialect.GeneratorDialect
-
Indicates that references to sequences in WHERE
expressions 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.
- isSequenceSupported() - Method in class org.fastnate.generator.dialect.MySqlDialect
-
- 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
-
- main(String[]) - Static method in class org.fastnate.data.EntityImporter
-
Starts the entity importer from the command line.
- MapProperty<E,K,T> - Class in org.fastnate.generator.context
-
- MapProperty(EntityClass<?>, AttributeAccessor, AssociationOverride) - 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, long) - Method in class org.fastnate.generator.context.GeneratedIdProperty
-
Marks an entity as reference, where we know the id in the database.
- MavenTestCsvData - Class in org.fastnate.maven.test
-
Test class for importing CSV files using the maven plugin.
- MavenTestCsvData(File) - Constructor for class org.fastnate.maven.test.MavenTestCsvData
-
- MavenTestData - Class in org.fastnate.maven.test
-
Data provider for the maven test.
- MavenTestData() - Constructor for class org.fastnate.maven.test.MavenTestData
-
- MavenTestEntity - Class in org.fastnate.maven.test
-
Entity for the maven test.
- MavenTestEntity(String) - Constructor for class org.fastnate.maven.test.MavenTestEntity
-
- ModelException - Exception in org.fastnate.generator.context
-
Thrown if the classes in the entity model are for some reason invalid.
- ModelException(String) - Constructor for exception org.fastnate.generator.context.ModelException
-
- ModelException(String, Throwable) - Constructor for exception org.fastnate.generator.context.ModelException
-
- MsSqlDialect - Class in org.fastnate.generator.dialect
-
Handles MS SQL specific conversions.
- MsSqlDialect() - Constructor for class org.fastnate.generator.dialect.MsSqlDialect
-
- MySqlDialect - Class in org.fastnate.generator.dialect
-
Handles MySQL specific conversions.
- MySqlDialect() - Constructor for class org.fastnate.generator.dialect.MySqlDialect
-
- PACKAGES_KEY - Static variable in class org.fastnate.data.EntityImporter
-
Settings key for the packages to scan.
- 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.
- Person - Class in org.fastnate.examples.model
-
A simple example of an entity for instances that are created with Java code.
- Person(String, String) - Constructor for class org.fastnate.examples.model.Person
-
Creates a new person with his / her first and last name.
- PersonData - Class in org.fastnate.examples.data
-
Generates some example data for a
Person
.
- PersonData() - Constructor for class org.fastnate.examples.data.PersonData
-
- PlainStatement - Class in org.fastnate.generator.statements
-
A single (unparsed) SQL statement.
- PlainStatement() - Constructor for class org.fastnate.generator.statements.PlainStatement
-
- PluralProperty<E,C,T> - Class in org.fastnate.generator.context
-
- PluralProperty(GeneratorContext, AttributeAccessor) - Constructor for class org.fastnate.generator.context.PluralProperty
-
Creates a new property.
- POSTFIX_KEY - Static variable in class org.fastnate.data.EntityImporter
-
Settings key for a part to write into the output file after the generated content.
- PostgresDialect - Class in org.fastnate.generator.dialect
-
Handles PostgreSQL specific conversions.
- PostgresDialect() - Constructor for class org.fastnate.generator.dialect.PostgresDialect
-
- 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
-
- PREFIX_KEY - Static variable in class org.fastnate.data.EntityImporter
-
Settings key for a part to write into the output file before the generated content.
- PrimitiveProperty<E,T> - Class in org.fastnate.generator.context
-
Describes a singular primitive property of an
EntityClass
.
- PrimitiveProperty(GeneratorContext, String, AttributeAccessor, Column) - 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.