Package | Description |
---|---|
org.fastnate.generator.context | |
org.fastnate.generator.dialect | |
org.fastnate.generator.statements |
Modifier and Type | Field and Description |
---|---|
private GeneratorColumn |
AnyMapping.column
The name of the column that contains the id of the entity class, if
Any is used. |
private GeneratorColumn |
EntityProperty.column
The name of the join column.
|
private GeneratorColumn |
IdentityValue.column |
private GeneratorColumn |
PrimitiveProperty.column
The column name in the table.
|
private GeneratorColumn |
EntityClass.discriminatorColumn
The column for
EntityClass.discriminator . |
private GeneratorColumn |
PluralProperty.idColumn
The column that contains the id of the entity.
|
private GeneratorColumn |
MapProperty.keyColumn
The name of the column that contains the key.
|
private GeneratorColumn |
CollectionProperty.orderColumn
The name of the column that saves the order of the entries in the collection.
|
private GeneratorColumn |
TableIdGenerator.pkColumn |
private GeneratorColumn |
EntityClass.primaryKeyJoinColumn
The column that contains the id of this entity if
EntityClass.joinedParentClass is not null . |
private GeneratorColumn |
PluralProperty.valueColumn
The column that contains the value (or the id of the value).
|
private GeneratorColumn |
TableIdGenerator.valueColumn |
Modifier and Type | Field and Description |
---|---|
private Map<String,GeneratorColumn> |
GeneratorTable.columns
The known columns for this table.
|
Modifier and Type | Method and Description |
---|---|
private static GeneratorColumn |
MapProperty.buildKeyColumn(GeneratorTable table,
javax.persistence.MapKeyColumn keyColumn,
String defaultKeyColumn) |
private static GeneratorColumn |
MapProperty.buildKeyColumn(GeneratorTable table,
javax.persistence.MapKeyJoinColumn keyColumn,
String defaultKeyColumn) |
private static GeneratorColumn |
PluralProperty.buildValueColumn(GeneratorTable table,
javax.persistence.AssociationOverride asscoiationOverride,
javax.persistence.AttributeOverride attributeOverride,
AttributeAccessor attribute,
String defaultColumnName)
Builds the column that contains the value for the collection / map.
|
GeneratorColumn |
EntityProperty.getColumn()
The name of the join column.
|
GeneratorColumn |
PrimitiveProperty.getColumn()
The column name in the table.
|
abstract GeneratorColumn |
SingularProperty.getColumn()
The associated column.
|
GeneratorColumn |
EntityClass.getDiscriminatorColumn()
The column for
EntityClass.discriminator . |
GeneratorColumn |
PluralProperty.getIdColumn()
The column that contains the id of the entity.
|
(package private) GeneratorColumn |
EntityClass.getIdColumn(AttributeAccessor attribute)
Resolves the column for the
id property of this entity class. |
protected GeneratorColumn |
CollectionProperty.getKeyColumn() |
GeneratorColumn |
MapProperty.getKeyColumn()
The name of the column that contains the key.
|
protected abstract GeneratorColumn |
PluralProperty.getKeyColumn()
An optional column that contains the index / key of the values.
|
GeneratorColumn |
CollectionProperty.getOrderColumn()
The name of the column that saves the order of the entries in the collection.
|
GeneratorColumn |
TableIdGenerator.getPkColumn() |
GeneratorColumn |
EntityClass.getPrimaryKeyJoinColumn()
The column that contains the id of this entity if
EntityClass.joinedParentClass is not null . |
GeneratorColumn |
PluralProperty.getValueColumn()
The column that contains the value (or the id of the value).
|
GeneratorColumn |
TableIdGenerator.getValueColumn() |
GeneratorColumn |
GeneratorTable.resolveColumn(String columnName)
Adds or finds a column which is part of an insert statement to this statement.
|
GeneratorColumn |
GeneratorTable.resolveColumn(String columnName,
boolean autoGenerated)
Adds or finds a column which is part of this table.
|
Modifier and Type | Method and Description |
---|---|
Map<String,GeneratorColumn> |
GeneratorTable.getColumns()
The known columns for this table.
|
Modifier and Type | Method and Description |
---|---|
void |
IdentityValue.addNextValue(TableStatement statement,
GeneratorColumn tableColumn,
Number value) |
abstract void |
IdGenerator.addNextValue(TableStatement statement,
GeneratorColumn column,
Number nextValue)
Adds the generated value to the given statement.
|
void |
SequenceIdGenerator.addNextValue(TableStatement statement,
GeneratorColumn column,
Number value) |
void |
TableIdGenerator.addNextValue(TableStatement statement,
GeneratorColumn column,
Number value) |
void |
ContextModelListener.foundColumn(GeneratorColumn column)
Called when a new table column was discovered.
|
void |
DefaultContextModelListener.foundColumn(GeneratorColumn column) |
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) |
IdGenerator |
GeneratorContext.getGenerator(javax.persistence.GeneratedValue generatedValue,
GeneratorTable table,
GeneratorColumn column)
Finds the correct generator for the given annotation.
|
Constructor and Description |
---|
IdentityValue(GeneratorContext context,
GeneratorTable table,
GeneratorColumn column) |
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 |
---|---|
void |
GeneratorDialect.adjustNextIdentityValue(StatementsWriter writer,
GeneratorTable table,
GeneratorColumn column,
long nextValue)
Adjusts the next value of the given identity column to ensure that it is bigger than the last generated value.
|
void |
PostgresDialect.adjustNextIdentityValue(StatementsWriter writer,
GeneratorTable table,
GeneratorColumn columnName,
long nextValue) |
Modifier and Type | Field and Description |
---|---|
private GeneratorColumn |
AbstractStatementsWriter.UpdateStatement.idColumn |
Modifier and Type | Field and Description |
---|---|
private Map<GeneratorColumn,ColumnExpression> |
AbstractStatementsWriter.AbstractTableStatement.values
The columns and their values.
|
Modifier and Type | Method and Description |
---|---|
GeneratorColumn |
AbstractStatementsWriter.UpdateStatement.getIdColumn() |
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 |
ConnectedStatementsWriter.ContextListener.foundColumn(GeneratorColumn column) |
void |
PostgreSqlBulkWriter.ContextListener.foundColumn(GeneratorColumn column) |
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.
|
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.