Package org.hibernate.sql
Class Insert
- java.lang.Object
-
- org.hibernate.sql.Insert
-
- Direct Known Subclasses:
IdentifierGeneratingInsert
public class Insert extends java.lang.Object
An SQL INSERT statement
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Insert
addColumn(java.lang.String columnName)
Insert
addColumn(java.lang.String columnName, java.lang.Object value, LiteralType type)
Insert
addColumn(java.lang.String columnName, java.lang.String valueExpression)
Insert
addColumns(java.lang.String[] columnNames)
Insert
addColumns(java.lang.String[] columnNames, boolean[] insertable)
Insert
addColumns(java.lang.String[] columnNames, boolean[] insertable, java.lang.String[] valueExpressions)
Insert
addIdentityColumn(java.lang.String columnName)
protected Dialect
getDialect()
Insert
setComment(java.lang.String comment)
Insert
setTableName(java.lang.String tableName)
java.lang.String
toStatementString()
-
-
-
Constructor Detail
-
Insert
public Insert(Dialect dialect)
-
-
Method Detail
-
getDialect
protected Dialect getDialect()
-
setComment
public Insert setComment(java.lang.String comment)
-
addColumn
public Insert addColumn(java.lang.String columnName)
-
addColumns
public Insert addColumns(java.lang.String[] columnNames)
-
addColumns
public Insert addColumns(java.lang.String[] columnNames, boolean[] insertable)
-
addColumns
public Insert addColumns(java.lang.String[] columnNames, boolean[] insertable, java.lang.String[] valueExpressions)
-
addColumn
public Insert addColumn(java.lang.String columnName, java.lang.String valueExpression)
-
addColumn
public Insert addColumn(java.lang.String columnName, java.lang.Object value, LiteralType type) throws java.lang.Exception
- Throws:
java.lang.Exception
-
addIdentityColumn
public Insert addIdentityColumn(java.lang.String columnName)
-
setTableName
public Insert setTableName(java.lang.String tableName)
-
toStatementString
public java.lang.String toStatementString()
-
-