public class Select extends Object
Modifier and Type | Method and Description |
---|---|
LockMode |
getLockMode()
Deprecated.
Instead use getLockOptions
|
LockOptions |
getLockOptions()
Get the current lock options
|
Select |
setComment(String comment) |
Select |
setFromClause(String fromClause)
Sets the fromClause.
|
Select |
setFromClause(String tableName,
String alias) |
Select |
setGroupByClause(String groupByClause) |
Select |
setLockMode(LockMode lockMode)
Deprecated.
Instead use setLockOptions
|
Select |
setLockOptions(LockOptions lockOptions)
Set the lock options
|
Select |
setOrderByClause(String orderByClause) |
Select |
setOuterJoins(String outerJoinsAfterFrom,
String outerJoinsAfterWhere) |
Select |
setSelectClause(SelectFragment selectFragment) |
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
|
public final Dialect dialect
public Select(Dialect dialect)
public String toStatementString()
public Select setFromClause(String fromClause)
fromClause
- The fromClause to setpublic Select setSelectClause(String selectClause)
selectClause
- The selectClause to setpublic Select setSelectClause(SelectFragment selectFragment)
public Select setWhereClause(String whereClause)
whereClause
- The whereClause to set@Deprecated public LockMode getLockMode()
@Deprecated public Select setLockMode(LockMode lockMode)
lockMode
- public LockOptions getLockOptions()
public Select setLockOptions(LockOptions lockOptions)
lockOptions
- Copyright © 2016 JBoss by Red Hat. All rights reserved.