java.sql.PreparedStatement .
| Modifier and Type | Class and Description |
|---|---|
| public static interface | Bindable.JdbcValuesBiConsumer<X, Y>
Functional interface for consuming the JDBC values, along with two values of type |
| public static interface | Bindable.JdbcValuesConsumer
Functional interface for consuming the JDBC values. |
| 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)Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value. |
| public Object | disassemble(Object value, SharedSessionContractImplementor session)
Breaks down a value of |
| public default <X, Y> int | forEachDisassembledJdbcValue(Object value, X x, Y y, Bindable.
Visit each constituent JDBC value over the result from |
| public <X, Y> int | forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable.
Like |
| public default int | forEachDisassembledJdbcValue(Object value, Bindable.
A short hand form of |
| public default int | forEachDisassembledJdbcValue(Object value, int offset, Bindable.
A short hand form of |
| public default int | forEachJdbcType(IndexedConsumer<JdbcMapping> action)
Overrides default org. |
| public default <X, Y> int | forEachJdbcValue(Object value, X x, Y y, Bindable.
Visit each constituent JDBC value extracted from the entity instance itself. |
| public default <X, Y> int | forEachJdbcValue(Object value, int offset, X x, Y y, Bindable.
Visit each constituent JDBC value extracted from the entity instance itself. |
| public default int | forEachJdbcValue(Object value, Bindable.
A short hand form of |
| public default int | forEachJdbcValue(Object value, int offset, Bindable.
A short hand form of |
| public default int | getJdbcTypeCount()
Overrides default org. |
| addToCacheKey | back to summary |
|---|---|
| public void addToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session) 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) 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 default <X, Y> int forEachDisassembledJdbcValue(Object value, X x, Y y, Bindable. Visit each constituent JDBC value over the result from
Given the example in
consumer.consume( "Steve" ); consumer.consume( "Ebersole" ); consumer.consume( 28 );
Think of it as breaking the multidimensional array into a visitable flat array.
Additionally, it passes through the values | |
| forEachDisassembledJdbcValue | back to summary |
|---|---|
| public <X, Y> int forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable. Like | |
| forEachDisassembledJdbcValue | back to summary |
|---|---|
| public default int forEachDisassembledJdbcValue(Object value, Bindable. A short hand form of | |
| forEachDisassembledJdbcValue | back to summary |
|---|---|
| public default int forEachDisassembledJdbcValue(Object value, int offset, Bindable. A short hand form of | |
| forEachJdbcType | back to summary |
|---|---|
| public default int forEachJdbcType(IndexedConsumer<JdbcMapping> action) Overrides default org. Visit each of JdbcMapping API Note Same as
| |
| forEachJdbcValue | back to summary |
|---|---|
| public default <X, Y> int forEachJdbcValue(Object value, X x, Y y, Bindable. Visit each constituent JDBC value extracted from the entity instance itself.
Short-hand form of calling | |
| forEachJdbcValue | back to summary |
|---|---|
| public default <X, Y> int forEachJdbcValue(Object value, int offset, X x, Y y, Bindable. Visit each constituent JDBC value extracted from the entity instance itself.
Short-hand form of calling | |
| forEachJdbcValue | back to summary |
|---|---|
| public default int forEachJdbcValue(Object value, Bindable. A short hand form of | |
| forEachJdbcValue | back to summary |
|---|---|
| public default int forEachJdbcValue(Object value, int offset, Bindable. A short hand form of | |
| getJdbcTypeCount | back to summary |
|---|---|
| public default int getJdbcTypeCount() Overrides default org. The number of JDBC mappings
| |
X and Y.
| Modifier and Type | Method and Description |
|---|---|
| public void | consume(int valueIndex, X x, Y y, Object jdbcValue, JdbcMapping jdbcMapping)
Consume a JDBC-level jdbcValue. |
| consume | back to summary |
|---|---|
| public void consume(int valueIndex, X x, Y y, Object jdbcValue, JdbcMapping jdbcMapping) Consume a JDBC-level jdbcValue. The JDBC jdbcMapping descriptor is also passed in | |
| Modifier and Type | Method and Description |
|---|---|
| public default void | consume(int valueIndex, Object o, Object o2, Object jdbcValue, JdbcMapping jdbcMapping)
Implements org. |
| public void |
| consume | back to summary |
|---|---|
| public default void consume(int valueIndex, Object o, Object o2, Object jdbcValue, JdbcMapping jdbcMapping) Implements org. Doc from org. Consume a JDBC-level jdbcValue. The JDBC jdbcMapping descriptor is also passed in
| |
| consume | back to summary |
|---|---|
| public void consume(int valueIndex, Object jdbcValue, JdbcMapping jdbcMapping) Consume a JDBC-level jdbcValue. The JDBC jdbcMapping descriptor is also passed in | |