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

SimpleSelect (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.sql
Class SimpleSelect

java.lang.Object
  extended byorg.hibernate.sql.SimpleSelect

public class SimpleSelect
extends Object

An SQL SELECT statement with no table joins

Author:
Gavin King

Constructor Summary
SimpleSelect(Dialect dialect)
           
 
Method Summary
 SimpleSelect addColumn(String columnName)
           
 SimpleSelect addColumn(String columnName, String alias)
           
 SimpleSelect addColumns(String[] columnNames)
           
 SimpleSelect addColumns(String[] columnNames, String[] columnAliases)
           
 SimpleSelect addColumns(String[] columns, String[] aliases, boolean[] ignore)
           
 SimpleSelect addCondition(String[] lhs, String condition)
           
 SimpleSelect addCondition(String[] lhs, String op, String[] rhs)
           
 SimpleSelect addCondition(String lhs, String condition)
           
 SimpleSelect addCondition(String lhs, String op, String rhs)
           
 SimpleSelect addWhereToken(String token)
           
 SimpleSelect setComment(String comment)
           
 SimpleSelect setLockMode(LockMode lockMode)
           
 SimpleSelect setOrderBy(String orderBy)
           
 SimpleSelect setTableName(String tableName)
           
 String toStatementString()
           
 String toWhereClause()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSelect

public SimpleSelect(Dialect dialect)
Method Detail

addColumns

public SimpleSelect addColumns(String[] columnNames,
                               String[] columnAliases)

addColumns

public SimpleSelect addColumns(String[] columns,
                               String[] aliases,
                               boolean[] ignore)

addColumns

public SimpleSelect addColumns(String[] columnNames)

addColumn

public SimpleSelect addColumn(String columnName)

addColumn

public SimpleSelect addColumn(String columnName,
                              String alias)

setTableName

public SimpleSelect setTableName(String tableName)

setLockMode

public SimpleSelect setLockMode(LockMode lockMode)

addWhereToken

public SimpleSelect addWhereToken(String token)

addCondition

public SimpleSelect addCondition(String lhs,
                                 String op,
                                 String rhs)

addCondition

public SimpleSelect addCondition(String lhs,
                                 String condition)

addCondition

public SimpleSelect addCondition(String[] lhs,
                                 String op,
                                 String[] rhs)

addCondition

public SimpleSelect addCondition(String[] lhs,
                                 String condition)

toStatementString

public String toStatementString()

toWhereClause

public String toWhereClause()

setOrderBy

public SimpleSelect setOrderBy(String orderBy)

setComment

public SimpleSelect setComment(String comment)