| Modifier and Type | Class and Description |
|---|---|
| protected static interface | |
| protected static interface | |
| protected static class | |
| protected static interface |
| Modifier and Type | Field and Description |
|---|---|
| protected final MutableAttributeMappingList | attributeMappings
Deprecated
as a consequence of
MutableAttributeMappingList being deprecated.
|
| protected SelectableMappings |
| Access | Constructor and Description |
|---|---|
| public | AbstractEmbeddableMapping(MutableAttributeMappingList attributeMappings)
Deprecated
as a consequence of
MutableAttributeMappingList being deprecated.
|
| attributeMappings | back to summary |
|---|---|
| protected final MutableAttributeMappingList attributeMappings
Deprecated as a consequence of | |
| selectableMappings | back to summary |
|---|---|
| protected SelectableMappings selectableMappings | |
| AbstractEmbeddableMapping | back to summary |
|---|---|
| public AbstractEmbeddableMapping(MutableAttributeMappingList attributeMappings)
Deprecated as a consequence of | |
| addAttribute | back to summary |
|---|---|
| protected void addAttribute(AttributeMapping attributeMapping) | |
| 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.
| |
| 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
| |
| checkIsReady | back to summary |
|---|---|
| private void checkIsReady() | |
| 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.
| |
| findAttributeMapping | back to summary |
|---|---|
| public AttributeMapping findAttributeMapping(String name) Overrides default org. Doc from org. Find an attribute by name.
| |
| findSubPart | back to summary |
|---|---|
| public ModelPart findSubPart(String name, EntityMappingType treatTargetType) Implements org.
| |
| finishInitialization | back to summary |
|---|---|
| protected boolean finishInitialization(NavigableRole navigableRole, Component bootDescriptor, CompositeType compositeType, String rootTableExpression, String[] rootTableKeyColumnNames, EmbeddableMappingType declarer, EmbeddableRepresentationStrategy representationStrategy, AbstractEmbeddableMapping. | |
| forEachAttributeMapping | back to summary |
|---|---|
| public void forEachAttributeMapping(final IndexedConsumer<? super AttributeMapping> consumer) Overrides default org. Doc from org. Visit attributes defined on this class and any supers
| |
| forEachAttributeMapping | back to summary |
|---|---|
| public void forEachAttributeMapping(final Consumer<? super AttributeMapping> action) Implements org. Doc from org. Visit attributes defined on this class and any supers
| |
| 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
| |
| forEachJdbcValue | back to summary |
|---|---|
| public <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 int forEachSelectable(SelectableConsumer consumer) Overrides default org. Doc from org. Same as
| |
| forEachSelectable | back to summary |
|---|---|
| public int forEachSelectable(int offset, SelectableConsumer consumer) Implements org. Doc from org. Visit each contained selectable mapping. As the selectables are iterated, we call `SelectionConsumer` passing along `offset` + our current iteration index. The return is the number of selectables we directly contain
| |
| forEachSubPart | back to summary |
|---|---|
| public void forEachSubPart(IndexedConsumer<ModelPart> consumer, EntityMappingType treatTarget) Implements org.
| |
| getAttributeMapping | back to summary |
|---|---|
| public AttributeMapping getAttributeMapping(int position) Implements org. Doc from org. Retrieve an attribute by its contributor position
| |
| getAttributeMappings | back to summary |
|---|---|
| public AttributeMappingsList getAttributeMappings() Implements org. Doc from org. Get access to the attributes defined on this class and any supers
| |
| getFetchable | back to summary |
|---|---|
| public Fetchable getFetchable(int position) Overrides default org.
| |
| getJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getJdbcMapping(int index) Implements org.
| |
| getJdbcTypeCount | back to summary |
|---|---|
| public int getJdbcTypeCount() Implements org. Doc from org. The number of selectables
| |
| getMappedJavaType | back to summary |
|---|---|
| public JavaType Implements org. Doc from org. The descriptor descriptor for the mapped Java type
| |
| getMutabilityPlan | back to summary |
|---|---|
| private static MutabilityPlan | |
| getNumberOfAttributeMappings | back to summary |
|---|---|
| public int getNumberOfAttributeMappings() Implements org. Doc from org. Get the number of attributes defined on this class and any supers
| |
| getNumberOfFetchables | back to summary |
|---|---|
| public int getNumberOfFetchables() Implements org. Doc from org. The number of fetchables in the container
| |
| getSelectable | back to summary |
|---|---|
| public SelectableMapping getSelectable(int columnIndex) Implements org. Doc from org. Get the selectable at the given position
| |
| getSelectableMappings | back to summary |
|---|---|
| protected SelectableMappings getSelectableMappings() | |
| getValues | back to summary |
|---|---|
| public Object[] getValues(Object compositeInstance) Implements org. Doc from org. Extract the individual attribute values from the entity instance
| |
| initColumnMappings | back to summary |
|---|---|
| protected boolean initColumnMappings() | |
| inverseInitializeCallback | back to summary |
|---|---|
| protected boolean inverseInitializeCallback(TableGroupProducer declaringTableGroupProducer, SelectableMappings selectableMappings, EmbeddableMappingType inverseMappingType, MappingModelCreationProcess creationProcess, ManagedMappingType declaringType, MutableAttributeMappingList mappings)
Deprecated as a consequence of | |
| setValues | back to summary |
|---|---|
| public void setValues(Object component, Object[] values) Implements org. Doc from org. Inject the attribute values into the entity instance
| |
| visitFetchables | back to summary |
|---|---|
| public void visitFetchables(Consumer<? super Fetchable> consumer, EntityMappingType treatTargetType) Overrides default org.
| |
| visitFetchables | back to summary |
|---|---|
| public void visitFetchables(IndexedConsumer<? super Fetchable> indexedConsumer, EntityMappingType treatTargetType) Overrides default org.
| |
| visitSubParts | back to summary |
|---|---|
| public void visitSubParts(Consumer<ModelPart> consumer, EntityMappingType treatTargetType) Implements org.
| |
| check | back to summary |
|---|---|
| public void check(String name, Type type) throws IllegalAttributeType | |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| resolve | back to summary |
|---|---|
| public String resolve(Column column, JdbcEnvironment jdbcEnvironment) | |
| Access | Constructor and Description |
|---|---|
| public |
| IllegalAttributeType | back to summary |
|---|---|
| public IllegalAttributeType(String message) | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| success | back to summary |
|---|---|
| public void success() | |