Java Doc for AbstractJavaQuery.java in  » Database-ORM » JPOX » org » jpox » store » query » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » JPOX » org.jpox.store.query 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jpox.store.query.Query
      org.jpox.store.query.AbstractJavaQuery

All known Subclasses:   org.jpox.store.query.AbstractJPQLQuery,  org.jpox.store.query.AbstractJDOQLQuery,
AbstractJavaQuery
abstract public class AbstractJavaQuery extends Query (Code)
Abstract representation of a Java-based query. To be extended by Java-based query languages.
version:
   $Revision$

Inner Class :public static class ExecutedCompileCache

Field Summary
protected transient  CollectioncandidateCollection
     Collection of candidates for this query.
protected transient  ExtentcandidateExtent
     Extent of candidates for this query.
protected transient  Queryablecandidates
     Candidates for this query.
protected static  MapcompiledCache
     Some cache of compiled queries that is never used currently.
protected transient  booleandistinct
     whether to apply "distinct" results.
protected transient  QueryExpressionqueryStmt
     The Query Statement.
protected transient  JPOXResultSetMetaDataresultMetaData
     Result metadata (JPOX extension, allowing access to more info).
protected transient  ResultObjectFactoryrof
     Factory for obtaining the results from the query result set.
protected  StringsingleString
     Cached form of the single string form of the query.
protected static transient  MapuserDefinedScalarExpressions
     Register of user-defined ScalarExpression, provided via plugins.

Constructor Summary
public  AbstractJavaQuery(ObjectManager om)
     Constructor for a Java-based query.

Method Summary
protected  voiddiscardCompiled()
     Method to discard our current compiled query due to changes.
protected  ExecutedCompileCachegetCachedQuery()
     Accessor for a compiled form of this query in the cache (if present).
public  CollectiongetCandidateCollection()
     Accessor for the candidate collection (if specified using a collection).
public  ExtentgetCandidateExtent()
     Accessor for the candidate Extent (if specified using an Extent).
public  QueryablegetCandidates()
     Accessor for the candidates for the query.
protected  ImportsgetParsedImports()
     Accessor for the parsed imports.
public  JPOXResultSetMetaDatagetResultSetMetaData()
    
abstract public  StringgetSingleStringQuery()
     Accessor for a single string form of the query.
public static  MapgetUserDefinedScalarExpressions()
     Accessor for the user-defined scalar expressions.
public static  voidregisterScalarExpression(Class literal, Class scalarExpressionClass, String name)
     Register ScalarExpressions for the given cls.
protected  voidregisterScalarExpressions(PluginManager pluginMgr, ClassLoaderResolver clr)
     Register ScalarExpression classes delcared as plug-ins extensions TODO currently register only the first time this class is instantiated.
public  booleanresultHasOnlyAggregates(String result)
     Convenience method to simple-parse the "result" clause returning if it includes solely aggregates.
public  voidsetCandidates(Extent pcs)
     Set the candidate Extent to query.
public  voidsetCandidates(Collection pcs)
     Set the candidate Collection to query.
public  StringtoString()
    

Field Detail
candidateCollection
protected transient Collection candidateCollection(Code)
Collection of candidates for this query.



candidateExtent
protected transient Extent candidateExtent(Code)
Extent of candidates for this query.



candidates
protected transient Queryable candidates(Code)
Candidates for this query.



compiledCache
protected static Map compiledCache(Code)
Some cache of compiled queries that is never used currently.



distinct
protected transient boolean distinct(Code)
whether to apply "distinct" results. *



queryStmt
protected transient QueryExpression queryStmt(Code)
The Query Statement.



resultMetaData
protected transient JPOXResultSetMetaData resultMetaData(Code)
Result metadata (JPOX extension, allowing access to more info). *



rof
protected transient ResultObjectFactory rof(Code)
Factory for obtaining the results from the query result set.



singleString
protected String singleString(Code)
Cached form of the single string form of the query.



userDefinedScalarExpressions
protected static transient Map userDefinedScalarExpressions(Code)
Register of user-defined ScalarExpression, provided via plugins.




Constructor Detail
AbstractJavaQuery
public AbstractJavaQuery(ObjectManager om)(Code)
Constructor for a Java-based query.
Parameters:
  om - The ObjectManager




Method Detail
discardCompiled
protected void discardCompiled()(Code)
Method to discard our current compiled query due to changes.
See Also:   org.jpox.store.query.Query.discardCompiled



getCachedQuery
protected ExecutedCompileCache getCachedQuery()(Code)
Accessor for a compiled form of this query in the cache (if present). Compiled form of this query if currently cached.



