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

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


net.sf.hibernate.sql
Class SimpleSelect

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

public class SimpleSelect
extends Object

An SQL SELECT statement with no table joins

Author:
Gavin King

Constructor Summary
SimpleSelect()
           
 
Method Summary
 SimpleSelect addColumn(String columnName)
           
 SimpleSelect addColumn(String columnName, String alias)
           
 SimpleSelect addColumns(String[] columnNames)
           
 SimpleSelect addColumns(String[] columnNames, String[] columnAliases)
           
 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)
           
 void 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()
Method Detail

addColumns

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

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)

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 void setOrderBy(String orderBy)