Package org.hibernate.sql
Class Insert
- java.lang.Object
- org.hibernate.sql.Insert
- Direct Known Subclasses:
IdentifierGeneratingInsert
@Internalpublic classInsertextendsObject
A SQLINSERTstatement.
Constructor Summary
Constructors Constructor Description Insert(Dialect dialect,ParameterMarkerStrategy parameterMarkerStrategy)Insert(SessionFactoryImplementor sessionFactory)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsertaddColumn(String columnName)InsertaddColumn(String columnName,String valueExpression)InsertaddColumns(String[] columnNames)InsertaddColumns(String[] columnNames, boolean[] insertable)InsertaddColumns(String[] columnNames, boolean[] insertable,String[] valueExpressions)InsertaddGeneratedColumns(String[] columnNames,OnExecutionGenerator generator)InsertaddIdentityColumn(String columnName)Map<String,String>getColumns()protectedDialectgetDialect()InsertsetComment(String comment)InsertsetTableName(String tableName)StringtoStatementString()
Constructor Detail
Insert
public Insert(SessionFactoryImplementor sessionFactory)
Insert
public Insert(Dialect dialect,ParameterMarkerStrategy parameterMarkerStrategy)
Method Detail
getDialect
protected Dialect getDialect()
addColumns
public Insert addColumns(String[] columnNames, boolean[] insertable,String[] valueExpressions)
addGeneratedColumns
public Insert addGeneratedColumns(String[] columnNames,OnExecutionGenerator generator)
toStatementString
public String toStatementString()