getCandidateCollection
public Collection getCandidateCollection()(Code)
Accessor for the candidate collection (if specified using a collection). Candidate collection



getCandidateExtent
public Extent getCandidateExtent()(Code)
Accessor for the candidate Extent (if specified using an Extent). Candidate Extent



getCandidates
public Queryable getCandidates()(Code)
Accessor for the candidates for the query. This is only valid after compiling the query. Candidates for the query



getParsedImports
protected Imports getParsedImports()(Code)
Accessor for the parsed imports. If no imports are set then adds candidate class, user imports, and any user-defined expression packages. Parsed imports



getResultSetMetaData
public JPOXResultSetMetaData getResultSetMetaData()(Code)
Retrieve the metadata for the results the ResultSetMetaData



getSingleStringQuery
abstract public String getSingleStringQuery()(Code)
Accessor for a single string form of the query. Single string form of the query.



getUserDefinedScalarExpressions
public static Map getUserDefinedScalarExpressions()(Code)
Accessor for the user-defined scalar expressions. Map of user-defined scalar expressions



registerScalarExpression
public static void registerScalarExpression(Class literal, Class scalarExpressionClass, String name)(Code)
Register ScalarExpressions for the given cls. It allows to perform operations in the query on cls.method([arglist]).
Parameters:
  literal - the class providing the operations; e.g. java.lang.Math.class
Parameters:
  scalarExpressionClass - the class with the corresponding ScalarExpression. eg. org.jpox.store.expression.MathExpression.class
Parameters:
  name - alternative name of the given literal class



registerScalarExpressions
protected void registerScalarExpressions(PluginManager pluginMgr, ClassLoaderResolver clr)(Code)
Register ScalarExpression classes delcared as plug-ins extensions TODO currently register only the first time this class is instantiated. Should be registered per PMF?
Parameters:
  pluginMgr - The PluginManager
Parameters:
  clr - The ClassLoaderResolver to load the literal and ScalarExpression classes



resultHasOnlyAggregates
public boolean resultHasOnlyAggregates(String result)(Code)
Convenience method to simple-parse the "result" clause returning if it includes solely aggregates. This is necessary since we need this information before creating the QueryStatement, after which we compile the result.
Parameters:
  result - The result required Whether it has only aggregates



setCandidates
public void setCandidates(Extent pcs)(Code)
Set the candidate Extent to query.
Parameters:
  pcs - the Candidate Extent.
See Also:   javax.jdo.Query.setCandidates(javax.jdo.Extent)



setCandidates
public void setCandidates(Collection pcs)(Code)
Set the candidate Collection to query.
Parameters:
  pcs - the Candidate collection.
See Also:   javax.jdo.Query.setCandidates(java.util.Collection)



toString
public String toString()(Code)
Stringifier method Single-string form of this JDOQL query.



Fields inherited from org.jpox.store.query.Query
final public static short BULK_DELETE(Code)(Java Doc)
final public static short BULK_UPDATE(Code)(Java Doc)
final protected static Localiser LOCALISER(Code)(Java Doc)
final public static short SELECT(Code)(Java Doc)
protected Class candidateClass(Code)(Java Doc)
protected String candidateClassName(Code)(Java Doc)
protected String explicitParameters(Code)(Java Doc)
protected String explicitVariables(Code)(Java Doc)
protected Map extensions(Code)(Java Doc)
protected String filter(Code)(Java Doc)
protected transient String from(Code)(Java Doc)
protected long fromInclNo(Code)(Java Doc)
protected String grouping(Code)(Java Doc)
protected String having(Code)(Java Doc)
protected boolean ignoreCache(Code)(Java Doc)
protected transient HashMap implicitParameters(Code)(Java Doc)
protected String imports(Code)(Java Doc)
protected transient boolean isCompiled(Code)(Java Doc)
final protected transient ObjectManager om(Code)(Java Doc)
protected String ordering(Code)(Java Doc)
protected transient String[] parameterNames(Code)(Java Doc)
protected transient Imports parsedImports(Code)(Java Doc)
protected transient HashSet queryResults(Code)(Java Doc)
protected String range(Code)(Java Doc)
protected String result(Code)(Java Doc)
protected Class resultClass(Code)(Java Doc)
protected String resultClassName(Code)(Java Doc)
protected boolean subclasses(Code)(Java Doc)
protected Map subqueries(Code)(Java Doc)
protected long toExclNo(Code)(Java Doc)
protected short type(Code)(Java Doc)
protected boolean unique(Code)(Java Doc)
protected boolean unmodifiable(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.