jakarta.persistence.ManyToOne jakarta.persistence.OneToOne | Modifier and Type | Method and Description |
|---|---|
| public default void | addToCacheKey(MutableCacheKeyBuilder
the MutableCacheKey used to add the disassembled value and the hashCode cacheKey, Object the value to disassemble value, SharedSessionContractImplementor the SharedSessionContractImplementor session)Implements org. |
| public default void | applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState)
Implements org. |
| public default void | applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection, JdbcMapping> selectionConsumer)
Implements org. |
| public default <T> DomainResult | createDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState)
Implements org. |
| public default Object | disassemble(Object value, SharedSessionContractImplementor session)
Implements org. J into its simple pieces.
|
| public default ModelPart | |
| public default ModelPart | findSubPart(String name, EntityMappingType targetType)
Implements org. |
| public default <X, Y> int | forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable.
Implements org. forEachDisassembledJdbcValue(Object, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor),
but additionally receives an offset by which the selectionIndex is incremented when calling JdbcValuesBiConsumer#consume(int, Object, Object, Object, JdbcMapping).
|
| public default int | forEachJdbcType(int offset, IndexedConsumer<JdbcMapping> action)
Implements org. |
| public default <X, Y> int | forEachJdbcValue(Object value, int offset, X x, Y y, Bindable.
Overrides default org. |
| public default void | forEachSubPart(IndexedConsumer<ModelPart> consumer, EntityMappingType treatTarget)
Implements org. |
| public EntityMappingType | |
| public default int | getJdbcTypeCount()
Overrides default org. |
| public default void | visitSubParts(Consumer<ModelPart> consumer, EntityMappingType targetType)
Implements org. |
| addToCacheKey | back to summary |
|---|---|
| public default 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 default 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 default 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.
| |
| createDomainResult | back to summary |
|---|---|
| public default <T> DomainResult Implements org. Doc from org. Create a DomainResult for a specific reference to this ModelPart.
| |
| disassemble | back to summary |
|---|---|
| public default 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.
| |
| findSubPart | back to summary |
|---|---|
| public default ModelPart findSubPart(String name) | |
| findSubPart | back to summary |
|---|---|
| public default ModelPart findSubPart(String name, EntityMappingType targetType) Implements org.
| |
| forEachDisassembledJdbcValue | back to summary |
|---|---|
| public default <X, Y> int forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable. Implements org. Doc from org. Like
| |
| forEachJdbcType | back to summary |
|---|---|
| public default int forEachJdbcType(int offset, IndexedConsumer<JdbcMapping> action) Implements org. Doc from org. Visit each JdbcMapping starting from the given offset
| |
| forEachJdbcValue | back to summary |
|---|---|
| public default <X, Y> int forEachJdbcValue(Object value, int offset, X x, Y y, Bindable. Overrides default org. Doc from org. Visit each constituent JDBC value extracted from the entity instance itself.
Short-hand form of calling
| |
| forEachSubPart | back to summary |
|---|---|
| public default void forEachSubPart(IndexedConsumer<ModelPart> consumer, EntityMappingType treatTarget) Implements org.
| |
| getEntityMappingType | back to summary |
|---|---|
| public EntityMappingType getEntityMappingType() The descriptor of the entity that is the type for this part | |
| getJdbcTypeCount | back to summary |
|---|---|
| public default int getJdbcTypeCount() Overrides default org. Doc from org. The number of JDBC mappings
| |
| visitSubParts | back to summary |
|---|---|
| public default void visitSubParts(Consumer<ModelPart> consumer, EntityMappingType targetType) Implements org.
| |