| Modifier and Type | Field and Description |
|---|---|
| private final JdbcMapping |
| Access | Constructor and Description |
|---|---|
| public |
| jdbcMapping | back to summary |
|---|---|
| private final JdbcMapping jdbcMapping | |
| AbstractJdbcParameter | back to summary |
|---|---|
| public AbstractJdbcParameter(JdbcMapping jdbcMapping) | |
| accept | back to summary |
|---|---|
| public void accept(SqlAstWalker sqlTreeWalker) Implements org.
| |
| addToCacheKey | back to summary |
|---|---|
| public void addToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session) Overrides default org. Implements org. Doc from org. Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.
| |
| bindParameterValue | back to summary |
|---|---|
| public void bindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParamBindings, ExecutionContext executionContext) throws SQLException Implements org. Doc from org. Bind the appropriate value in the JDBC statement
| |
| bindParameterValue | back to summary |
|---|---|
| protected void bindParameterValue(JdbcMapping jdbcMapping, PreparedStatement statement, Object bindValue, int startPosition, ExecutionContext executionContext) throws SQLException | |
| createEnumType | back to summary |
|---|---|
| private static <E extends Enum | |
| createSqlSelection | back to summary |
|---|---|
| public SqlSelection createSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType<T> javaType, TypeConfiguration typeConfiguration) Overrides default org. Doc from org. Create a SqlSelection for the given JDBC ResultSet position
| |
| disassemble | back to summary |
|---|---|
| public Object disassemble(Object value, SharedSessionContractImplementor session) Overrides default org. 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
| |
| getExpressionType | back to summary |
|---|---|
| public MappingModelExpressible Implements org. Doc from org. The type for this expression
| |
| getJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getJdbcMapping() Implements org. Doc from org. Anything that is expressible at the SQL AST level would be of basic type.
| |
| getJdbcTypeCount | back to summary |
|---|---|
| public int getJdbcTypeCount() Overrides default org. Doc from org. The number of JDBC mappings
| |
| getMappedType | back to summary |
|---|---|
| public MappingType getMappedType() Implements org. Doc from org. Descriptor for the type of this mapping
| |
| getParameterBinder | back to summary |
|---|---|
| public JdbcParameterBinder getParameterBinder() Implements org.
| |
| getSingleJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getSingleJdbcMapping() Overrides default org.
| |
| guessBindType | back to summary |
|---|---|
| private JdbcMapping guessBindType(ExecutionContext executionContext, Object bindValue, JdbcMapping jdbcMapping) | |
| jdbcMapping | back to summary |
|---|---|
| private JdbcMapping jdbcMapping(ExecutionContext executionContext, JdbcParameterBinding binding) | |