| Modifier and Type | Field and Description |
|---|---|
| private final EntityMappingType | |
| private final String | |
| private final BasicType | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| declaringType | back to summary |
|---|---|
| private final EntityMappingType declaringType | |
| rowIdName | back to summary |
|---|---|
| private final String rowIdName | |
| rowIdType | back to summary |
|---|---|
| private final BasicType<Object> rowIdType | |
| tableExpression | back to summary |
|---|---|
| private final String tableExpression | |
| EntityRowIdMappingImpl | back to summary |
|---|---|
| public EntityRowIdMappingImpl(String rowIdName, String tableExpression, EntityMappingType declaringType) | |
| addToCacheKey | back to summary |
|---|---|
| public void addToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session) Implements org. Doc from org. Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.
| |
| applySqlSelections | back to summary |
|---|---|
| public void applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState) Implements org. Doc from org. Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.
| |
| applySqlSelections | back to summary |
|---|---|
| public void applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection, JdbcMapping> selectionConsumer) Implements org. Doc from org. Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.
| |
| breakDownJdbcValues | back to summary |
|---|---|
| public <X, Y> int breakDownJdbcValues(Object domainValue, int offset, X x, Y y, ModelPart. Implements org. Doc from org. Breaks down the domain value to its constituent JDBC values.
Think of it as breaking the multi-dimensional array into a visitable flat array.
Additionally, it passes through the values
| |
| createDomainResult | back to summary |
|---|---|
| public <T> DomainResult Implements org. Doc from org. Create a DomainResult for a specific reference to this ModelPart.
| |
| disassemble | back to summary |
|---|---|
| public Object disassemble(Object value, SharedSessionContractImplementor session) Implements org. Doc from org. Breaks down a value of
Generally speaking, this is the form in which entity state is kept relative to a
Session via
@Entity class Person {
@Id Integer id;
@Embedded Name name;
int age;
}
@Embeddable class Name {
String familiarName;
String familyName;
}
At the top level, we would want to disassemble a
Person( id=1, name=Name( 'Steve', 'Ebersole' ), 28 ) this disassemble would result in a multidimensional array:
[ ["Steve", "Ebersole"], 28 ] Note that the identifier is not part of this disassembled state. Note also how the embedded value results in a sub-array.
| |
| findContainingEntityMapping | back to summary |
|---|---|
| public EntityMappingType findContainingEntityMapping() Implements org.
| |
| forEachDisassembledJdbcValue | back to summary |
|---|---|
| public <X, Y> int forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable. Implements org. Doc from org. Like
| |
| forEachJdbcType | back to summary |
|---|---|
| public int forEachJdbcType(int offset, IndexedConsumer<JdbcMapping> action) Implements org. Doc from org. Visit each JdbcMapping starting from the given offset
| |
| getColumnDefinition | back to summary |
|---|---|
| public String getColumnDefinition() Implements org.
| |
| getContainingTableExpression | back to summary |
|---|---|
| public String getContainingTableExpression() Implements org. Doc from org. The name of the table to which this selectable is mapped
| |
| getCustomReadExpression | back to summary |
|---|---|
| public String getCustomReadExpression() Implements org. Doc from org. The selection's read expression accounting for formula treatment as well
as
| |
| getCustomWriteExpression | back to summary |
|---|---|
| public String getCustomWriteExpression() Implements org. Doc from org. The selection's write expression accounting
| |
| getJavaType | back to summary |
|---|---|
| public JavaType Implements org. Doc from org. The Java type for this part. Generally equivalent to
| |
| getJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getJdbcMapping(int index) Implements org.
| |
| getJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getJdbcMapping() Implements org.
| |
| getJdbcTypeCount | back to summary |
|---|---|
| public int getJdbcTypeCount() Overrides default org. Doc from org. The number of JDBC mappings
| |
| getLength | back to summary |
|---|---|
| public Long getLength() Implements org.
| |
| getNavigableRole | back to summary |
|---|---|
| public NavigableRole getNavigableRole() Implements org.
| |
| getPartMappingType | back to summary |
|---|---|
| public MappingType getPartMappingType() Implements org. Doc from org. The type for this part.
| |
| getPartName | back to summary |
|---|---|
| public String getPartName() Implements org. Doc from org. The local part name, which is generally the unqualified role name
| |
| getPrecision | back to summary |
|---|---|
| public Integer getPrecision() Implements org.
| |
| getRowIdName | back to summary |
|---|---|
| public String getRowIdName() Implements org.
| |
| getScale | back to summary |
|---|---|
| public Integer getScale() Implements org.
| |
| getSelectionExpression | back to summary |
|---|---|
| public String getSelectionExpression() Implements org. Doc from org. The selection's expression. This is the column name or formula
| |
| getSingleJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getSingleJdbcMapping() Overrides default org.
| |
| hasPartitionedSelectionMapping | back to summary |
|---|---|
| public boolean hasPartitionedSelectionMapping() Implements org.
| |
| isFormula | back to summary |
|---|---|
| public boolean isFormula() Implements org. Doc from org. Is the mapping a formula instead of a physical column?
| |
| isInsertable | back to summary |
|---|---|
| public boolean isInsertable() Implements org.
| |
| isNullable | back to summary |
|---|---|
| public boolean isNullable() Implements org. Doc from org. Is the mapping considered nullable?
| |
| isPartitioned | back to summary |
|---|---|
| public boolean isPartitioned() Implements org.
| |
| isUpdateable | back to summary |
|---|---|
| public boolean isUpdateable() Implements org.
| |