| Package | Description |
|---|---|
| org.fastnate.generator | |
| org.fastnate.generator.context | |
| org.fastnate.generator.converter | |
| org.fastnate.generator.statements |
| 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 | 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.
|
| Constructor and Description |
|---|
AnyMapping(GeneratorContext context,
AttributeAccessor attribute,
GeneratorTable containerTabble,
javax.persistence.Column typeColumn,
String metaDefName)
Creates a new instance of
AnyMapping. |
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 |
TemporalConverter.getExpression(Date value,
GeneratorContext context)
Converts the given value into an SQL expression.
|
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 |
BooleanConverter.getExpression(String defaultValue,
GeneratorContext context) |
ColumnExpression |
CharConverter.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)
Use database independent default values.
|
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 |
ValueConverter.getExpression(T value,
GeneratorContext context)
Builds the expression for writing the given value into an SQL clause.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
StatementsWriter.truncateTables(GeneratorContext context)
Truncates all discovered tables before any data is written to that tables.
|
| Constructor and Description |
|---|
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.
|
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 © 2020 fastnate.org. All rights reserved.