java.lang.Object
org.nkjmlab.sorm4j.util.sql.SelectSql.Builder
- 含まれているクラス:
- SelectSql
-
メソッドの概要
修飾子とタイプメソッド説明build()Creates a select SQL statement from the objects.distinct()Add distinct keyword to SQL.Creates from clause.Creates group by clause.Creates having clause.having(SelectSql.Condition condition) Creates having clause with the givenSelectSql.Condition.limit(int limit) Creates limit clause.limit(int limit, int offset) Creates limit clause with offset.Creates order by clause.Creates select clause.Creates prettified string.toPrettyString(boolean prettyPrint) Creates prettified or plain string.toString()Creates where clause.where(SelectSql.Condition condition) Creates where clause.
-
メソッドの詳細
-
build
Creates a select SQL statement from the objects.- 戻り値:
-
distinct
Add distinct keyword to SQL. -
from
Creates from clause.from("player") returns "from player"- パラメータ:
tables-- 戻り値:
-
groupBy
Creates group by clause.- パラメータ:
columns-- 戻り値:
-
having
Creates having clause with the givenSelectSql.Condition.- パラメータ:
condition-- 戻り値:
-
having
Creates having clause.- パラメータ:
expr-- 戻り値:
-
limit
Creates limit clause.- パラメータ:
limit-- 戻り値:
-
limit
Creates limit clause with offset.- パラメータ:
limit-- 戻り値:
-
orderBy
Creates order by clause.- パラメータ:
order-- 戻り値:
- 関連項目:
-
select
Creates select clause. The default value is "*".For example,
select("id","name","age") returns "select id, name, age"- パラメータ:
columns-- 戻り値:
-
toPrettyString
Creates prettified string.- 戻り値:
-
toPrettyString
Creates prettified or plain string.- パラメータ:
prettyPrint-- 戻り値:
-
toString
-
where
Creates where clause.- パラメータ:
condition-- 戻り値:
-
where
Creates where clause.- パラメータ:
expr-- 戻り値:
-