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

All known Subclasses:   org.apache.ojb.broker.core.PersistenceBrokerHandle,  org.apache.ojb.broker.core.PoolablePersistenceBroker,
DelegatingPersistenceBroker
public class DelegatingPersistenceBroker implements PersistenceBrokerInternal,PBState(Code)
Delegating implementation of a PersistenceBroker.
author:
   Armin Waibel
version:
   $Id: DelegatingPersistenceBroker.java,v 1.11.2.7 2005/09/05 23:37:26 arminw Exp $


Field Summary
protected  PersistenceBrokerInternalm_broker
    

Constructor Summary
public  DelegatingPersistenceBroker(PersistenceBrokerInternal broker)
    

Method Summary
public  voidabortTransaction()
    
public  voidaddListener(PBListener listener)
    
public  voidaddListener(PBListener listener, boolean permanent)
    
public  voidaddMtoNImplementor(MtoNImplementor m2nImpl)
    
public  voidbeginTransaction()
    
public  voidcheckRefreshRelationships(Object obj, Identity oid, ClassDescriptor cld)
    
public  voidclearCache()
    
public  booleanclose()
    
public  voidcommitTransaction()
    
public  voidconfigure(Configuration pConfig)
    
public  ObjectcreateProxy(Class proxyClass, Identity realSubjectsIdentity)
    
public  voiddelete(Object obj, boolean ignoreReferences)
    
public  voiddelete(Object obj)
    
public  voiddeleteByQuery(Query query)
    
public  voiddeleteMtoNImplementor(MtoNImplementor m2nImpl)
    
public  voidfireBrokerEvent(PersistenceBrokerEvent event)
    
public  voidfireBrokerEvent(PBLifeCycleEvent event)
    
public  voidfireBrokerEvent(PBStateEvent event)
    
protected  PersistenceBrokerInternalgetBroker()
     All delegated method use this method to get the wrapped broker.
public  ClassDescriptorgetClassDescriptor(Class clazz)
    
public  ManageableCollectiongetCollectionByQuery(Class collectionClass, Query query)
    
public  CollectiongetCollectionByQuery(Query query)
    
public  intgetCount(Query query)
    
public  PersistenceBrokerInternalgetDelegate()
    
public  DescriptorRepositorygetDescriptorRepository()
    
public  PersistenceBrokergetInnermostDelegate()
     If my underlying org.apache.ojb.broker.PersistenceBroker is not a DelegatingPersistenceBroker , returns it, otherwise recursively invokes this method on my delegate.
public  IteratorgetIteratorByQuery(Query query)
    
public  ObjectgetObjectByIdentity(Identity id)
    
public  ObjectgetObjectByQuery(Query query)
    
public  PBKeygetPBKey()
    
public  EnumerationgetPKEnumerationByQuery(Class primaryKeyClass, Query query)
    
public  ProxyFactorygetProxyFactory()
    
public  QueryReferenceBrokergetReferenceBroker()
    
public  RelationshipPrefetcherFactorygetRelationshipPrefetcherFactory()
    
public  IteratorgetReportQueryIteratorByQuery(Query query)
    
public  ClassgetTopLevelClass(Class clazz)
    
public  booleanhasClassDescriptor(Class clazz)
    
public  booleanisClosed()
    
public  booleanisInTransaction()
    
public  booleanisManaged()
    
public  org.odbms.Queryquery()
    
public  voidremoveAllListeners()
    
public  voidremoveAllListeners(boolean permanent)
    
public  voidremoveFromCache(Object obj)
    
public  voidremoveListener(PBListener listener)
    
public  voidretrieveAllReferences(Object pInstance)
    
public  voidretrieveReference(Object pInstance, String pAttributeName)
    
public  BrokerHelperserviceBrokerHelper()
    
public  ConnectionManagerIFserviceConnectionManager()
    
public  IdentityFactoryserviceIdentity()
    
public  JdbcAccessserviceJdbcAccess()
    
public  ObjectCacheserviceObjectCache()
    
public  SequenceManagerserviceSequenceManager()
    
public  SqlGeneratorserviceSqlGenerator()
    
public  StatementManagerIFserviceStatementManager()
    
public  voidsetClosed(boolean closed)
    
public  voidsetDelegate(PersistenceBrokerInternal broker)
    
public  voidsetManaged(boolean managed)
    
public  voidstore(Object obj, Identity oid, ClassDescriptor cld, boolean insert, boolean ignoreReferences)
    
public  voidstore(Object obj)
    
public  voidstore(Object obj, ObjectModification modification)
    

Field Detail
m_broker
protected PersistenceBrokerInternal m_broker(Code)




Constructor Detail
DelegatingPersistenceBroker
public DelegatingPersistenceBroker(PersistenceBrokerInternal broker)(Code)




Method Detail
abortTransaction
public void abortTransaction() throws TransactionNotInProgressException(Code)



addListener
public void addListener(PBListener listener) throws PersistenceBrokerException(Code)



addListener
public void addListener(PBListener listener, boolean permanent) throws PersistenceBrokerException(Code)



addMtoNImplementor
public void addMtoNImplementor(MtoNImplementor m2nImpl) throws PersistenceBrokerException(Code)

See Also:   org.apache.ojb.broker.PersistenceBroker.addMtoNImplementor



beginTransaction
public void beginTransaction() throws TransactionInProgressException, TransactionAbortedException(Code)



checkRefreshRelationships
public void checkRefreshRelationships(Object obj, Identity oid, ClassDescriptor cld)(Code)



clearCache
public void clearCache() throws PersistenceBrokerException(Code)



close
public boolean close()(Code)



