JdbcMapping and acts
as its own MappingModelExpressible.
QueryLiteral
| Modifier and Type | Field and Description |
|---|---|
| private final JdbcMapping | |
| private final T |
| Access | Constructor and Description |
|---|---|
| public |
| jdbcMapping | back to summary |
|---|---|
| private final JdbcMapping jdbcMapping | |
| literalValue | back to summary |
|---|---|
| private final T literalValue | |
| JdbcLiteral | back to summary |
|---|---|
| public JdbcLiteral(T literalValue, 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) Implements org. Doc from org. Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.
| |
| applySqlSelections | back to summary |
|---|---|
| public void applySqlSelections(DomainResultCreationState creationState) Implements org. Doc from org. Used when this producer is a selection in a sub-query. The DomainResult is only needed for root query of a SELECT statement. This default impl assumes this producer is a true (Sql)Expression
| |
| bindParameterValue | back to summary |
|---|---|
| public void bindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) throws SQLException Implements org. Doc from org. Bind the appropriate value in the JDBC statement
| |
| createDomainResult | back to summary |
|---|---|
| public DomainResult Implements org. Doc from org. Produce the domain query
| |
| 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
| |
| getExpressibleJavaType | back to summary |
|---|---|
| public JavaType Implements org.
| |
| 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.
| |
| getJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getJdbcMapping(int index) Implements org.
| |
| getJdbcTypeCount | back to summary |
|---|---|
| public int getJdbcTypeCount() Overrides default org. Doc from org. The number of JDBC mappings
| |
| getLiteralValue | back to summary |
|---|---|
| public Object getLiteralValue() Implements org.
| |
| getSingleJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getSingleJdbcMapping() Overrides default org.
| |