|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.kuina.dao.criteria.impl.SelectStatementImpl
public class SelectStatementImpl
JPQLのslelect_statementの実装クラスです.
| フィールドの概要 | |
|---|---|
protected Integer |
firstResult
取得する結果セットの最初の位置 |
protected FlushModeType |
flushMode
問い合わせを実行する際のフラッシュモード |
protected FromClause |
fromClause
FROM句 |
protected GroupbyClause |
groupbyClause
GROUP BY句 |
protected HavingClause |
havingClause
HAVING句 |
protected Map<String,Object> |
hints
問い合わせのヒント |
protected Integer |
maxResults
取得する結果セットの最大件数 |
protected OrderbyClause |
orderbyClause
ORDER BY句 |
protected SelectClause |
selectClause
SELECT句 |
protected WhereClause |
whereClause
WHERE句 |
| コンストラクタの概要 | |
|---|---|
SelectStatementImpl()
インスタンスを構築します。 |
|
SelectStatementImpl(boolean distinct)
インスタンスを構築します。 |
|
| メソッドの概要 | ||
|---|---|---|
SelectStatement |
addHint(String name,
Object value)
問い合わせのヒントを追加します. |
|
protected CriteriaContext |
createContext()
JPQLを作成するためのコンテキスト情報を作成して返します. |
|
protected Query |
createQuery(EntityManager em,
boolean fillParameter)
このSELECT文を実行するための Queryを作成します. |
|
protected void |
evaluate(CriteriaContext context)
この問い合わせを評価し,コンテキスト情報に反映します. |
|
SelectStatement |
from(Class<?>... entityClasses)
FROM句にidentification_variable_declarationを追加します. |
|
SelectStatement |
from(Class<?> entityClass,
String alias)
FROM句にidentification_variable_declarationを追加します. |
|
SelectStatement |
from(IdentificationVariableDeclaration... declarations)
FROM句にidentification_variable_declarationを追加します. |
|
Query |
getQuery(EntityManager em)
Queryを作成して返します. |
|
String |
getQueryString()
問い合わせ文字列 (JPQL) を返します. |
|
|
getResultList(EntityManager em)
問い合わせを実行して結果を Listで返します. |
|
|
getSingleResult(EntityManager em)
問い合わせを実行して単一の結果を返します. |
|
SelectStatement |
groupby(GroupbyItem... groupbyItems)
GROUP BY句にgroupby_itemを追加します. |
|
SelectStatement |
groupby(String... groupbyItems)
GROUP BY句にgroupby_itemを追加します. |
|
SelectStatement |
having(ConditionalExpression... conditionalExpressions)
HAVING句にconditional_expressionを追加します. |
|
SelectStatement |
orderby(OrderbyItem... orderbyItems)
ORDER BY句にorderby_itemを追加します. |
|
SelectStatement |
orderby(String... orderbyItems)
ORDER BY句にorderby_itemを追加します. |
|
SelectStatement |
select(Object... selectExpressions)
SELECT句にselect_expressionを追加します. |
|
SelectStatement |
select(SelectExpression selectExpression)
SELECT句にselect_expressionを追加します. |
|
SelectStatement |
select(String selectExpression)
SELECT句にselect_expressionを追加します. |
|
SelectStatement |
setFirstResult(int startPosition)
取得する結果セットの最初の位置を設定します. |
|
SelectStatement |
setFlushMode(FlushModeType flushMode)
この問い合わせを実行する際のフラッシュモードを設定します. |
|
SelectStatement |
setMaxResults(int maxResults)
取得する結果セットの最大件数を設定します. |
|
protected void |
setupParameters(Map<String,Object> parameters,
Query query)
Queryにパラメータをバインドします. |
|
SelectStatement |
where(ConditionalExpression... conditionalExpressions)
WHERE句にconditional_expressionを追加します. |
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected final SelectClause selectClause
protected final FromClause fromClause
protected final WhereClause whereClause
protected final GroupbyClause groupbyClause
protected final HavingClause havingClause
protected final OrderbyClause orderbyClause
protected Integer firstResult
Query.setFirstResult(int)protected Integer maxResults
Query.setMaxResults(int)protected FlushModeType flushMode
Query.setFlushMode(javax.persistence.FlushModeType)protected Map<String,Object> hints
Query.setHint(String, Object)| コンストラクタの詳細 |
|---|
public SelectStatementImpl()
public SelectStatementImpl(boolean distinct)
distinct - DISTINCTを指定する場合はtrue,それ以外の場合はfalse| メソッドの詳細 |
|---|
public SelectStatement select(String selectExpression)
SelectStatement の記述:
SelectStatement 内の selectselectExpression - select_expression
public SelectStatement select(SelectExpression selectExpression)
SelectStatement の記述:
SelectStatement 内の selectselectExpression - select_expression
public SelectStatement select(Object... selectExpressions)
SelectStatement の記述:
SelectStatement 内の selectselectExpressions - select_expression
public SelectStatement from(Class<?>... entityClasses)
SelectStatement の記述:
SelectStatement 内の fromentityClasses - identification_variable_declarationの並び
public SelectStatement from(Class<?> entityClass,
String alias)
SelectStatement の記述:
SelectStatement 内の fromentityClass - abstract_schema_namesalias - identification_variable
public SelectStatement from(IdentificationVariableDeclaration... declarations)
SelectStatement の記述:
SelectStatement 内の fromdeclarations - identification_variable_declarationの並び
public SelectStatement where(ConditionalExpression... conditionalExpressions)
SelectStatement の記述:
SelectStatement 内の whereconditionalExpressions - conditional_expressionの並び
public SelectStatement groupby(String... groupbyItems)
SelectStatement の記述:
SelectStatement 内の groupbygroupbyItems - groupby_itemの並び
public SelectStatement groupby(GroupbyItem... groupbyItems)
SelectStatement の記述:
SelectStatement 内の groupbygroupbyItems - groupby_itemの並び
public SelectStatement having(ConditionalExpression... conditionalExpressions)
SelectStatement の記述:
SelectStatement 内の havingconditionalExpressions - conditional_expressionの並び
public SelectStatement orderby(String... orderbyItems)
SelectStatement の記述:
SelectStatement 内の orderbyorderbyItems - orderby_itemの並び
public SelectStatement orderby(OrderbyItem... orderbyItems)
SelectStatement の記述:
SelectStatement 内の orderbyorderbyItems - orderby_itemの並び
public SelectStatement setFirstResult(int startPosition)
SelectStatement の記述: 位置は0から始まります.
SelectStatement 内の setFirstResultstartPosition - 取得する結果セットの最初の位置
Query.setFirstResult(int)public SelectStatement setMaxResults(int maxResults)
SelectStatement の記述:
SelectStatement 内の setMaxResultsmaxResults - 取得する結果セットの最大件数
Query.setMaxResults(int)public SelectStatement setFlushMode(FlushModeType flushMode)
SelectStatement の記述:
SelectStatement 内の setFlushModeflushMode - フラッシュモード
Query.setFlushMode(javax.persistence.FlushModeType)
public SelectStatement addHint(String name,
Object value)
SelectStatement の記述:
SelectStatement 内の addHintname - ヒントの名前value - ヒントの値
Query.setHint(String, Object)public <T> List<T> getResultList(EntityManager em)
SelectStatement の記述: Listで返します.
SelectStatement 内の getResultListT - 戻り値のリストの要素型em - エンティティ・マネージャ
Query.getResultList()public <T> T getSingleResult(EntityManager em)
SelectStatement の記述:
SelectStatement 内の getSingleResultT - 戻り値のリストの要素型em - エンティティ・マネージャ
Query.getSingleResult()public String getQueryString()
SelectStatement の記述:
SelectStatement 内の getQueryStringpublic Query getQuery(EntityManager em)
SelectStatement の記述: Queryを作成して返します.
SelectStatement 内の getQueryem - エンティティ・マネージャ
Query
protected Query createQuery(EntityManager em,
boolean fillParameter)
Queryを作成します.
em - エンティティ・マネージャfillParameter - Queryにパラメータをバインドするならtrue,それ以外の場合はfalse
Queryprotected CriteriaContext createContext()
protected void evaluate(CriteriaContext context)
context - JPQLを作成するためのコンテキスト情報
protected void setupParameters(Map<String,Object> parameters,
Query query)
Queryにパラメータをバインドします.
parameters - バインドパラメータのMapquery - Query
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||