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


java.lang.Object
   org.apache.ojb.broker.core.QueryReferenceBroker

QueryReferenceBroker
public class QueryReferenceBroker (Code)
Encapsulates 1:1 and 1:n references and collection references stuff. TODO: Should we made this class independend from PB implementation class and only use PB interface methods?
author:
   Armin Waibel
version:
   $Id: QueryReferenceBroker.java,v 1.17.2.17 2005/12/21 22:25:00 tomdz Exp $

Inner Class :class PBMaterializationListener extends PBPrefetchingListener implements MaterializationListener
Inner Class :abstract class PBPrefetchingListener
Inner Class :class PBCollectionProxyListener extends PBPrefetchingListener implements CollectionProxyListener


Constructor Summary
public  QueryReferenceBroker(PersistenceBrokerImpl pb)
    

Method Summary
public  ClassgetClassToPrefetch()
    
public  ManageableCollectiongetCollectionByQuery(Class collectionClass, Query query, boolean lazy)
    
public  CollectiongetCollectionByQuery(Query query, boolean lazy)
    
public  QuerygetPKQuery(Identity oid)
    
public  voidperformRetrievalTasks()
    
public  voidremovePrefetchingListeners()
    
public  voidretrieveCollection(Object obj, ClassDescriptor cld, CollectionDescriptor cds, boolean forced)
     Retrieve a single Collection on behalf of obj. The Collection is retrieved only if cascade.retrieve is true or if forced is set to true.
public  voidretrieveCollections(Object newObj, ClassDescriptor cld, boolean forced)
    
public  voidretrieveProxyCollection(Object obj, ClassDescriptor cld, CollectionDescriptor cds, boolean forced)
     Retrieve a single Proxied Collection on behalf of obj. The Collection is retrieved only if cascade.retrieve is true or if forced is set to true.
public  voidretrieveProxyCollections(Object newObj, ClassDescriptor cld, boolean forced)
    
public  voidretrieveProxyReference(Object obj, ClassDescriptor cld, ObjectReferenceDescriptor rds, boolean forced)
     Retrieve a single Reference.
public  voidretrieveProxyReferences(Object newObj, ClassDescriptor cld, boolean forced)
    
public  voidretrieveReference(Object obj, ClassDescriptor cld, ObjectReferenceDescriptor rds, boolean forced)
     Retrieve a single Reference.
public  voidretrieveReferences(Object newObj, ClassDescriptor cld, boolean forced)
    


Constructor Detail
QueryReferenceBroker
public QueryReferenceBroker(PersistenceBrokerImpl pb)(Code)




Method Detail
getClassToPrefetch
public Class getClassToPrefetch()(Code)



getCollectionByQuery
public ManageableCollection getCollectionByQuery(Class collectionClass, Query query, boolean lazy) throws PersistenceBrokerException(Code)
retrieve a collection of type collectionClass matching the Query query if lazy = true return a CollectionProxy
Parameters:
  collectionClass -
Parameters:
  query -
Parameters:
  lazy - ManageableCollection
throws:
  PersistenceBrokerException -



getCollectionByQuery
public Collection getCollectionByQuery(Query query, boolean lazy) throws PersistenceBrokerException(Code)
retrieve a collection of itemClass Objects matching the Query query



getPKQuery
public Query getPKQuery(Identity oid)(Code)
Answer the primary key query to retrieve an Object
Parameters:
  oid - the Identity of the Object to retrieve The resulting query



performRetrievalTasks
public void performRetrievalTasks()(Code)
Perform the stored retrieval tasks BRJ: made it public to access it from BasePrefetcher TODO: this is a quick fix !



removePrefetchingListeners
public void removePrefetchingListeners()(Code)
remove all prefetching listeners



retrieveCollection
public void retrieveCollection(Object obj, ClassDescriptor cld, CollectionDescriptor cds, boolean forced)(Code)
Retrieve a single Collection on behalf of obj. The Collection is retrieved only if cascade.retrieve is true or if forced is set to true. *
Parameters:
  obj - - the object to be updated
Parameters:
  cld - - the ClassDescriptor describing obj
Parameters:
  cds - - the CollectionDescriptor describing the collection attribute to be loaded
Parameters:
  forced - - if set to true loading is forced, even if cds differs.



retrieveCollections
public void retrieveCollections(Object newObj, ClassDescriptor cld, boolean forced) throws PersistenceBrokerException(Code)
Retrieve all Collection attributes of a given instance
Parameters:
  newObj - the instance to be loaded or refreshed
Parameters:
  cld - the ClassDescriptor of the instance
Parameters:
  forced - if set to true, loading is forced even if cld differs



retrieveProxyCollection
public void retrieveProxyCollection(Object obj, ClassDescriptor cld, CollectionDescriptor cds, boolean forced)(Code)
Retrieve a single Proxied Collection on behalf of obj. The Collection is retrieved only if cascade.retrieve is true or if forced is set to true. *
Parameters:
  obj - - the object to be updated
Parameters:
  cld - - the ClassDescriptor describing obj
Parameters:
  cds - - the CollectionDescriptor describing the collection attribute to be loaded
Parameters:
  forced - - if set to true a proxy will be placed, even if cds differs.



retrieveProxyCollections
public void retrieveProxyCollections(Object newObj, ClassDescriptor cld, boolean forced) throws PersistenceBrokerException(Code)
Retrieve all Collection attributes of a given instance, and make all of the Proxy Collections
Parameters:
  newObj - the instance to be loaded or refreshed
Parameters:
  cld - the ClassDescriptor of the instance
Parameters:
  forced - if set to true, loading is forced even if cld differs



retrieveProxyReference
public void retrieveProxyReference(Object obj, ClassDescriptor cld, ObjectReferenceDescriptor rds, boolean forced)(Code)
Retrieve a single Reference. This implementation retrieves a referenced object from the data backend if cascade-retrieve is true or if forced is true.
Parameters:
  obj - - object that will have it's field set with a referenced object.
Parameters:
  cld - - the ClassDescriptor describring obj
Parameters:
  rds - - the ObjectReferenceDescriptor of the reference attribute to be loaded
Parameters:
  forced - - if set to true, the reference is loaded even if the rds differs.



retrieveProxyReferences
public void retrieveProxyReferences(Object newObj, ClassDescriptor cld, boolean forced) throws PersistenceBrokerException(Code)
Retrieve all References
Parameters:
  newObj - the instance to be loaded or refreshed
Parameters:
  cld - the ClassDescriptor of the instance
Parameters:
  forced - if set to true loading is forced even if cld differs.



retrieveReference
public void retrieveReference(Object obj, ClassDescriptor cld, ObjectReferenceDescriptor rds, boolean forced)(Code)
Retrieve a single Reference. This implementation retrieves a referenced object from the data backend if cascade-retrieve is true or if forced is true.
Parameters:
  obj - - object that will have it's field set with a referenced object.
Parameters:
  cld - - the ClassDescriptor describring obj
Parameters:
  rds - - the ObjectReferenceDescriptor of the reference attribute to be loaded
Parameters:
  forced - - if set to true, the reference is loaded even if the rds differs.



retrieveReferences
public void retrieveReferences(Object newObj, ClassDescriptor cld, boolean forced) throws PersistenceBrokerException(Code)
Retrieve all References
Parameters:
  newObj - the instance to be loaded or refreshed
Parameters:
  cld - the ClassDescriptor of the instance
Parameters:
  forced - if set to true loading is forced even if cld differs.



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.