Package org.hibernate.sql.model.ast
Class ColumnWriteFragment
- java.lang.Object
-
- org.hibernate.sql.model.ast.ColumnWriteFragment
-
- All Implemented Interfaces:
SqlSelectionProducer
,Expression
,SqlAstNode
public class ColumnWriteFragment extends Object implements Expression
Models a column's value expression within the SQL AST. Used to model:- a column's new value in a SET clause
- a column's new value in a SET clause
- a column's old value in a restriction (optimistic locking)
- See Also:
ColumnTransformer.write()
-
-
Constructor Summary
Constructors Constructor Description ColumnWriteFragment(String fragment, List<ColumnValueParameter> parameters, JdbcMapping jdbcMapping)
ColumnWriteFragment(String fragment, JdbcMapping jdbcMapping)
ColumnWriteFragment(String fragment, ColumnValueParameter parameter, JdbcMapping jdbcMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
JdbcMapping
getExpressionType()
The type for this expressionString
getFragment()
Collection<ColumnValueParameter>
getParameters()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
-
-
-
Constructor Detail
-
ColumnWriteFragment
public ColumnWriteFragment(String fragment, JdbcMapping jdbcMapping)
-
ColumnWriteFragment
public ColumnWriteFragment(String fragment, ColumnValueParameter parameter, JdbcMapping jdbcMapping)
-
ColumnWriteFragment
public ColumnWriteFragment(String fragment, List<ColumnValueParameter> parameters, JdbcMapping jdbcMapping)
-
-
Method Detail
-
getFragment
public String getFragment()
-
getParameters
public Collection<ColumnValueParameter> getParameters()
-
getExpressionType
public JdbcMapping getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
-