public static class SqlStatement.Select extends SqlStatement
SqlStatement.Condition, SqlStatement.Delete, SqlStatement.Insert, SqlStatement.ResultSetReader, SqlStatement.Select, SqlStatement.Update
forUpdate, sb, values
Modifier and Type | Method and Description |
---|---|
SqlStatement.Select |
forUpdate()
Set the "for update" flag to lock the rows for updating
|
SqlStatement.Select |
limit(int offset,
int limit)
Setting the offset and limit for LIMIT clause
|
SqlStatement.Select |
orderBy(Schema.Column column,
boolean order)
Sets the column to sort and the order of sort
|
SqlStatement.Select |
orderBy(Schema.Column column0,
boolean order0,
Schema.Column column1,
boolean order1)
To sort 2 columns
|
String |
toString()
Generate the SQL Select Statement with conditions and other clauses that were set
|
SqlStatement.Select |
where(SqlStatement.Condition condition)
Set the condition for where clause
|
and, between, deleteFrom, getCount, getNewStatementWithValues, greaterThan, greaterThanOrEqual, in, in, insertInto, isEqual, isLike, isNotEqual, isNotLike, isNotNull, isNull, lessThan, lessThanOrEqual, notBetween, notIn, notIn, or, parse, prepare, prepare, prepareAndSetValues, prepareForBatch, selectAllFrom, selectColumns, setValue, update
public SqlStatement.Select where(SqlStatement.Condition condition)
condition
- condition for where clauseSelect
for cascadingpublic SqlStatement.Select orderBy(Schema.Column column, boolean order)
column
- column to sortorder
- true = ascendingSelect
for cascadingpublic SqlStatement.Select orderBy(Schema.Column column0, boolean order0, Schema.Column column1, boolean order1)
column0
- First column to be sortedorder0
- true = ascendingcolumn1
- Second column to be sortedorder1
- true = ascendingSelect
for cascadingpublic SqlStatement.Select limit(int offset, int limit)
offset
- the offsetlimit
- the limitSelect
for cascadingpublic SqlStatement.Select forUpdate()
Select
for cascadingCopyright © 2018 Apache Software Foundation. All rights reserved.