|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.triactive.jdo.store.Query
com.triactive.jdo.store.TJDOSQLQuery
public class TJDOSQLQuery
A JDO query that uses the default JQOQL language.
Query
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class com.triactive.jdo.store.Query |
---|
Query.ResultObjectFactory |
Field Summary |
---|
Fields inherited from class com.triactive.jdo.store.Query |
---|
candidateClass, dba, filter, imports, isCompiled, ordering, parameterNames, parameters, parameterTypesByName, parsedImports, pm, queryResults, storeMgr, variableNames, variables, variableTypesByName |
Constructor Summary | |
---|---|
TJDOSQLQuery(PersistenceManager pm,
StoreManager storeMgr,
java.lang.String tjdoSqlText)
Constructs a new query instance having the same criteria as the given query. |
Method Summary | |
---|---|
void |
compile()
Verify the elements of the query and provide a hint to the query to prepare and optimize an execution plan. |
void |
declareVariables(java.lang.String variables)
Declare the unbound variables to be used in the query. |
protected void |
discardCompiled()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
executeWithMap(java.util.Map parameters)
Execute the query and return the filtered Collection. |
void |
setCandidates(java.util.Collection pcs)
Set the candidate Collection to query. |
void |
setCandidates(javax.jdo.Extent pcs)
Set the candidate Extent to query. |
void |
setFilter(java.lang.String filter)
Set the filter for the query. |
void |
setOrdering(java.lang.String ordering)
Set the ordering specification for the result Collection. |
Methods inherited from class com.triactive.jdo.store.Query |
---|
close, closeAll, declareImports, declareParameters, execute, execute, execute, execute, executeWithArray, getCandidateClass, getIgnoreCache, getPersistenceManager, getStoreManager, hashCode, isValidJavaIdentifier, resolveClassDeclaration, setClass, setIgnoreCache |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TJDOSQLQuery(PersistenceManager pm, StoreManager storeMgr, java.lang.String tjdoSqlText)
q
- the query from which to copy criteria.Method Detail |
---|
protected void discardCompiled()
discardCompiled
in class Query
public boolean equals(java.lang.Object obj)
equals
in class Query
public void setCandidates(javax.jdo.Extent pcs)
This implementation always throws a JDOUserException since this concept doesn't apply to TJDOSQL queries.
setCandidates
in interface javax.jdo.Query
setCandidates
in class Query
pcs
- the Candidate Extent.
javax.jdo.JDOUserException
- Always thrown.Query.setCandidates(javax.jdo.Extent)
public void setCandidates(java.util.Collection pcs)
This implementation always throws a JDOUserException since this concept doesn't apply to TJDOSQL queries.
setCandidates
in interface javax.jdo.Query
setCandidates
in class Query
pcs
- the Candidate collection.
javax.jdo.JDOUserException
- Always thrown.Query.setCandidates(java.util.Collection)
public void setFilter(java.lang.String filter)
This implementation always throws a JDOUserException since this concept doesn't apply to TJDOSQL queries.
setFilter
in interface javax.jdo.Query
setFilter
in class Query
filter
- the query filter.
javax.jdo.JDOUserException
- Always thrown.Query.setFilter(java.lang.String)
public void declareVariables(java.lang.String variables)
This implementation always throws a JDOUserException since this concept doesn't apply to TJDOSQL queries.
declareVariables
in interface javax.jdo.Query
declareVariables
in class Query
variables
- the variables separated by semicolons.
javax.jdo.JDOUserException
- Always thrown.Query.declareVariables(java.lang.String)
public void setOrdering(java.lang.String ordering)
This implementation always throws a JDOUserException since this concept doesn't apply to TJDOSQL queries.
setOrdering
in interface javax.jdo.Query
setOrdering
in class Query
ordering
- the ordering specification.
javax.jdo.JDOUserException
- Always thrown.Query.setOrdering(java.lang.String)
public void compile()
compile
in interface javax.jdo.Query
compile
in class Query
Query.compile()
public java.lang.Object executeWithMap(java.util.Map parameters)
executeWithMap
in interface javax.jdo.Query
executeWithMap
in class Query
parameters
- the Map containing all of the parameters.
Query.executeWithMap(Map)
,
Query.executeWithArray(Object[] parameters)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |