Package | Description |
---|---|
org.fastnate.generator | |
org.fastnate.generator.context | |
org.fastnate.generator.converter | |
org.fastnate.generator.statements |
Modifier and Type | Method and Description |
---|---|
private <E> void |
EntitySqlGenerator.writeInserts(E entity,
List<Object> postponedEntities,
EntityClass<E> classDescription,
ColumnExpression discriminator) |
Modifier and Type | Field and Description |
---|---|
private ColumnExpression |
EntityClass.discriminator
The SQL expression that is used for the disciminator column of this class.
|
private ColumnExpression |
TableIdGenerator.pkColumnValue |
Modifier and Type | Field and Description |
---|---|
private Map<Class<?>,ColumnExpression> |
AnyMapping.anyClasses
Contains the mapping from a class to its id in the database.
|
Modifier and Type | Method and Description |
---|---|
private ColumnExpression |
EntityClass.buildDiscriminator(EntityClass<?> c,
javax.persistence.DiscriminatorColumn column) |
protected ColumnExpression |
PluralProperty.createValueExpression(E entity,
ColumnExpression sourceId,
T value,
ColumnExpression key)
Creates a SQL expression for a value of the collection, as long as it is not embedded.
|
private ColumnExpression |
AnyMapping.findDesc(T entity) |
ColumnExpression |
EntityClass.getDiscriminator()
The SQL expression that is used for the disciminator column of this class.
|
ColumnExpression |
EntityClass.getEntityReference(E entity,
String idField,
boolean whereExpression)
Creates an expression that references the id of an entity of this class.
|
ColumnExpression |
EntityProperty.getExpression(E entity,
boolean whereExpression) |
ColumnExpression |
GeneratedIdProperty.getExpression(E entity,
boolean whereExpression)
Creates the reference of an entity in SQL using its (relative or absolute) id.
|
ColumnExpression |
PrimitiveProperty.getExpression(E entity,
boolean whereExpression) |
ColumnExpression |
Property.getExpression(E entity,
boolean whereExpression)
Creates the expression for the current value of the given entity in SQL.
|
ColumnExpression |
IdentityValue.getExpression(GeneratorTable entityTable,
GeneratorColumn targetColumn,
Number targetId,
boolean whereExpression) |
abstract ColumnExpression |
IdGenerator.getExpression(GeneratorTable table,
GeneratorColumn column,
Number id,
boolean whereExpression)
Builds the reference to another entity that has the given ID.
|
ColumnExpression |
SequenceIdGenerator.getExpression(GeneratorTable entityTable,
GeneratorColumn column,
Number targetId,
boolean whereExpression) |
ColumnExpression |
TableIdGenerator.getExpression(GeneratorTable table,
GeneratorColumn column,
Number targetId,
boolean whereExpression) |
private ColumnExpression |
EntityClass.getGeneratedIdReference(E entity,
boolean whereExpression) |
ColumnExpression |
TableIdGenerator.getPkColumnValue() |
Modifier and Type | Method and Description |
---|---|
protected void |
PluralProperty.createDirectValueStatement(StatementsWriter writer,
E entity,
ColumnExpression sourceId,
ColumnExpression key,
T value)
Creates the statements for a (not embeddable) value from the collection.
|
private void |
PluralProperty.createEmbeddedValueStatement(StatementsWriter writer,
E entity,
ColumnExpression sourceId,
ColumnExpression key,
T value)
Writes all embedded properties of a value of a collection table.
|
protected ColumnExpression |
PluralProperty.createValueExpression(E entity,
ColumnExpression sourceId,
T value,
ColumnExpression key)
Creates a SQL expression for a value of the collection, as long as it is not embedded.
|
protected void |
PluralProperty.createValueStatement(StatementsWriter writer,
E entity,
ColumnExpression sourceId,
ColumnExpression key,
T value)
Adds a value statement to the list of collection statements.
|
Constructor and Description |
---|
TableIdGenerator(GeneratorDialect dialect,
boolean relativeIds,
GeneratorTable generatorTable,
GeneratorColumn pkColumn,
ColumnExpression pkColumnValue,
GeneratorColumn valueColumn,
int allocationSize,
long initialValue,
long nextValue,
long maxAllocatedValue) |
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 | Class and Description |
---|---|
class |
CurrentSequenceValueExpression
A
ColumnExpression which references an ID using the
current value of a sequence . |
class |
NextSequenceValueExpression
A
ColumnExpression which builds the next value of
a sequence . |
class |
PlainColumnExpression
An SQL expression, which is printed to SQL "as is".
|
class |
PrimitiveColumnExpression<T>
A
ColumnExpression which contains a primitive value. |
class |
SequenceValueExpression
Base class for
ColumnExpression s which reference an ID by using the value of a sequence. |
Modifier and Type | Field and Description |
---|---|
private ColumnExpression |
AbstractStatementsWriter.UpdateStatement.idValue |
Modifier and Type | Field and Description |
---|---|
private Map<GeneratorColumn,ColumnExpression> |
AbstractStatementsWriter.AbstractTableStatement.values
The columns and their values.
|
Modifier and Type | Method and Description |
---|---|
ColumnExpression |
AbstractStatementsWriter.UpdateStatement.getIdValue() |
Modifier and Type | Method and Description |
---|---|
Map<GeneratorColumn,ColumnExpression> |
AbstractStatementsWriter.AbstractTableStatement.getValues()
The columns and their values.
|
Modifier and Type | Method and Description |
---|---|
TableStatement |
AbstractStatementsWriter.createUpdateStatement(GeneratorDialect dialect,
GeneratorTable table,
GeneratorColumn idColumn,
ColumnExpression idValue) |
TableStatement |
StatementsWriter.createUpdateStatement(GeneratorDialect dialect,
GeneratorTable table,
GeneratorColumn idColumn,
ColumnExpression idValue)
Creates a container for a dedicated "update table" statement.
|
void |
AbstractStatementsWriter.AbstractTableStatement.setColumnValue(GeneratorColumn column,
ColumnExpression value)
Sets the value for a specific column.
|
void |
ConnectedStatementsWriter.PreparedInsertStatement.setColumnValue(GeneratorColumn column,
ColumnExpression expression) |
void |
TableStatement.setColumnValue(GeneratorColumn column,
ColumnExpression value)
Sets a plain expression for a specific column.
|
private void |
LiquibaseStatementsWriter.writeColumnExpression(ColumnExpression expression) |
private void |
LiquibaseStatementsWriter.writeDateExpression(ColumnExpression expression,
Date value,
Date databaseValue) |
private void |
LiquibaseStatementsWriter.writeRelativeDateExpression(ColumnExpression expression,
Date value) |
private void |
LiquibaseStatementsWriter.writeString(ColumnExpression expression,
String value) |
Constructor and Description |
---|
UpdateStatement(GeneratorDialect dialect,
GeneratorTable table,
GeneratorColumn idColumn,
ColumnExpression idValue)
Creates a new instance of UpdateStatement.
|
Copyright © 2022 fastnate.org. All rights reserved.