org.hibernate.sql
Class Update
java.lang.Object
org.hibernate.sql.Update
public class Update
- extends Object
An SQL UPDATE statement
- Author:
- Gavin King
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Update
public Update(Dialect dialect)
getTableName
public String getTableName()
appendAssignmentFragment
public Update appendAssignmentFragment(String fragment)
setTableName
public Update setTableName(String tableName)
setPrimaryKeyColumnNames
public Update setPrimaryKeyColumnNames(String[] primaryKeyColumnNames)
setVersionColumnName
public Update setVersionColumnName(String versionColumnName)
setComment
public Update setComment(String comment)
addColumns
public Update addColumns(String[] columnNames)
addColumns
public Update addColumns(String[] columnNames,
boolean[] updateable)
addColumns
public Update addColumns(String[] columnNames,
String value)
addColumn
public Update addColumn(String columnName)
addColumn
public Update addColumn(String columnName,
String value)
addColumn
public Update addColumn(String columnName,
Object value,
LiteralType type)
throws Exception
- Throws:
Exception
addWhereColumns
public Update addWhereColumns(String[] columnNames)
addWhereColumns
public Update addWhereColumns(String[] columnNames,
String value)
addWhereColumn
public Update addWhereColumn(String columnName)
addWhereColumn
public Update addWhereColumn(String columnName,
String value)
setWhere
public Update setWhere(String where)
toStatementString
public String toStatementString()