commitTransaction
public void commitTransaction() throws TransactionNotInProgressException, TransactionAbortedException(Code)



configure
public void configure(Configuration pConfig) throws ConfigurationException(Code)



createProxy
public Object createProxy(Class proxyClass, Identity realSubjectsIdentity)(Code)



delete
public void delete(Object obj, boolean ignoreReferences) throws PersistenceBrokerException(Code)



delete
public void delete(Object obj) throws PersistenceBrokerException(Code)



deleteByQuery
public void deleteByQuery(Query query) throws PersistenceBrokerException(Code)



deleteMtoNImplementor
public void deleteMtoNImplementor(MtoNImplementor m2nImpl) throws PersistenceBrokerException(Code)

See Also:   org.apache.ojb.broker.PersistenceBroker.deleteMtoNImplementor



fireBrokerEvent
public void fireBrokerEvent(PersistenceBrokerEvent event)(Code)



fireBrokerEvent
public void fireBrokerEvent(PBLifeCycleEvent event)(Code)



fireBrokerEvent
public void fireBrokerEvent(PBStateEvent event)(Code)



getBroker
protected PersistenceBrokerInternal getBroker()(Code)
All delegated method use this method to get the wrapped broker.



getClassDescriptor
public ClassDescriptor getClassDescriptor(Class clazz) throws PersistenceBrokerException(Code)



getCollectionByQuery
public ManageableCollection getCollectionByQuery(Class collectionClass, Query query) throws PersistenceBrokerException(Code)



getCollectionByQuery
public Collection getCollectionByQuery(Query query) throws PersistenceBrokerException(Code)



getCount
public int getCount(Query query) throws PersistenceBrokerException(Code)



getDelegate
public PersistenceBrokerInternal getDelegate()(Code)
Returns only the wrapped org.apache.ojb.broker.PersistenceBroker instance



getDescriptorRepository
public DescriptorRepository getDescriptorRepository()(Code)



getInnermostDelegate
public PersistenceBroker getInnermostDelegate()(Code)
If my underlying org.apache.ojb.broker.PersistenceBroker is not a DelegatingPersistenceBroker , returns it, otherwise recursively invokes this method on my delegate.

Hence this method will return the first delegate that is not a DelegatingPersistenceBroker , or null when no non- DelegatingPersistenceBroker delegate can be found by transversing this chain.

This method is useful when you may have nested DelegatingPersistenceBroker s, and you want to make sure to obtain a "genuine" org.apache.ojb.broker.PersistenceBroker implementaion instance.




getIteratorByQuery
public Iterator getIteratorByQuery(Query query) throws PersistenceBrokerException(Code)



getObjectByIdentity
public Object getObjectByIdentity(Identity id) throws PersistenceBrokerException(Code)



getObjectByQuery
public Object getObjectByQuery(Query query) throws PersistenceBrokerException(Code)



getPBKey
public PBKey getPBKey()(Code)



getPKEnumerationByQuery
public Enumeration getPKEnumerationByQuery(Class primaryKeyClass, Query query) throws PersistenceBrokerException(Code)



getProxyFactory
public ProxyFactory getProxyFactory()(Code)



getReferenceBroker
public QueryReferenceBroker getReferenceBroker()(Code)



getRelationshipPrefetcherFactory
public RelationshipPrefetcherFactory getRelationshipPrefetcherFactory()(Code)



getReportQueryIteratorByQuery
public Iterator getReportQueryIteratorByQuery(Query query) throws PersistenceBrokerException(Code)



getTopLevelClass
public Class getTopLevelClass(Class clazz) throws PersistenceBrokerException(Code)



hasClassDescriptor
public boolean hasClassDescriptor(Class clazz)(Code)



isClosed
public boolean isClosed()(Code)



isInTransaction
public boolean isInTransaction() throws PersistenceBrokerException(Code)



isManaged
public boolean isManaged()(Code)



query
public org.odbms.Query query()(Code)



removeAllListeners
public void removeAllListeners() throws PersistenceBrokerException(Code)



removeAllListeners
public void removeAllListeners(boolean permanent) throws PersistenceBrokerException(Code)



removeFromCache
public void removeFromCache(Object obj) throws PersistenceBrokerException(Code)



removeListener
public void removeListener(PBListener listener) throws PersistenceBrokerException(Code)



retrieveAllReferences
public void retrieveAllReferences(Object pInstance) throws PersistenceBrokerException(Code)



retrieveReference
public void retrieveReference(Object pInstance, String pAttributeName) throws PersistenceBrokerException(Code)



serviceBrokerHelper
public BrokerHelper serviceBrokerHelper()(Code)



serviceConnectionManager
public ConnectionManagerIF serviceConnectionManager()(Code)



serviceIdentity
public IdentityFactory serviceIdentity()(Code)



serviceJdbcAccess
public JdbcAccess serviceJdbcAccess()(Code)



serviceObjectCache
public ObjectCache serviceObjectCache()(Code)



serviceSequenceManager
public SequenceManager serviceSequenceManager()(Code)



serviceSqlGenerator
public SqlGenerator serviceSqlGenerator()(Code)



serviceStatementManager
public StatementManagerIF serviceStatementManager()(Code)



setClosed
public void setClosed(boolean closed)(Code)



setDelegate
public void setDelegate(PersistenceBrokerInternal broker)(Code)



setManaged
public void setManaged(boolean managed)(Code)



store
public void store(Object obj, Identity oid, ClassDescriptor cld, boolean insert, boolean ignoreReferences)(Code)



store
public void store(Object obj) throws PersistenceBrokerException(Code)



store
public void store(Object obj, ObjectModification modification) throws PersistenceBrokerException(Code)



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.