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

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


net.sf.hibernate.sql
Class Select

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

public class Select
extends Object

A simple SQL SELECT statement

Author:
Gavin King

Constructor Summary
Select()
           
 
Method Summary
 Select setFromClause(String fromClause)
          Sets the fromClause.
 Select setFromClause(String tableName, String alias)
           
 Select setOrderByClause(String orderByClause)
          Sets the orderByClause.
 Select setOuterJoins(String outerJoinsAfterFrom, String outerJoinsAfterWhere)
          Sets the outerJoins.
 Select setSelectClause(String selectClause)
          Sets the selectClause.
 Select setWhereClause(String whereClause)
          Sets the whereClause.
 String toStatementString()
          Construct an SQL SELECT statement from the given clauses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Select

public Select()
Method Detail

toStatementString

public String toStatementString()
Construct an SQL SELECT statement from the given clauses


setFromClause

public Select setFromClause(String fromClause)
Sets the fromClause.

Parameters:
fromClause - The fromClause to set

setFromClause

public Select setFromClause(String tableName,
                            String alias)

setOrderByClause

public Select setOrderByClause(String orderByClause)
Sets the orderByClause.

Parameters:
orderByClause - The orderByClause to set

setOuterJoins

public Select setOuterJoins(String outerJoinsAfterFrom,
                            String outerJoinsAfterWhere)
Sets the outerJoins.

Parameters:
outerJoinsAfterFrom - The outerJoinsAfterFrom to set
outerJoinsAfterWhere - The outerJoinsAfterWhere to set

setSelectClause

public Select setSelectClause(String selectClause)
Sets the selectClause.

Parameters:
selectClause - The selectClause to set

setWhereClause

public Select setWhereClause(String whereClause)
Sets the whereClause.

Parameters:
whereClause - The whereClause to set