org.jpox.store.rdbms.query
Class JPOXSQLQuery
java.lang.Object
org.jpox.store.query.Query
org.jpox.store.rdbms.query.BaseSQLQuery
org.jpox.store.rdbms.query.JPOXSQLQuery
- All Implemented Interfaces:
- javax.jdo.Query, java.io.Serializable
- public class JPOXSQLQuery
- extends BaseSQLQuery
A Query using SQL, and allowing specification of parameter names and imports,
known internally as "JPOXSQL", an extension to JDO.
- Version:
- $Revision: 1.2 $
- See Also:
Query
,
Serialized Form
Fields inherited from class org.jpox.store.query.Query |
candidateClass, candidateClassName, dba, extensions, fetchPlan, filter, fromInclNo, grouping, ignoreCache, imports, isCompiled, isPreCompile, LOCALISER, ordering, parameterNames, parameters, parameterTypesByName, parsedImports, pm, queryResults, range, result, resultClass, resultClassName, subclasses, toExclNo, unique, unmodifiable, variableNames, variables, variableTypesByName |
Fields inherited from interface javax.jdo.Query |
JDOQL, SQL |
Method Summary |
protected void |
discardCompiled()
Utility to discard any compiled query. |
boolean |
equals(java.lang.Object obj)
Equality operator |
protected void |
generateQueryStatement()
Method to perform any necessary pre-processing on the users query statement
before we execute it. |
java.util.Collection |
performExecute(java.util.Map parameters)
Execute the query and return the filtered QueryResult. |
Methods inherited from class org.jpox.store.rdbms.query.BaseSQLQuery |
compile, declareVariables, getQueryResultForNoCandidateClass, performDeletePersistentAll, setCandidates, setCandidates, setFilter, setGrouping, setOrdering, setRange, setResult, setSubclasses, shouldReturnSingleRow |
Methods inherited from class org.jpox.store.query.Query |
addExtension, assertIsModifiable, close, closeAll, declareImports, declareParameters, deletePersistentAll, deletePersistentAll, deletePersistentAll, execute, execute, execute, execute, executeQuery, executeWithArray, executeWithMap, getCandidateClass, getCandidateLoader, getExtension, getFetchPlan, getIgnoreCache, getPersistenceManager, getResultSetConcurrency, getResultSetType, getStatement, getStatement, getStoreManager, hashCode, isSubclasses, isUnmodifiable, prepareStatementForExecution, resolveClassDeclaration, setCandidateClassName, setClass, setExtensions, setIgnoreCache, setRange, setRange, setResultClass, setResultClassName, setUnique, setUnmodifiable |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
parameterOccurrences
protected transient java.util.List parameterOccurrences
JPOXSQLQuery
public JPOXSQLQuery(PersistenceManager pm,
JPOXSQLQuery query)
- Constructor for a new query using the existing query.
- Parameters:
pm
- Persistence Managerquery
- The existing query
JPOXSQLQuery
public JPOXSQLQuery(PersistenceManager pm,
java.lang.String sql_text)
- Constructs a new query instance having the same criteria as the given
query.
- Parameters:
pm
- The PersistenceManagersql_text
- The JPOX SQL query string
discardCompiled
protected void discardCompiled()
- Description copied from class:
BaseSQLQuery
- Utility to discard any compiled query.
- Overrides:
discardCompiled
in class BaseSQLQuery
- See Also:
Query.discardCompiled()
equals
public boolean equals(java.lang.Object obj)
- Equality operator
- Overrides:
equals
in class Query
- Parameters:
obj
- The object to compare against
- Returns:
- Whether they are equal
generateQueryStatement
protected void generateQueryStatement()
- Method to perform any necessary pre-processing on the users query statement
before we execute it.
- Specified by:
generateQueryStatement
in class BaseSQLQuery
performExecute
public java.util.Collection performExecute(java.util.Map parameters)
- Execute the query and return the filtered QueryResult.
- Specified by:
performExecute
in class BaseSQLQuery
- Parameters:
parameters
- the Map containing all of the parameters.
- Returns:
- the filtered QueryResult
Copyright © -2007 . All Rights Reserved.