Package org.hibernate.sql
Class Select
java.lang.Object
org.hibernate.sql.Select
A simple SQL SELECT statement
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Instead use getLockOptionsGet the current lock optionssetComment(String comment) setFromClause(String fromClause) Sets the fromClause.setFromClause(String tableName, String alias) setGroupByClause(String groupByClause) setLockMode(LockMode lockMode) Deprecated.Instead use setLockOptionssetLockOptions(LockOptions lockOptions) Set the lock optionssetOrderByClause(String orderByClause) setOuterJoins(String outerJoinsAfterFrom, String outerJoinsAfterWhere) setSelectClause(String selectClause) Sets the selectClause.setWhereClause(String whereClause) Sets the whereClause.Construct an SQL SELECT statement from the given clauses
-
Field Details
-
dialect
-
-
Constructor Details
-
Select
-
-
Method Details
-
toStatementString
Construct an SQL SELECT statement from the given clauses -
setFromClause
Sets the fromClause.- Parameters:
fromClause- The fromClause to set
-
setFromClause
-
setOrderByClause
-
setGroupByClause
-
setOuterJoins
-
setSelectClause
Sets the selectClause.- Parameters:
selectClause- The selectClause to set
-
setWhereClause
Sets the whereClause.- Parameters:
whereClause- The whereClause to set
-
setComment
-
getLockMode
Deprecated.Instead use getLockOptionsGet the current lock mode- Returns:
- LockMode
-
setLockMode
Deprecated.Instead use setLockOptionsSet the lock mode- Parameters:
lockMode-- Returns:
- this object
-
getLockOptions
Get the current lock options- Returns:
- LockOptions
-
setLockOptions
Set the lock options- Parameters:
lockOptions-- Returns:
- this object
-