| |
|
| java.lang.Object org.jpox.store.query.Query org.jpox.store.query.AbstractJavaQuery org.jpox.store.query.AbstractJPQLQuery
AbstractJPQLQuery | abstract public class AbstractJPQLQuery extends AbstractJavaQuery (Code) | | Abstract representation of a JPQL query used by JPOX.
The query can be specified via method calls, or via a single-string form.
See Also: Query version: $Revision: 1.4 $ |
Method Summary | |
public String | getSingleStringQuery() Method to take the defined parameters for the query and form a single string. | public String | getUpdate() Accessor for the UPDATE clause of the JPQL query. | public static boolean | isKeyword(String name) Convenience method returning if the supplied name is a keyword for this query language. | public static boolean | isReservedIdentifier(String name) Convenience method returning if the supplied name is a reserved identifier for this query language. | protected long | performDeletePersistentAll(Map parameters) Execute the query to delete persistent objects.
Parameters: parameters - the Map containing all of the parameters. | public Class | resolveClassDeclaration(String classDecl) Utility to resolve the declaration to a particular class. | public void | setUpdate(String update) Set the UPDATE clause of the query. |
RESERVED_IDENTIFIERS | final public static String[] RESERVED_IDENTIFIERS(Code) | | List of identifier names not allowed by JPQL.
|
SINGLE_STRING_KEYWORDS | final public static String[] SINGLE_STRING_KEYWORDS(Code) | | Keywords used in single-string JPQL. Uppercase variants specified here, but JPQL allows case-insensitive.
|
update | protected transient String update(Code) | | UPDATE clause of a JPQL query.
|
AbstractJPQLQuery | public AbstractJPQLQuery(ObjectManager om)(Code) | | Constructor.
Parameters: om - ObjectManager |
getSingleStringQuery | public String getSingleStringQuery()(Code) | | Method to take the defined parameters for the query and form a single string.
This is used to print out the query for logging.
The single string |
getUpdate | public String getUpdate()(Code) | | Accessor for the UPDATE clause of the JPQL query.
Update clause |
isKeyword | public static boolean isKeyword(String name)(Code) | | Convenience method returning if the supplied name is a keyword for this query language.
Parameters: name - Name to check Whether it is a keyword |
isReservedIdentifier | public static boolean isReservedIdentifier(String name)(Code) | | Convenience method returning if the supplied name is a reserved identifier for this query language.
Parameters: name - Name to check Whether it is a reserved identifier |
performDeletePersistentAll | protected long performDeletePersistentAll(Map parameters)(Code) | | Execute the query to delete persistent objects.
Parameters: parameters - the Map containing all of the parameters. the number of deleted objects. |
resolveClassDeclaration | public Class resolveClassDeclaration(String classDecl)(Code) | | Utility to resolve the declaration to a particular class.
Takes the passed in name, together with the defined import declarations and returns the
class represented by the declaration.
Parameters: classDecl - The declaration The class it resolves to (if any) throws: JPOXUserException - Thrown if the class cannot be resolved. |
setUpdate | public void setUpdate(String update)(Code) | | Set the UPDATE clause of the query.
Parameters: update - the update clause |
Methods inherited from org.jpox.store.query.Query | public void addExtension(String key, Object value)(Code)(Java Doc) public void addSubquery(Query sub, String variableDecl, String candidateExpr, Map paramMap)(Code)(Java Doc) protected boolean applyRangeChecks()(Code)(Java Doc) protected void assertIsModifiable()(Code)(Java Doc) public void close(Object queryResult)(Code)(Java Doc) public void closeAll()(Code)(Java Doc) public void compile()(Code)(Java Doc) abstract protected void compileInternal(boolean forExecute, Map parameterValues)(Code)(Java Doc) public void declareExplicitParameters(String parameters)(Code)(Java Doc) public void declareExplicitVariables(String variables)(Code)(Java Doc) public void declareImports(String imports)(Code)(Java Doc) public long deletePersistentAll()(Code)(Java Doc) public long deletePersistentAll(Object[] parameters)(Code)(Java Doc) public long deletePersistentAll(Map parameters)(Code)(Java Doc) protected void discardCompiled()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Object execute()(Code)(Java Doc) public Object execute(Object p1)(Code)(Java Doc) public Object execute(Object p1, Object p2)(Code)(Java Doc) public Object execute(Object p1, Object p2, Object p3)(Code)(Java Doc) public Object executeWithArray(Object[] parameterValues)(Code)(Java Doc) public Object executeWithMap(Map parameters)(Code)(Java Doc) public Class getCandidateClass()(Code)(Java Doc) public String getCandidateClassName()(Code)(Java Doc) public String getExplicitParameters()(Code)(Java Doc) public String getExplicitVariables()(Code)(Java Doc) public Object getExtension(String key)(Code)(Java Doc) public FetchPlan getFetchPlan()(Code)(Java Doc) public String getFilter()(Code)(Java Doc) public String getFrom()(Code)(Java Doc) public String getGrouping()(Code)(Java Doc) public String getHaving()(Code)(Java Doc) public boolean getIgnoreCache()(Code)(Java Doc) public String getImports()(Code)(Java Doc) public ObjectManager getObjectManager()(Code)(Java Doc) public String getOrdering()(Code)(Java Doc) protected Imports getParsedImports()(Code)(Java Doc) public String getRange()(Code)(Java Doc) public long getRangeFromIncl()(Code)(Java Doc) public long getRangeToExcl()(Code)(Java Doc) public String getResult()(Code)(Java Doc) public Class getResultClass()(Code)(Java Doc) public String getResultClassName()(Code)(Java Doc) public StoreManager getStoreManager()(Code)(Java Doc) public SubqueryDefinition getSubqueryForVariable(String variableName)(Code)(Java Doc) public short getType()(Code)(Java Doc) public boolean hasSubqueryForVariable(String variableName)(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isCompiled()(Code)(Java Doc) public boolean isSubclasses()(Code)(Java Doc) public boolean isUnique()(Code)(Java Doc) public boolean isUnmodifiable()(Code)(Java Doc) abstract protected long performDeletePersistentAll(Map parameters)(Code)(Java Doc) abstract protected Object performExecute(Map parameters)(Code)(Java Doc) protected void prepareDatastore()(Code)(Java Doc) public Class resolveClassDeclaration(String classDecl)(Code)(Java Doc) public void setCandidateClassName(String candidateClassName)(Code)(Java Doc) abstract public void setCandidates(Extent pcs)(Code)(Java Doc) abstract public void setCandidates(Collection pcs)(Code)(Java Doc) public void setClass(Class candidateClass)(Code)(Java Doc) public void setExtensions(Map extensions)(Code)(Java Doc) public void setFetchPlan(FetchPlan fp)(Code)(Java Doc) public void setFilter(String filter)(Code)(Java Doc) public void setFrom(String from)(Code)(Java Doc) public void setGrouping(String grouping)(Code)(Java Doc) public void setHaving(String having)(Code)(Java Doc) public void setIgnoreCache(boolean ignoreCache)(Code)(Java Doc) public void setImplicitParameter(String name, Object value)(Code)(Java Doc) public void setImplicitParameter(int position, Object value)(Code)(Java Doc) public void setOrdering(String ordering)(Code)(Java Doc) public void setRange(long fromIncl, long toExcl)(Code)(Java Doc) public void setRange(String range)(Code)(Java Doc) public void setResult(String result)(Code)(Java Doc) public void setResultClass(Class result_cls)(Code)(Java Doc) public void setResultClassName(String resultClassName)(Code)(Java Doc) public void setResultMetaData(QueryResultMetaData qrmd)(Code)(Java Doc) public void setSubclasses(boolean subclasses)(Code)(Java Doc) public void setType(short type)(Code)(Java Doc) public void setUnique(boolean unique)(Code)(Java Doc) public void setUnmodifiable()(Code)(Java Doc) abstract protected boolean shouldReturnSingleRow()(Code)(Java Doc)
|
|
|
|