jakarta.persistence.Embedded , jakarta.persistence.EmbeddedId , jakarta.persistence.Embeddable
| 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.
| |
| breakDownJdbcValues | back to summary |
|---|---|
| public default <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
| |
| decompose | back to summary |
|---|---|
| public default <X, Y> int decompose(Object domainValue, int offset, X x, Y y, ModelPart. Overrides default org. Doc from org. Similar to
| |
| 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, EntityMappingType treatTargetType) 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
| |
| forEachInsertable | back to summary |
|---|---|
| public default void forEachInsertable(SelectableConsumer consumer) Overrides default org.
| |
| 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
| |
| forEachSelectable | back to summary |
|---|---|
| public default 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.
| |
| forEachSubPart | back to summary |
|---|---|
| public default void forEachSubPart(IndexedConsumer<ModelPart> consumer, EntityMappingType treatTarget) Implements org.
| |
| forEachUpdatable | back to summary |
|---|---|
| public default void forEachUpdatable(SelectableConsumer consumer) Overrides default org.
| |
| getEmbeddableTypeDescriptor | back to summary |
|---|---|
| public EmbeddableMappingType getEmbeddableTypeDescriptor() | |
| getFetchable | back to summary |
|---|---|
| public default Fetchable getFetchable(int position) Overrides default org.
| |
| getJavaType | back to summary |
|---|---|
| public default JavaType Implements org. Doc from org. The Java type for this part. Generally equivalent to
| |
| getJdbcMapping | back to summary |
|---|---|
| public default JdbcMapping getJdbcMapping(int index) Implements org.
| |
| getJdbcTypeCount | back to summary |
|---|---|
| public default int getJdbcTypeCount() Overrides default org. Doc from org. The number of selectables
| |
| getMappedType | back to summary |
|---|---|
| public default EmbeddableMappingType getMappedType() Implements org. Doc from org. Descriptor for the type of this mapping
| |
| getNumberOfFetchables | back to summary |
|---|---|
| public default int getNumberOfFetchables() Implements org. Doc from org. The number of fetchables in the container
| |
| getParentInjectionAttributePropertyAccess | back to summary |
|---|---|
public default PropertyAccess getParentInjectionAttributePropertyAccess()
| |
| getSelectable | back to summary |
|---|---|
| public default SelectableMapping getSelectable(int columnIndex) Implements org. Doc from org. Get the selectable at the given position
| |
| getSelectableIndex | back to summary |
|---|---|
| public default int getSelectableIndex(String selectableName) Overrides default org.
| |
| hasPartitionedSelectionMapping | back to summary |
|---|---|
| public default boolean hasPartitionedSelectionMapping() Implements org.
| |
| toSqlExpression | back to summary |
|---|---|
| public SqlTuple toSqlExpression(TableGroup tableGroup, Clause clause, SqmToSqlAstConverter walker, SqlAstCreationState sqlAstCreationState) | |
| visitSubParts | back to summary |
|---|---|
| public default void visitSubParts(Consumer<ModelPart> consumer, EntityMappingType treatTargetType) Implements org.
| |