|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.qe.StandardQueryFactory<S>
public abstract class StandardQueryFactory<S extends Storable>
Builds and caches StandardQuery instances.
| Constructor Summary | |
|---|---|
protected |
StandardQueryFactory(Class<S> type)
|
protected |
StandardQueryFactory(Class<S> type,
boolean lazySetExecutor)
|
| Method Summary | |
|---|---|
void |
clearExecutors()
For each cached query, calls StandardQuery.clearExecutor(). |
protected abstract StandardQuery<S> |
createQuery(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints)
Implement this method to return query implementations. |
Class<S> |
getStorableType()
|
Query<S> |
query()
Returns a new or cached query that fetches everything. |
Query<S> |
query(Filter<S> filter)
Returns a new or cached query for the given filter. |
Query<S> |
query(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering)
Returns a new or cached query for the given query specification. |
Query<S> |
query(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints)
Returns a new or cached query for the given query specification. |
Query<S> |
query(Filter<S> filter,
OrderingList<S> ordering)
Returns a new or cached query for the given query specification. |
Query<S> |
query(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints)
Returns a new or cached query for the given query specification. |
Query<S> |
query(String filter)
Returns a new or cached query for the given filter. |
void |
resetExecutors()
For each cached query, calls StandardQuery.resetExecutor(). |
void |
setExecutors()
For each cached query, calls StandardQuery.setExecutor(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected StandardQueryFactory(Class<S> type)
protected StandardQueryFactory(Class<S> type,
boolean lazySetExecutor)
lazySetExecutor - by default, query executors are built and set
eagerly. Pass true to build and set executor on first query use.| Method Detail |
|---|
public Class<S> getStorableType()
getStorableType in interface QueryFactory<S extends Storable>
public Query<S> query()
throws FetchException
FetchException
public Query<S> query(String filter)
throws FetchException
IllegalArgumentException - if filter is null
FetchException
public Query<S> query(Filter<S> filter)
throws FetchException
IllegalArgumentException - if filter is null
FetchException
public Query<S> query(Filter<S> filter,
OrderingList<S> ordering)
throws FetchException
IllegalArgumentException - if filter is null
FetchException
public Query<S> query(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints)
throws FetchException
IllegalArgumentException - if filter is null
FetchException
public Query<S> query(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering)
throws FetchException
filter - optional filter object, defaults to open filter if nullvalues - optional values object, defaults to filter initial valuesordering - optional order-by properties
FetchException
public Query<S> query(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints)
throws FetchException
query in interface QueryFactory<S extends Storable>filter - optional filter object, defaults to open filter if nullvalues - optional values object, defaults to filter initial valuesordering - optional order-by propertieshints - optional hints
FetchException
public void setExecutors()
throws RepositoryException
StandardQuery.setExecutor().
RepositoryException
public void resetExecutors()
throws RepositoryException
StandardQuery.resetExecutor().
This call can be used to rebuild all cached query plans after the set of
available indexes has changed.
RepositoryExceptionpublic void clearExecutors()
StandardQuery.clearExecutor().
This call can be used to clear all cached query plans after the set of
available indexes has changed.
protected abstract StandardQuery<S> createQuery(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints)
throws FetchException
filter - optional filter object, defaults to open filter if nullvalues - optional values object, defaults to filter initial valuesordering - optional order-by propertieshints - optional hints
FetchException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||