|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.triactive.jdo.store.query.Query
com.triactive.jdo.store.query.TjdoSqlQuery
A JDO query that uses raw SQL, possibly with embedded macros.
Query,
Serialized Form| Field Summary |
| Fields inherited from class com.triactive.jdo.store.query.Query |
candidateClass, dba, extensions, filter, grouping, imports, isPart1Compiled, ordering, parameterNames, parameters, parameterTypesByName, parsedImports, pm, queryResults, result, resultClass, storeMgr, unique, variableNames, variables, variableTypesByName |
| Constructor Summary | |
TjdoSqlQuery(PersistenceManager pm,
java.lang.String tjdoSqlText)
Constructs a new query instance having the same criteria as the given query. |
|
| Method Summary | |
void |
declareVariables(java.lang.String variables)
Declare the unbound variables to be used in the query. |
protected void |
discardCompiled()
|
protected boolean |
effectiveUniqueSetting()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
executeWithMap(java.util.Map parameters)
Execute the query and return the filtered Collection. |
protected ResultExpression |
getResultExpression(java.sql.ResultSetMetaData rsmd)
|
protected StatementText |
getStatementText()
|
int |
hashCode()
|
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 |
setGrouping(java.lang.String grouping)
Set the grouping expressions, optionally including a "having" clause. |
void |
setOrdering(java.lang.String ordering)
Set the ordering specification for the result Collection. |
void |
setResult(java.lang.String result)
Specifies what type of data this query should return. |
| Methods inherited from class com.triactive.jdo.store.query.Query |
addExtension, close, closeAll, compile, declareImports, declareParameters, effectiveFetchSize, effectiveResultSetType, execute, execute, execute, execute, executeWithArray, getCandidateClass, getIgnoreCache, getPersistenceManager, getStoreManager, isKnownExtensionKey, isValidJavaIdentifier, resolveClassDeclaration, setClass, setExtensions, setIgnoreCache, setResultClass, setUnique |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TjdoSqlQuery(PersistenceManager pm,
java.lang.String tjdoSqlText)
pm - the associated persistence manager for this querytjdoSqlText - the SQL text of the query| Method Detail |
protected void discardCompiled()
discardCompiled in class Querypublic int hashCode()
hashCode in class Querypublic boolean equals(java.lang.Object obj)
equals in class Querypublic 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.QuerysetCandidates in class Querypcs - 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.QuerysetCandidates in class Querypcs - 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.QuerysetFilter in class Queryfilter - 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.QuerydeclareVariables in class Queryvariables - 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.QuerysetOrdering in class Queryordering - the ordering specification.
javax.jdo.JDOUserException - Always thrown.Query.setOrdering(java.lang.String)public void setResult(java.lang.String result)
This implementation always throws a JDOUserException since this concept doesn't apply to TJDOSQL queries.
setResult in interface QuerysetResult in class Queryresult - a comma-delimited list of expressions (fields, functions on fields,
or aggregate functions) to return from this query.
javax.jdo.JDOUserException - Always thrown.Query.setResult(java.lang.String)public void setGrouping(java.lang.String grouping)
This implementation always throws a JDOUserException since this concept doesn't apply to TJDOSQL queries.
setGrouping in interface QuerysetGrouping in class Querygrouping - a comma-delimited list of expressions, optionally followed by the
"having" keyword and a boolean expression.
javax.jdo.JDOUserException - Always thrown.Query.setGrouping(java.lang.String)public java.lang.Object executeWithMap(java.util.Map parameters)
executeWithMap in interface javax.jdo.QueryexecuteWithMap in class Queryparameters - the Map containing all of the parameters.
Query.executeWithMap(Map),
Query.executeWithArray(Object[] parameters)protected StatementText getStatementText()
getStatementText in class Query
protected ResultExpression getResultExpression(java.sql.ResultSetMetaData rsmd)
throws java.sql.SQLException
getResultExpression in class Queryjava.sql.SQLExceptionprotected boolean effectiveUniqueSetting()
effectiveUniqueSetting in class Query
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||