Class SqlTuple
- java.lang.Object
- org.hibernate.sql.ast.tree.expression.SqlTuple
- All Implemented Interfaces:
DomainResultProducer,SqlSelectionProducer,Expression,SqlTupleContainer,SqlAstNode,Assignable
public classSqlTupleextendsObjectimplementsExpression,SqlTupleContainer,DomainResultProducer,Assignable
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlTuple.Builder
Constructor Summary
Constructors Constructor Description SqlTuple(List<? extendsExpression> expressions,MappingModelExpressible valueMapping)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SqlAstWalker sqlTreeWalker)voidapplySqlSelections(DomainResultCreationState creationState)Used when this producer is a selection in a sub-query.DomainResultcreateDomainResult(String resultVariable,DomainResultCreationState creationState)Produce the domain queryList<ColumnReference>getColumnReferences()List<? extendsExpression>getExpressions()MappingModelExpressiblegetExpressionType()The type for this expressionSqlTuplegetSqlTuple()Methods inherited from class java.lang.Object
clone,equals,finalize,getClass,hashCode,notify,notifyAll,toString,wait,wait,wait
Methods inherited from interface org.hibernate.sql.ast.tree.update.Assignable
visitColumnReferences
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection,createSqlSelection,getColumnReference
Constructor Detail
SqlTuple
public SqlTuple(List<? extendsExpression> expressions,MappingModelExpressible valueMapping)
Method Detail
getExpressionType
public MappingModelExpressible getExpressionType()
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
getExpressions
public List<? extendsExpression> getExpressions()
getColumnReferences
public List<ColumnReference> getColumnReferences()
- Specified by:
getColumnReferencesin interfaceAssignable
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
acceptin interfaceSqlAstNode
getSqlTuple
public SqlTuple getSqlTuple()
- Specified by:
getSqlTuplein interfaceSqlTupleContainer
createDomainResult
public DomainResult createDomainResult(String resultVariable,DomainResultCreationState creationState)
Description copied from interface:DomainResultProducerProduce the domain query- Specified by:
createDomainResultin interfaceDomainResultProducer
applySqlSelections
public void applySqlSelections(DomainResultCreationState creationState)
Description copied from interface:DomainResultProducerUsed 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- Specified by:
applySqlSelectionsin interfaceDomainResultProducer