|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kodo.query.DelegatingKodoQuerySPI
| Field Summary | |
protected KodoQuerySPI |
_delegate
|
| Fields inherited from interface kodo.query.KodoQuery |
FLUSH_FALSE, FLUSH_TRUE, FLUSH_WITH_CONNECTION |
| Constructor Summary | |
protected |
DelegatingKodoQuerySPI(KodoQuerySPI delegate)
|
| Method Summary | |
void |
addAggregateListener(AggregateListener arg)
Register an aggregate listener for the query. |
void |
addExtension(String arg0,
Object arg1)
JDO 2.0 Preview. |
void |
addFilterListener(FilterListener arg)
Register a filter listener for the query. |
void |
close(Object arg)
|
void |
closeAll()
|
void |
closeResources()
Close any results that are consuming resources. |
void |
compile()
|
void |
declareImports(String arg)
|
void |
declareParameters(String arg)
|
void |
declareVariables(String arg)
|
Object |
execute()
|
Object |
execute(Object arg)
|
Object |
execute(Object arg0,
Object arg1)
|
Object |
execute(Object arg0,
Object arg1,
Object arg2)
|
Object |
executeWithArray(Object[] arg)
|
Object |
executeWithMap(Map arg)
|
ClassMetaData[] |
getAccessPathMetaDatas()
Return the classes that affect this query. |
Collection |
getAggregateListeners()
Return the aggregate listeners added to this query, or empty collection if none. |
String |
getAlias()
When we're returning standard candidate instances rather than a projection or aggregate, return the alias for the instances in case a result class is set. |
String[] |
getAliases()
Return the aliases for the result expressions. |
boolean[] |
getAscending()
Return wheher each ordering is ascending. |
Class |
getCandidateClass()
Return the class of the objects that this query will return, or null if this information is not available /
not relevant. |
Collection |
getCandidateCollection()
Return the candidate collection, or null if an
extent was specified instead of a collection. |
KodoExtent |
getCandidateExtent()
Return the candidate extent, or null if a
collection was specified instead of an extent. |
String[] |
getDataStoreActions(Map arg)
Returns a description of the commands that will be sent to the datastore in order to execute this query. |
long |
getEndIndex()
Return the 0-based exclusive end index for the returned results, or Long.MAX_VALUE for no limit. |
FetchConfiguration |
getFetchConfiguration()
Return the (mutable) fetch configuration for this query. |
String |
getFilter()
Return the filter that this query has been configured with. |
Collection |
getFilterListeners()
Return the filter listeners added to this query, or empty collection if none. |
String |
getGrouping()
Return the grouping expression for this query. |
String[] |
getGroupingClauses()
Return the grouping expressions. |
String |
getHaving()
Return the having clause. |
boolean |
getIgnoreCache()
|
String[] |
getImportPackages()
Return the import packages. |
String |
getImports()
Return the import declaration. |
String |
getLanguage()
Return the language of this query. |
String |
getOrdering()
Return the ordering expression that this query was configured with. |
String[] |
getOrderingClauses()
Return the ordering criteria. |
String |
getParameters()
Return the declared parameters. |
com.solarmetric.apache.commons.collections.map.LinkedMap |
getParameterTypes()
Return a map of parameter name to type for this query. |
PersistenceManager |
getPersistenceManager()
|
String |
getQueryString()
Return a single-string representation of the query, if applicable. |
String |
getResult()
Return the result expression set for this query. |
Class |
getResultClass()
Returns the result class that has been set through setResultClass(java.lang.Class), or null if none. |
String[] |
getResultClauses()
Return the result expressions. |
ResultPackerProvider |
getResultPackerProvider()
Returns the ResultPackerProvider currently in use by this
query. |
Class[] |
getResultTypes()
Return the type of each result clause. |
long |
getStartIndex()
Return the 0-based start index for the returned results. |
String |
getVariables()
Return the declared variables. |
Map |
getVariableTypes()
Return a map of variable name to type for this query. |
boolean |
hasSubclasses()
Whether query results will include subclasses of the candidate class. |
boolean |
isAggregate()
Return true if the query is an aggregate. |
boolean |
isDistinct()
Whether the result specifies that this is a distinct query. |
boolean |
isQueryStringPreferred()
Return true if the preferred style of query representation is with a single query string. |
boolean |
isUnique()
The unique flag. |
void |
lock()
Synchronize on the query's internal lock. |
void |
removeAggregateListener(AggregateListener arg)
Remove an aggregate listener from the query. |
void |
removeFilterListener(FilterListener arg)
Remove a filter listener from the query. |
void |
setCandidates(Collection arg)
|
void |
setCandidates(Extent arg)
|
void |
setClass(Class arg)
|
void |
setExtensions(Map arg)
JDO 2.0 Preview. |
void |
setFilter(String arg)
|
void |
setGrouping(String arg)
JDO 2.0 Preview. |
void |
setIgnoreCache(boolean arg)
|
void |
setOrdering(String arg)
|
void |
setQuery(Object arg)
Fill in query state from a query string or template. |
void |
setRange(long arg0,
long arg1)
JDO 2.0 Preview. |
void |
setResult(String arg)
JDO 2.0 Preview. |
void |
setResultClass(Class arg)
JDO 2.0 Preview. |
void |
setResultPackerProvider(ResultPackerProvider provider)
Sets the ResultPackerProvider that this query should use. |
void |
setUnique(boolean arg)
JDO 2.0 Preview. |
void |
unlock()
Unlock the query's internal lock. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final KodoQuerySPI _delegate
| Constructor Detail |
protected DelegatingKodoQuerySPI(KodoQuerySPI delegate)
| Method Detail |
public void setClass(Class arg)
setClass in interface Querypublic void setCandidates(Extent arg)
setCandidates in interface Querypublic void setCandidates(Collection arg)
setCandidates in interface Querypublic void setFilter(String arg)
setFilter in interface Querypublic void declareImports(String arg)
declareImports in interface Querypublic void declareParameters(String arg)
declareParameters in interface Querypublic void declareVariables(String arg)
declareVariables in interface Querypublic void setOrdering(String arg)
setOrdering in interface Querypublic void setIgnoreCache(boolean arg)
setIgnoreCache in interface Querypublic boolean getIgnoreCache()
getIgnoreCache in interface Querypublic void compile()
compile in interface Querypublic Object execute()
execute in interface Querypublic Object execute(Object arg)
execute in interface Query
public Object execute(Object arg0,
Object arg1)
execute in interface Query
public Object execute(Object arg0,
Object arg1,
Object arg2)
execute in interface Querypublic Object executeWithMap(Map arg)
executeWithMap in interface Querypublic Object executeWithArray(Object[] arg)
executeWithArray in interface Querypublic PersistenceManager getPersistenceManager()
getPersistenceManager in interface Querypublic void close(Object arg)
close in interface Querypublic void closeAll()
closeAll in interface Querypublic void closeResources()
KodoQuerySPIcloseResources in interface KodoQuerySPIpublic String getLanguage()
KodoQuerygetLanguage in interface KodoQuerypublic FetchConfiguration getFetchConfiguration()
KodoQuerygetFetchConfiguration in interface KodoQuerypublic Collection getFilterListeners()
KodoQuerygetFilterListeners in interface KodoQuerypublic void addFilterListener(FilterListener arg)
KodoQueryaddFilterListener in interface KodoQuerypublic void removeFilterListener(FilterListener arg)
KodoQueryremoveFilterListener in interface KodoQuerypublic Collection getAggregateListeners()
KodoQuerygetAggregateListeners in interface KodoQuerypublic void addAggregateListener(AggregateListener arg)
KodoQueryaddAggregateListener in interface KodoQuerypublic void removeAggregateListener(AggregateListener arg)
KodoQueryremoveAggregateListener in interface KodoQuerypublic String[] getDataStoreActions(Map arg)
KodoQuerygetDataStoreActions in interface KodoQuerykodo.query.KodoQueryparams - the named parameter map for the query invocationpublic KodoExtent getCandidateExtent()
KodoQuerynull if a
collection was specified instead of an extent.getCandidateExtent in interface KodoQuerypublic Collection getCandidateCollection()
KodoQuerynull if an
extent was specified instead of a collection.getCandidateCollection in interface KodoQuerypublic Class getCandidateClass()
KodoQuerynull if this information is not available /
not relevant.getCandidateClass in interface KodoQuerypublic boolean hasSubclasses()
KodoQueryhasSubclasses in interface KodoQuerypublic String getQueryString()
KodoQuerygetQueryString in interface KodoQuerypublic String getFilter()
KodoQuerygetFilter in interface KodoQuerypublic String getOrdering()
KodoQuerygetOrdering in interface KodoQuerypublic String getImports()
KodoQuerygetImports in interface KodoQuerypublic String getParameters()
KodoQuerygetParameters in interface KodoQuerypublic String getVariables()
KodoQuerygetVariables in interface KodoQuerypublic void setUnique(boolean arg)
KodoQuerysetUnique in interface KodoQuerypublic boolean isUnique()
KodoQueryisUnique in interface KodoQuerypublic void setResult(String arg)
KodoQuerynull, this
query will return a list of the query's candidate class. Otherwise,
this query will return aggregate function results and / or
individual field values (projections).setResult in interface KodoQuerykodo.query.KodoQueryresult - optional "distinct" keyword, followed by a
comma-delimited list of fields, functions on fields,
or aggregate functions to return from this querypublic String getResult()
KodoQuerygetResult in interface KodoQuerypublic void setResultClass(Class arg)
KodoQueryQuery.execute() or one of its siblings. The
behavior of this method depends the nature of the query being executed.
In particular, if used in conjunction with KodoQuery.setResult(java.lang.String),
the argument to this method should be
Object[].class, a class with bean-like setters
for each of the items listed in the result specification, or
a class with a method called put with two
Object arguments.setResultClass in interface KodoQuerypublic Class getResultClass()
KodoQueryKodoQuery.setResultClass(java.lang.Class), or null if none.getResultClass in interface KodoQuerypublic void setGrouping(String arg)
KodoQuerysetGrouping in interface KodoQuerykodo.query.KodoQuerygroup - a comma-delimited list of expressions, optionally
followed by the "having" keyword and a boolean
expressionpublic String getGrouping()
KodoQuerygetGrouping in interface KodoQuery
public void setRange(long arg0,
long arg1)
KodoQuerysetRange in interface KodoQuerykodo.query.KodoQuerystart - 0-based inclusive start indexend - 0-based exclusive end index, or
Long.MAX_VALUE for no limitpublic long getStartIndex()
KodoQuerygetStartIndex in interface KodoQuerypublic long getEndIndex()
KodoQueryLong.MAX_VALUE for no limit.getEndIndex in interface KodoQuery
public void addExtension(String arg0,
Object arg1)
KodoQuerykodo.FilterListener: Register a filter listener for
this query; analogous to invoking KodoQuery.addFilterListener(kodo.query.FilterListener).kodo.AggregateListener: Register an aggregate listener
for this query; analogous to invoking
KodoQuery.addAggregateListener(kodo.query.AggregateListener).kodo.FetchPlan.<property>: Set the
bean property of this query's fetch plan to the
supplied value.addExtension in interface KodoQuerypublic void setExtensions(Map arg)
KodoQuerysetExtensions in interface KodoQuerykodo.query.KodoQueryKodoQuery.addExtension(java.lang.String, java.lang.Object)public void setQuery(Object arg)
KodoQuerySPIsetQuery in interface KodoQuerySPIpublic boolean isQueryStringPreferred()
KodoQuerySPIisQueryStringPreferred in interface KodoQuerySPIpublic boolean isAggregate()
KodoQuerySPIisAggregate in interface KodoQuerySPIpublic ClassMetaData[] getAccessPathMetaDatas()
KodoQuerySPIgetAccessPathMetaDatas in interface KodoQuerySPIpublic String[] getImportPackages()
KodoQuerySPIgetImportPackages in interface KodoQuerySPIpublic com.solarmetric.apache.commons.collections.map.LinkedMap getParameterTypes()
KodoQuerySPIgetParameterTypes in interface KodoQuerySPIpublic Map getVariableTypes()
KodoQuerySPIgetVariableTypes in interface KodoQuerySPIpublic String[] getOrderingClauses()
KodoQuerySPIgetOrderingClauses in interface KodoQuerySPIpublic boolean[] getAscending()
KodoQuerySPIgetAscending in interface KodoQuerySPIpublic String[] getResultClauses()
KodoQuerySPIgetResultClauses in interface KodoQuerySPIpublic Class[] getResultTypes()
KodoQuerySPIgetResultTypes in interface KodoQuerySPIpublic String[] getAliases()
KodoQuerySPIgetAliases in interface KodoQuerySPIpublic String getAlias()
KodoQuerySPIgetAlias in interface KodoQuerySPIpublic boolean isDistinct()
KodoQuerySPIisDistinct in interface KodoQuerySPIpublic String[] getGroupingClauses()
KodoQuerySPIgetGroupingClauses in interface KodoQuerySPIpublic String getHaving()
KodoQuerySPIgetHaving in interface KodoQuerySPIpublic void lock()
KodoQuerySPIlock in interface KodoQuerySPIpublic void unlock()
KodoQuerySPIunlock in interface KodoQuerySPIpublic void setResultPackerProvider(ResultPackerProvider provider)
KodoQuerySPIResultPackerProvider that this query should use.setResultPackerProvider in interface KodoQuerySPIpublic ResultPackerProvider getResultPackerProvider()
KodoQuerySPIResultPackerProvider currently in use by this
query.getResultPackerProvider in interface KodoQuerySPI
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||