Java Doc for QueryImpl.java in  » Database-ORM » db-ojb » org » apache » ojb » jdo » 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 » db ojb » org.apache.ojb.jdo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.ojb.jdo.QueryImpl

QueryImpl
public class QueryImpl implements Query(Code)
Not Really Functional Yet:

Consider making this a front end for a State system where the compiled query is a different State The big list of args should/could be collected into something that knows how to compile and and apply the arguments passed at execute time.

Consider also, if do above, clone returns compiled query. Compiled probably needs to be able to uncompile itself if this the case, so continuing to return uncompiled may be best
author:
   Matthew Baird
author:
   Brian McCallister
author:
   Thomas Dudziak




Constructor Summary
public  QueryImpl(PersistenceManagerImpl pm)
     Creates a new query that uses the given persistence manager.

Method Summary
public  voidclose(Object o)
    
public  voidcloseAll()
    
public  voidcompile()
     Compiles the query.
public  voiddeclareImports(String imports)
     Specifies the classes/packages imported by this query for use in the filter and ordering expressions.
public  voiddeclareParameters(String params)
     Sets the parameters of this query.
public  voiddeclareVariables(String variables)
     Declares the variables used in the filter expression of this query.
public  Objectexecute()
     Performs this query.
public  Objectexecute(Object o)
    
public  Objectexecute(Object o, Object o1)
    
public  Objectexecute(Object o, Object o1, Object o2)
    
public  ObjectexecuteWithArray(Object[] objects)
    
public  ObjectexecuteWithMap(Map map)
    
public  ExpressiongetFilterExpression()
     Returns the filter expression.
public  booleangetIgnoreCache()
     Determines whether this query ignores objects in the cache.
public  CollectiongetImports()
     Returns the imports of this query.
public  CollectiongetOrderings()
     Returns the orderings of this query.
public  LocalVariablegetParameter(String name)
     Returns the parameter of the given name if it exists.
public  MapgetParameters()
     Returns the parameters of this query.
public  PersistenceManagergetPersistenceManager()
     Returns the persistence manager that this query uses.
public  ClassgetSearchedClass()
     Returns the class of the searched objects.
public  LocalVariablegetVariable(String name)
     Returns the variable of the given name if it exists.
public  MapgetVariables()
     Returns the variables of this query.
 QueryImplojbClone()
     Creates an uncompiled deep clone of this query.
public  voidsetCandidates(Extent extent)
    
public  voidsetCandidates(Collection candidates)
    
public  voidsetClass(Class searchedClass)
     Sets the class whose objects this query searches for.
public  voidsetFilter(String filter)
     Sets the filter of this query.
public  voidsetIgnoreCache(boolean shouldIgnoreCache)
     Specifies whether the query should ignore any objects in the cache.
public  voidsetOrdering(String orderings)
     Defines the ordering of this query.


Constructor Detail
QueryImpl
public QueryImpl(PersistenceManagerImpl pm)(Code)
Creates a new query that uses the given persistence manager.
Parameters:
  pm - The persistence manager to use




Method Detail
close
public void close(Object o)(Code)

Parameters:
  o - is a Collection returned from execute()



closeAll
public void closeAll()(Code)



compile
public void compile()(Code)
Compiles the query. In effect this resolves the various expressions and declarations against each other, checks that they are valid, and enhances the filter and ordering expressions with executable ojb queries.



declareImports
public void declareImports(String imports) throws JDOUserException(Code)
Specifies the classes/packages imported by this query for use in the filter and ordering expressions.
Parameters:
  imports - The import declarations



declareParameters
public void declareParameters(String params) throws JDOUserException(Code)
Sets the parameters of this query.
Parameters:
  params - The parameter declarations



declareVariables
public void declareVariables(String variables) throws JDOUserException(Code)
Declares the variables used in the filter expression of this query.
Parameters:
  variables - The variable declarations



execute
public Object execute()(Code)
Performs this query. The query result



execute
public Object execute(Object o)(Code)



execute
public Object execute(Object o, Object o1)(Code)



execute
public Object execute(Object o, Object o1, Object o2)(Code)



executeWithArray
public Object executeWithArray(Object[] objects)(Code)



executeWithMap
public Object executeWithMap(Map map)(Code)



getFilterExpression
public Expression getFilterExpression()(Code)
Returns the filter expression. The filter expression



getIgnoreCache
public boolean getIgnoreCache()(Code)
Determines whether this query ignores objects in the cache. true if this query ignores cached objects



getImports
public Collection getImports()(Code)
Returns the imports of this query. The imports, a collection of org.apache.ojb.jdo.jdoql.Import objects



getOrderings
public Collection getOrderings()(Code)
Returns the orderings of this query. The orderings, a collection of org.apache.ojb.jdo.jdoql.Ordering objects



getParameter
public LocalVariable getParameter(String name)(Code)
Returns the parameter of the given name if it exists.
Parameters:
  name - The parameter name The parameter



getParameters
public Map getParameters()(Code)
Returns the parameters of this query. The parameters, a map of org.apache.ojb.jdo.jdoql.LocalVariable objectsindexed by their names



getPersistenceManager
public PersistenceManager getPersistenceManager()(Code)
Returns the persistence manager that this query uses. The persistence manager



getSearchedClass
public Class getSearchedClass()(Code)
Returns the class of the searched objects. The class of the searched objects



getVariable
public LocalVariable getVariable(String name)(Code)
Returns the variable of the given name if it exists.
Parameters:
  name - The variable name The variable



getVariables
public Map getVariables()(Code)
Returns the variables of this query. The variables, a map of org.apache.ojb.jdo.jdoql.LocalVariable objectsindexed by their names



ojbClone
QueryImpl ojbClone()(Code)
Creates an uncompiled deep clone of this query. The clone



setCandidates
public void setCandidates(Extent extent)(Code)
Simply ovewrites the setClass(..) value



setCandidates
public void setCandidates(Collection candidates)(Code)



setClass
public void setClass(Class searchedClass)(Code)
Sets the class whose objects this query searches for.
Parameters:
  searchedClass - The class of the searched objects



setFilter
public void setFilter(String filter) throws JDOUserException(Code)
Sets the filter of this query.
Parameters:
  filter - The filter expression



setIgnoreCache
public void setIgnoreCache(boolean shouldIgnoreCache)(Code)
Specifies whether the query should ignore any objects in the cache.
Parameters:
  shouldIgnoreCache - Whether to ignore the cache



setOrdering
public void setOrdering(String orderings) throws JDOUserException(Code)
Defines the ordering of this query.
Parameters:
  orderings - The ordering specifications



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.