Java Doc for AbstractJPQLQuery.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
         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 $


Field Summary
final public static  String[]RESERVED_IDENTIFIERS
     List of identifier names not allowed by JPQL.
final public static  String[]SINGLE_STRING_KEYWORDS
     Keywords used in single-string JPQL.
protected transient  Stringupdate
     UPDATE clause of a JPQL query.

Constructor Summary
public  AbstractJPQLQuery(ObjectManager om)
     Constructor.

Method Summary
public  StringgetSingleStringQuery()
     Method to take the defined parameters for the query and form a single string.
public  StringgetUpdate()
     Accessor for the UPDATE clause of the JPQL query.
public static  booleanisKeyword(String name)
     Convenience method returning if the supplied name is a keyword for this query language.
public static  booleanisReservedIdentifier(String name)
     Convenience method returning if the supplied name is a reserved identifier for this query language.
protected  longperformDeletePersistentAll(Map parameters)
     Execute the query to delete persistent objects.
Parameters:
  parameters - the Map containing all of the parameters.
public  ClassresolveClassDeclaration(String classDecl)
     Utility to resolve the declaration to a particular class.
public  voidsetUpdate(String update)
     Set the UPDATE clause of the query.

Field Detail
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.




Constructor Detail
AbstractJPQLQuery
public AbstractJPQLQuery(ObjectManager om)(Code)
Constructor.
Parameters:
  om - ObjectManager




Method Detail
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



Fields inherited from org.jpox.store.query.AbstractJavaQuery
protected transient Collection candidateCollection(Code)(Java Doc)
protected transient Extent candidateExtent(Code)(Java Doc)
protected transient Queryable candidates(Code)(Java Doc)
protected static Map compiledCache(Code)(Java Doc)
protected transient boolean distinct(Code)(Java Doc)
protected transient QueryExpression queryStmt(Code)(Java Doc)
protected transient JPOXResultSetMetaData resultMetaData(Code)(Java Doc)
protected transient ResultObjectFactory rof(Code)(Java Doc)
protected String singleString(Code)(Java Doc)
protected static transient Map userDefinedScalarExpressions(Code)(Java Doc)

Methods inherited from org.jpox.store.query.AbstractJavaQuery
protected void discardCompiled()(Code)(Java Doc)
protected ExecutedCompileCache getCachedQuery()(Code)(Java Doc)
public Collection getCandidateCollection()(Code)(Java Doc)
public Extent getCandidateExtent()(Code)(Java Doc)
public Queryable getCandidates()(Code)(Java Doc)
protected Imports getParsedImports()(Code)(Java Doc)
public JPOXResultSetMetaData getResultSetMetaData()(Code)(Java Doc)
abstract public String getSingleStringQuery()(Code)(Java Doc)
public static Map getUserDefinedScalarExpressions()(Code)(Java Doc)
public static void registerScalarExpression(Class literal, Class scalarExpressionClass, String name)(Code)(Java Doc)
protected void registerScalarExpressions(PluginManager pluginMgr, ClassLoaderResolver clr)(Code)(Java Doc)
public boolean resultHasOnlyAggregates(String result)(Code)(Java Doc)
public void setCandidates(Extent pcs)(Code)(Java Doc)
public void setCandidates(Collection pcs)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.