Package org.hibernate.sql
Class Insert
- java.lang.Object
-
- org.hibernate.sql.Insert
-
- Direct Known Subclasses:
IdentifierGeneratingInsert
@Internal public class Insert extends Object
A SQLINSERT
statement.
-
-
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 Insert
addColumn(String columnName)
Insert
addColumn(String columnName, String valueExpression)
Insert
addColumns(String[] columnNames)
Insert
addColumns(String[] columnNames, boolean[] insertable)
Insert
addColumns(String[] columnNames, boolean[] insertable, String[] valueExpressions)
Insert
addGeneratedColumns(String[] columnNames, OnExecutionGenerator generator)
Insert
addIdentityColumn(String columnName)
Map<String,String>
getColumns()
protected Dialect
getDialect()
Insert
setComment(String comment)
Insert
setTableName(String tableName)
String
toStatementString()
-
-
-
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()
-
-