jakarta.persistence.Id
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final EntityPersister | |
| private final NavigableRole | |
| private final BasicType | |
| private final boolean | |
| private final Long | |
| private final String | |
| private final Integer | |
| private final PropertyAccess | |
| private final String | |
| private final Integer | |
| private final SessionFactoryImplementor | sessionFactory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private final IdentifierValue | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | BasicEntityIdentifierMappingImpl(EntityPersister entityPersister, Supplier<?> instanceCreator, String attributeName, String rootTable, String pkColumnName, String columnDefinition, Long length, Integer precision, Integer scale, boolean insertable, boolean updateable, BasicType<?> idType, MappingModelCreationProcess creationProcess)
|
| attributeName | back to summary |
|---|---|
| private final String attributeName | |
| columnDefinition | back to summary |
|---|---|
| private final String columnDefinition | |
| entityPersister | back to summary |
|---|---|
| private final EntityPersister entityPersister | |
| idRole | back to summary |
|---|---|
| private final NavigableRole idRole | |
| idType | back to summary |
|---|---|
| private final BasicType<Object> idType | |
| insertable | back to summary |
|---|---|
| private final boolean insertable | |
| length | back to summary |
|---|---|
| private final Long length | |
| pkColumnName | back to summary |
|---|---|
| private final String pkColumnName | |
| precision | back to summary |
|---|---|
| private final Integer precision | |
| propertyAccess | back to summary |
|---|---|
| private final PropertyAccess propertyAccess | |
| rootTable | back to summary |
|---|---|
| private final String rootTable | |
| scale | back to summary |
|---|---|
| private final Integer scale | |
| sessionFactory | back to summary |
|---|---|
| private final SessionFactoryImplementor sessionFactory
Deprecated as a consequence of | |
| unsavedStrategy | back to summary |
|---|---|
| private final IdentifierValue unsavedStrategy | |
| updateable | back to summary |
|---|---|
| private final boolean updateable | |
| BasicEntityIdentifierMappingImpl | back to summary |
|---|---|
| public BasicEntityIdentifierMappingImpl(EntityPersister entityPersister, Supplier<?> instanceCreator, String attributeName, String rootTable, String pkColumnName, String columnDefinition, Long length, Integer precision, Integer scale, boolean insertable, boolean updateable, BasicType<?> idType, MappingModelCreationProcess creationProcess) | |
| addToCacheKey | back to summary |
|---|---|
| public void addToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session) Overrides default org. 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) Overrides default org. 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() Overrides default org. 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
| |
| forEachSelectable | back to summary |
|---|---|
| public int forEachSelectable(int offset, SelectableConsumer consumer) Overrides default org. Doc from org. Visits each selectable mapping with the selectable index offset by the given value. Returns the amount of jdbc types that have been visited.
| |
| generateFetch | back to summary |
|---|---|
| public Fetch generateFetch(FetchParent fetchParent, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState) Implements org. Doc from org. Generates a Fetch of this fetchable
| |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() Implements org. Doc from org. The name of the attribute defining the id, if one
| |
| getColumnDefinition | back to summary |
|---|---|
| public String getColumnDefinition() Implements org.
| |
| getContainingTableExpression | back to summary |
|---|---|
| public String getContainingTableExpression() Implements org. Doc from org. The table which contains the columns mapped by this value
| |
| 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
| |
| getFetchableName | back to summary |
|---|---|
| public String getFetchableName() Implements org. Doc from org. The name of the fetchable. This is the part's "local name".
| |
| getIdentifier | back to summary |
|---|---|
| public Object getIdentifier(Object entity) Implements org. Doc from org. Extract the identifier from an instance of the entity
| |
| 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() Implements org. Doc from org. Anything that is expressible at the SQL AST level would be of basic type.
| |
| getLength | back to summary |
|---|---|
| public Long getLength() Implements org.
| |
| getMappedFetchOptions | back to summary |
|---|---|
| public FetchOptions getMappedFetchOptions() Implements org. Doc from org. The configured fetch timing and style
| |
| getMappedType | back to summary |
|---|---|
| public MappingType getMappedType() Implements org. Doc from org. Descriptor for the type of this mapping
| |
| getNature | back to summary |
|---|---|
| public EntityIdentifierMapping. Implements org.
| |
| getNavigableRole | back to summary |
|---|---|
| public NavigableRole getNavigableRole() Implements org.
| |
| getPartMappingType | back to summary |
|---|---|
| public MappingType getPartMappingType() Overrides default org. Implements org. Doc from org. The type for this part.
| |
| getPrecision | back to summary |
|---|---|
| public Integer getPrecision() Implements org.
| |
| getPropertyAccess | back to summary |
|---|---|
| public PropertyAccess getPropertyAccess() Implements org. Doc from org. Access to the identifier attribute's PropertyAccess
| |
| 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
| |
| getStyle | back to summary |
|---|---|
| public FetchStyle getStyle() Implements org.
| |
| getTiming | back to summary |
|---|---|
| public FetchTiming getTiming() Implements org.
| |
| getUnsavedStrategy | back to summary |
|---|---|
| public IdentifierValue getUnsavedStrategy() Implements org. Doc from org. The strategy for distinguishing between detached and transient state based on the identifier mapping
| |
| hasPartitionedSelectionMapping | back to summary |
|---|---|
| public boolean hasPartitionedSelectionMapping() Overrides default org. Implements org.
| |
| instantiate | back to summary |
|---|---|
| public Object instantiate() Implements org. Doc from org. Instantiate an instance of the identifier.
| |
| 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.
| |
| resolveSqlSelection | back to summary |
|---|---|
| private SqlSelection resolveSqlSelection(NavigablePath navigablePath, TableGroup tableGroup, FetchParent fetchParent, DomainResultCreationState creationState) | |
| setIdentifier | back to summary |
|---|---|
| public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session) Implements org. Doc from org. Inject an identifier value into an instance of the entity
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |