Package | Description |
---|---|
org.fastnate.generator | |
org.fastnate.generator.context | |
org.fastnate.generator.converter | |
org.fastnate.generator.statements |
Modifier and Type | Field and Description |
---|---|
private GeneratorContext |
EntitySqlGenerator.context
Used to keep the state of indices and to store any configuration.
|
Modifier and Type | Method and Description |
---|---|
GeneratorContext |
EntitySqlGenerator.getContext()
Used to keep the state of indices and to store any configuration.
|
Constructor and Description |
---|
EntitySqlGenerator(GeneratorContext context,
Connection connection)
Creates a new instance for a database connection.
|
EntitySqlGenerator(GeneratorContext context,
StatementsWriter writer) |
EntitySqlGenerator(GeneratorContext context,
Writer writer)
Creates a new instance for a output writer.
|
Modifier and Type | Field and Description |
---|---|
private GeneratorContext |
EntityClass.context
The current context.
|
private GeneratorContext |
EntityProperty.context
The current context.
|
private GeneratorContext |
GeneratorTable.context
The current generator context.
|
private GeneratorContext |
IdentityValue.context |
private GeneratorContext |
PluralProperty.context
The current context.
|
private GeneratorContext |
PrimitiveProperty.context
The current context.
|
Modifier and Type | Method and Description |
---|---|
GeneratorContext |
EntityClass.getContext()
The current context.
|
GeneratorContext |
EntityProperty.getContext()
The current context.
|
GeneratorContext |
GeneratorTable.getContext()
The current generator context.
|
GeneratorContext |
PluralProperty.getContext()
The current context.
|
GeneratorContext |
PrimitiveProperty.getContext()
The current context.
|
Modifier and Type | Method and Description |
---|---|
(package private) <T> AnyMapping<T> |
EntityProperty.MappingInformation.buildAnyMapping(GeneratorContext context,
GeneratorTable containerTable) |
(package private) <T> AnyMapping<T> |
PluralProperty.EntityMappingInformation.buildAnyMapping(GeneratorContext context,
GeneratorTable containerTable) |
private void |
AnyMapping.fillMetaDefs(AttributeAccessor attribute,
javax.persistence.Column typeColumn,
String metaDefName,
GeneratorContext context) |
private static GeneratorTable |
PluralProperty.resolveTable(GeneratorContext context,
javax.persistence.AssociationOverride override,
javax.persistence.JoinTable joinTable,
javax.persistence.CollectionTable collectionTable,
GeneratorTable sourceEntityTable,
String targetEntityTable) |
Constructor and Description |
---|
AnyMapping(GeneratorContext context,
AttributeAccessor attribute,
GeneratorTable containerTabble,
javax.persistence.Column typeColumn,
String metaDefName)
Creates a new instance of
AnyMapping . |
EntityClass(GeneratorContext context,
Class<E> entityClass)
Creates a new description of an entity class.
|
EntityProperty(GeneratorContext context,
GeneratorTable containerTable,
AttributeAccessor attribute,
javax.persistence.AssociationOverride override)
Creates a new instance of
EntityProperty . |
GeneratorTable(int index,
String catalog,
String schema,
String name,
String qualifiedName,
GeneratorContext context) |
IdentityValue(GeneratorContext context,
GeneratorTable table,
GeneratorColumn column) |
PrimitiveProperty(GeneratorContext context,
GeneratorTable table,
AttributeAccessor attribute,
javax.persistence.Column columnMetadata)
Instantiates a new primitive property.
|
PrimitiveProperty(GeneratorContext context,
GeneratorTable table,
AttributeAccessor attribute,
javax.persistence.Column columnMetadata,
boolean autogenerated)
Instantiates a new primitive property.
|
TableIdGenerator(javax.persistence.TableGenerator generator,
GeneratorContext context)
Creates a new instance of
SequenceIdGenerator . |
VersionProperty(GeneratorContext context,
GeneratorTable table,
AttributeAccessor attribute,
javax.persistence.Column column)
Creates a new instance of
VersionProperty . |
Modifier and Type | Method and Description |
---|---|
static ColumnExpression |
EntityConverter.getEntityReference(Object entity,
String mappedId,
GeneratorContext context,
boolean whereExpression)
Creates an expression for an entity.
|
ColumnExpression |
BooleanConverter.getExpression(Boolean value,
GeneratorContext context) |
ColumnExpression |
CalendarConverter.getExpression(Calendar value,
GeneratorContext context) |
ColumnExpression |
CharConverter.getExpression(Character value,
GeneratorContext context) |
ColumnExpression |
AbstractDateConverter.getExpression(Date value,
GeneratorContext context)
Converts the given value into an SQL expression.
|
ColumnExpression |
DurationConverter.getExpression(Duration value,
GeneratorContext context) |
ColumnExpression |
EnumConverter.getExpression(E value,
GeneratorContext context) |
ColumnExpression |
NumberConverter.getExpression(Number value,
GeneratorContext context) |
ColumnExpression |
EntityConverter.getExpression(Object value,
GeneratorContext context) |
ColumnExpression |
LobConverter.getExpression(Object value,
GeneratorContext context) |
ColumnExpression |
UnsupportedTypeConverter.getExpression(Object value,
GeneratorContext context) |
ColumnExpression |
SerializableConverter.getExpression(Serializable value,
GeneratorContext context) |
ColumnExpression |
AbstractDateConverter.getExpression(String defaultValue,
GeneratorContext context)
Use database independent default values.
|
ColumnExpression |
BooleanConverter.getExpression(String defaultValue,
GeneratorContext context) |
ColumnExpression |
CharConverter.getExpression(String defaultValue,
GeneratorContext context) |
ColumnExpression |
DurationConverter.getExpression(String defaultValue,
GeneratorContext context) |
ColumnExpression |
EnumConverter.getExpression(String defaultValue,
GeneratorContext context) |
ColumnExpression |
LobConverter.getExpression(String defaultValue,
GeneratorContext context) |
ColumnExpression |
NumberConverter.getExpression(String defaultValue,
GeneratorContext context) |
ColumnExpression |
StringConverter.getExpression(String value,
GeneratorContext context) |
ColumnExpression |
TemporalConverter.getExpression(String defaultValue,
GeneratorContext context) |
default ColumnExpression |
ValueConverter.getExpression(String defaultValue,
GeneratorContext context)
Builds the expression for writing the default value into an SQL clause.
|
ColumnExpression |
CustomValueConverter.getExpression(T value,
GeneratorContext context) |
ColumnExpression |
TemporalConverter.getExpression(T value,
GeneratorContext context) |
ColumnExpression |
ValueConverter.getExpression(T value,
GeneratorContext context)
Builds the expression for writing the given value into an SQL clause.
|
Modifier and Type | Field and Description |
---|---|
private GeneratorContext |
ConnectedStatementsWriter.context
The generator context that is attached to this writer.
|
private GeneratorContext |
ConnectedStatementsWriter.ContextListener.context |
private GeneratorContext |
PostgreSqlBulkWriter.context
The current generation context.
|
Modifier and Type | Method and Description |
---|---|
private static Connection |
ConnectedStatementsWriter.buildConnection(GeneratorContext context) |
default void |
StatementsWriter.truncateTables(GeneratorContext context)
Truncates all discovered tables before any data is written to that tables.
|
Constructor and Description |
---|
ConnectedStatementsWriter(Connection connection,
boolean closeConnection,
GeneratorContext context) |
ConnectedStatementsWriter(Connection connection,
GeneratorContext context)
Creates a new StatementsWriter that writes to a database connection.
|
ConnectedStatementsWriter(GeneratorContext context)
Creates a new StatementsWriter that writes to a database connection.
|
ContextListener(GeneratorContext context,
Statement plainStatement,
List<ConnectedStatementsWriter.PreparedInsertStatement> preparedStatements,
Map<GeneratorTable,List<ConnectedStatementsWriter.PreparedInsertStatement>> availablePreparedStatements) |
FileStatementsWriter(GeneratorContext context)
Creates a new instance of
FileStatementsWriter . |
LiquibaseStatementsWriter(GeneratorContext context)
Creates a new writer which generates an XML file with "UTF-8" encoding.
|
PostgreSqlBulkWriter(GeneratorContext context)
Creates a new instance for a SQL file with UTF-8 encoding.
|
PostgreSqlBulkWriter(GeneratorContext context,
File sqlFile)
Creates a new instance for a SQL file with UTF-8 encoding.
|
PostgreSqlBulkWriter(GeneratorContext context,
File sqlFile,
Charset encoding)
Creates a new instance for a SQL file.
|
PostgreSqlBulkWriter(GeneratorContext context,
File directory,
Writer writer,
Charset encoding)
Creates a new instance of
PostgreSqlBulkWriter . |
Copyright © 2022 fastnate.org. All rights reserved.