| Modifier and Type | Field and Description |
|---|---|
| private final MappingModelExpressible | |
| private final JdbcMapping[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public 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 Object | disassemble(Object value, SharedSessionContractImplementor session)
Implements org. J into its simple pieces.
|
| public <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 int | forEachJdbcType(int offset, IndexedConsumer<JdbcMapping> action)
Implements org. |
| public <X, Y> int | forEachJdbcValue(Object value, int offset, X x, Y y, Bindable.
Overrides default org. |
| public JdbcMapping | getJdbcMapping(final int index)
Implements org. |
| components | back to summary |
|---|---|
| private final MappingModelExpressible<Object>[] components | |
| mappings | back to summary |
|---|---|
| private final JdbcMapping[] mappings | |
| TupleMappingModelExpressible | back to summary |
|---|---|
| public TupleMappingModelExpressible(MappingModelExpressible<?>[] components) | |
| 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.
| |
| 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.
| |
| 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
| |
| getJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getJdbcMapping(final int index) Implements org.
| |