站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

Update (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.sql
Class Update

java.lang.Object
  extended bynet.sf.hibernate.sql.Update

public class Update
extends Object

An SQL UPDATE statement

Author:
Gavin King

Constructor Summary
Update()
           
 
Method Summary
 Update addColumn(String columnName)
           
 Update addColumn(String columnName, Object value, LiteralType type)
           
 Update addColumn(String columnName, String value)
           
 Update addColumns(String[] columnNames)
           
 Update addColumns(String[] columnNames, String value)
           
 Update addWhereColumn(String columnName)
           
 Update addWhereColumn(String columnName, String value)
           
 Update addWhereColumns(String[] columnNames)
           
 Update addWhereColumns(String[] columnNames, String value)
           
 Update setPrimaryKeyColumnNames(String[] primaryKeyColumnNames)
           
 Update setTableName(String tableName)
           
 Update setVersionColumnName(String versionColumnName)
           
 Update setWhere(String where)
           
 String toStatementString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Update

public Update()
Method Detail

addColumns

public Update addColumns(String[] columnNames)

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)

setTableName

public Update setTableName(String tableName)

setWhere

public Update setWhere(String where)

toStatementString

public String toStatementString()

setPrimaryKeyColumnNames

public Update setPrimaryKeyColumnNames(String[] primaryKeyColumnNames)

setVersionColumnName

public Update setVersionColumnName(String versionColumnName)