|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.kodo.query.QueryImpl
Abstract implementation of the Query interface.
| Constructor Summary | |
QueryImpl(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm)
Construct a query managed by the given persistence manager. |
|
QueryImpl(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
java.lang.Object copy)
Construct a query managed by the given persistence manager, copying the candidate class, filter, parameters, variables, ordering, and options from the given query. |
|
| Method Summary | |
java.lang.Class |
classForName(java.lang.String name)
Resolve the type represented by the given class name. |
void |
close(java.lang.Object queryResult)
Close the given query result. |
void |
closeAll()
Close all query results. |
void |
compile()
|
void |
declareImports(java.lang.String imports)
|
void |
declareParameters(java.lang.String parameters)
|
void |
declareVariables(java.lang.String variables)
|
java.lang.Object |
execute()
|
java.lang.Object |
execute(java.lang.Object p1)
|
java.lang.Object |
execute(java.lang.Object p1,
java.lang.Object p2)
|
java.lang.Object |
execute(java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
|
protected abstract com.solarmetric.rd.rop.ResultList |
executeQuery(com.solarmetric.rd.kodo.meta.ClassMetaData type,
boolean subclasses,
com.solarmetric.rd.kodo.query.ExpressionFactory factory,
com.solarmetric.rd.kodo.query.Expression exp,
java.util.Map params)
Execute the given expression against the given candidate extent. |
java.lang.Object |
executeWithArray(java.lang.Object[] params)
|
java.lang.Object |
executeWithMap(java.util.Map params)
|
protected java.util.Collection |
getCandidateCollection()
Make the candidate collection available to subclasses. |
protected javax.jdo.Extent |
getCandidateExtent()
Make the candidate extent available to subclasses. |
protected abstract com.solarmetric.rd.kodo.query.ExpressionFactory |
getExpressionFactory(com.solarmetric.rd.kodo.meta.ClassMetaData type)
Return an ExpressionFactory to use to create an expression to
be executed against an extent. |
int |
getFetchBatchSize()
Return the fetch batch size for large result set support on this query; defaults to the com.solarmetric.kodo.FetchBatchSize
setting. |
int |
getFetchThreshold()
Return the fetch threshold for large result set support on this query; defaults to the com.solarmetric.kodo.FetchThreshold
setting. |
com.solarmetric.rd.kodo.query.FilterListener |
getFilterListener(java.lang.String tag)
Return the filter listener for the given tag, or null if none. |
boolean |
getIgnoreCache()
|
java.lang.Class |
getParameterClass(java.lang.String name)
Return the type of the given parameter, or null if the name does not represent a variable declared in this Query. |
javax.jdo.PersistenceManager |
getPersistenceManager()
|
boolean |
getSortDirection(int orderingIndex)
Resolves the direction of the sort for the ordering declaration at the given index. |
protected abstract com.solarmetric.rd.kodo.query.FilterListener |
getStandardFilterListener(java.lang.String tag)
Return the standard filter extension for the given tag, or null if none. |
java.lang.Class |
getVariableClass(java.lang.String name)
Return the type of the given variable, or null if the name does not represent a variable declared in this Query. |
boolean |
isParameter(java.lang.String name)
Return true if the given name represents a declared parameter. |
boolean |
isVariable(java.lang.String name)
Return true if the given name represents a declared variable. |
protected void |
lock()
Synchronizes on an internal lock if the Multithreaded
flat is set in the persistence manager. |
void |
registerListener(com.solarmetric.rd.kodo.query.FilterListener listener)
Register a filter listener for this particular query. |
void |
setCandidates(java.util.Collection candidateCollection)
|
void |
setCandidates(javax.jdo.Extent candidateExtent)
|
void |
setClass(java.lang.Class candidateClass)
|
void |
setFetchBatchSize(int fetchBatchSize)
Set the fetch batch size for large result set support on this query; defaults to the com.solarmetric.kodo.FetchBatchSize
setting. |
void |
setFetchThreshold(int fetchThreshold)
Set the fetch threshold for large result set support on this query; defaults to the com.solarmetric.kodo.FetchThreshold
setting. |
void |
setFilter(java.lang.String filter)
|
void |
setIgnoreCache(boolean flag)
|
void |
setOrdering(java.lang.String ordering)
|
java.lang.String |
toString()
|
protected void |
unlock()
Releases the internal lock. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QueryImpl(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm)
public QueryImpl(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
java.lang.Object copy)
| Method Detail |
public int getFetchThreshold()
com.solarmetric.kodo.FetchThreshold
setting.
public void setFetchThreshold(int fetchThreshold)
com.solarmetric.kodo.FetchThreshold
setting.
public int getFetchBatchSize()
com.solarmetric.kodo.FetchBatchSize
setting. Note that this property will be ignored for in-memory
queries, and possibly under some data stores.
public void setFetchBatchSize(int fetchBatchSize)
com.solarmetric.kodo.FetchBatchSize
setting. Note that this property will be ignored for in-memory
queries, and possibly under some data stores.
public javax.jdo.PersistenceManager getPersistenceManager()
getPersistenceManager in interface javax.jdo.Querypublic void setClass(java.lang.Class candidateClass)
setClass in interface javax.jdo.Querypublic void setCandidates(java.util.Collection candidateCollection)
setCandidates in interface javax.jdo.Querypublic void setCandidates(javax.jdo.Extent candidateExtent)
setCandidates in interface javax.jdo.Querypublic void setFilter(java.lang.String filter)
setFilter in interface javax.jdo.Querypublic void declareImports(java.lang.String imports)
declareImports in interface javax.jdo.Querypublic void declareVariables(java.lang.String variables)
declareVariables in interface javax.jdo.Querypublic void declareParameters(java.lang.String parameters)
declareParameters in interface javax.jdo.Querypublic void setOrdering(java.lang.String ordering)
setOrdering in interface javax.jdo.Querypublic void setIgnoreCache(boolean flag)
setIgnoreCache in interface javax.jdo.Querypublic boolean getIgnoreCache()
getIgnoreCache in interface javax.jdo.Querypublic void compile()
compile in interface javax.jdo.Querypublic java.lang.Object execute()
execute in interface javax.jdo.Querypublic java.lang.Object execute(java.lang.Object p1)
execute in interface javax.jdo.Query
public java.lang.Object execute(java.lang.Object p1,
java.lang.Object p2)
execute in interface javax.jdo.Query
public java.lang.Object execute(java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
execute in interface javax.jdo.Querypublic java.lang.Object executeWithArray(java.lang.Object[] params)
executeWithArray in interface javax.jdo.Querypublic java.lang.Object executeWithMap(java.util.Map params)
executeWithMap in interface javax.jdo.Querypublic void closeAll()
closeAll in interface javax.jdo.Querypublic void close(java.lang.Object queryResult)
close in interface javax.jdo.Querypublic void registerListener(com.solarmetric.rd.kodo.query.FilterListener listener)
protected abstract com.solarmetric.rd.rop.ResultList executeQuery(com.solarmetric.rd.kodo.meta.ClassMetaData type,
boolean subclasses,
com.solarmetric.rd.kodo.query.ExpressionFactory factory,
com.solarmetric.rd.kodo.query.Expression exp,
java.util.Map params)
type - the base type the query should matchsubclasses - true if subclasses should be included in the
resultsfactory - the expression factory used to compile the
expressionexp - the compiled expression for the parsed queryparams - map of parameter names to values
protected abstract com.solarmetric.rd.kodo.query.ExpressionFactory getExpressionFactory(com.solarmetric.rd.kodo.meta.ClassMetaData type)
ExpressionFactory to use to create an expression to
be executed against an extent. Each factory will be used to compile
one filter only.
protected abstract com.solarmetric.rd.kodo.query.FilterListener getStandardFilterListener(java.lang.String tag)
com.solarmetric.kodo.conf.JDOConfiguration.
public boolean getSortDirection(int orderingIndex)
com.solarmetric.rd.kodo.query.Resolver
getSortDirection in interface com.solarmetric.rd.kodo.query.Resolverpublic boolean isParameter(java.lang.String name)
com.solarmetric.rd.kodo.query.Resolver
isParameter in interface com.solarmetric.rd.kodo.query.Resolverpublic boolean isVariable(java.lang.String name)
com.solarmetric.rd.kodo.query.Resolver
isVariable in interface com.solarmetric.rd.kodo.query.Resolverpublic java.lang.Class getParameterClass(java.lang.String name)
com.solarmetric.rd.kodo.query.Resolver
getParameterClass in interface com.solarmetric.rd.kodo.query.Resolverpublic java.lang.Class getVariableClass(java.lang.String name)
com.solarmetric.rd.kodo.query.Resolver
getVariableClass in interface com.solarmetric.rd.kodo.query.Resolverpublic java.lang.Class classForName(java.lang.String name)
com.solarmetric.rd.kodo.query.Resolver
classForName in interface com.solarmetric.rd.kodo.query.Resolverpublic com.solarmetric.rd.kodo.query.FilterListener getFilterListener(java.lang.String tag)
com.solarmetric.rd.kodo.query.Resolver
getFilterListener in interface com.solarmetric.rd.kodo.query.Resolverprotected javax.jdo.Extent getCandidateExtent()
protected java.util.Collection getCandidateCollection()
protected void lock()
Multithreaded
flat is set in the persistence manager. Make sure to call
unlock() in a finally clause of the same method.
protected void unlock()
public java.lang.String toString()
toString in class java.lang.Object
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||