类 Select
- java.lang.Object
-
- org.hibernate.sql.Select
-
public class Select extends Object
A simple SQL SELECT statement- 作者:
- Gavin King
-
-
字段概要
字段 修饰符和类型 字段 说明 protected StringcommentDialectdialectprotected StringfromClauseprotected StringgroupByClauseprotected LockOptionslockOptionsprotected StringorderByClauseprotected StringouterJoinsAfterFromprotected StringouterJoinsAfterWhereprotected StringselectClauseprotected StringwhereClause
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 LockModegetLockMode()已过时。Instead use getLockOptionsLockOptionsgetLockOptions()Get the current lock optionsSelectsetComment(String comment)SelectsetFromClause(String fromClause)Sets the fromClause.SelectsetFromClause(String tableName, String alias)SelectsetGroupByClause(String groupByClause)SelectsetLockMode(LockMode lockMode)已过时。Instead use setLockOptionsSelectsetLockOptions(LockOptions lockOptions)Set the lock optionsSelectsetOrderByClause(String orderByClause)SelectsetOuterJoins(String outerJoinsAfterFrom, String outerJoinsAfterWhere)SelectsetSelectClause(String selectClause)Sets the selectClause.SelectsetSelectClause(SelectFragment selectFragment)SelectsetWhereClause(String whereClause)Sets the whereClause.StringtoStatementString()Construct an SQL SELECT statement from the given clauses
-
-
-
字段详细资料
-
selectClause
protected String selectClause
-
fromClause
protected String fromClause
-
outerJoinsAfterFrom
protected String outerJoinsAfterFrom
-
whereClause
protected String whereClause
-
outerJoinsAfterWhere
protected String outerJoinsAfterWhere
-
orderByClause
protected String orderByClause
-
groupByClause
protected String groupByClause
-
comment
protected String comment
-
lockOptions
protected LockOptions lockOptions
-
dialect
public final Dialect dialect
-
-
构造器详细资料
-
Select
public Select(Dialect dialect)
-
-
方法详细资料
-
toStatementString
public String toStatementString()
Construct an SQL SELECT statement from the given clauses
-
setFromClause
public Select setFromClause(String fromClause)
Sets the fromClause.- 参数:
fromClause- The fromClause to set
-
setSelectClause
public Select setSelectClause(String selectClause)
Sets the selectClause.- 参数:
selectClause- The selectClause to set
-
setSelectClause
public Select setSelectClause(SelectFragment selectFragment)
-
setWhereClause
public Select setWhereClause(String whereClause)
Sets the whereClause.- 参数:
whereClause- The whereClause to set
-
getLockMode
@Deprecated public LockMode getLockMode()
已过时。Instead use getLockOptionsGet the current lock mode- 返回:
- LockMode
-
setLockMode
@Deprecated public Select setLockMode(LockMode lockMode)
已过时。Instead use setLockOptionsSet the lock mode- 参数:
lockMode-- 返回:
- this object
-
getLockOptions
public LockOptions getLockOptions()
Get the current lock options- 返回:
- LockOptions
-
setLockOptions
public Select setLockOptions(LockOptions lockOptions)
Set the lock options- 参数:
lockOptions-- 返回:
- this object
-
-