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


java.lang.Object
   org.apache.ojb.broker.core.proxy.AbstractProxyFactory

All known Subclasses:   org.apache.ojb.broker.core.proxy.ProxyFactoryCGLIBImpl,  org.apache.ojb.broker.core.proxy.ProxyFactoryJDKImpl,
AbstractProxyFactory
abstract public class AbstractProxyFactory implements ProxyFactory(Code)
Abstract implementation for the ProxyFactory
author:
   andrew.clute
version:
   $Id:




Method Summary
public  ManageableCollectioncreateCollectionProxy(PBKey brokerKey, Query query, Class collectionClass)
     Create a Collection Proxy for a given query.
public  IndirectionHandlercreateIndirectionHandler(PBKey brokerKey, Identity id)
     Creates a new indirection handler instance.
public  CollectionProxygetCollectionProxy(Object item)
    
public  ClassgetCollectionProxyClass()
     Returns the collection proxy class.
abstract protected  IndirectionHandlergetDynamicIndirectionHandler(Object obj)
     Returns the IndirectionHandler associated with a dynamic proxy.
public  IndirectionHandlergetIndirectionHandler(Object obj)
     Returns the invocation handler object of the given proxy object.
public  ClassgetIndirectionHandlerClass()
     Returns the indirection handler class.
public  ClassgetListProxyClass()
     Returns the list proxy class.
public static synchronized  ProxyFactorygetProxyFactory()
    
public  ClassgetRealClass(Object objectOrProxy)
    
final public  ObjectgetRealObject(Object objectOrProxy)
    
public  ObjectgetRealObjectIfMaterialized(Object objectOrProxy)
    
public  ClassgetSetProxyClass()
     Returns the set proxy class.
public  booleanisCollectionProxy(Object item)
     Reports if item is a CollectionProxy.
public  booleanisMaterialized(Object object)
     Determines whether the object is a materialized object, i.e.
public  booleanisNormalOjbProxy(Object proxyOrObject)
     Determines whether the given object is an OJB proxy.
public  booleanisProxy(Object proxyOrObject)
     Returns true if the given object is a java.lang.reflect.Proxy or a VirtualProxy instance.
public  booleanisVirtualOjbProxy(Object proxyOrObject)
     Determines whether the given object is an OJB virtual proxy.
public  voidsetCollectionProxyClass(Class collectionProxyClass)
     Dets the proxy class to use for generic collection classes implementing the java.util.Collection interface.
public  voidsetIndirectionHandlerClass(Class indirectionHandlerClass)
     Sets the indirection handler class.
public  voidsetListProxyClass(Class listProxyClass)
     Dets the proxy class to use for collection classes that implement the java.util.List interface.
public  voidsetSetProxyClass(Class setProxyClass)
     Dets the proxy class to use for collection classes that implement the Set interface.
public  StringtoString(Object proxy)
     Materialization-safe version of toString.



Method Detail
createCollectionProxy
public ManageableCollection createCollectionProxy(PBKey brokerKey, Query query, Class collectionClass)(Code)
Create a Collection Proxy for a given query.
Parameters:
  brokerKey - The key of the persistence broker
Parameters:
  query - The query
Parameters:
  collectionClass - The class to build the proxy for The collection proxy



createIndirectionHandler
public IndirectionHandler createIndirectionHandler(PBKey brokerKey, Identity id)(Code)
Creates a new indirection handler instance.
Parameters:
  brokerKey - The associated PBKey.
Parameters:
  id - The subject's ids The new instance



getCollectionProxy
public CollectionProxy getCollectionProxy(Object item)(Code)
Return CollectionProxy for item is item is a CollectionProxy, otherwise return null



getCollectionProxyClass
public Class getCollectionProxyClass()(Code)
Returns the collection proxy class. The class used for collection proxies



getDynamicIndirectionHandler
abstract protected IndirectionHandler getDynamicIndirectionHandler(Object obj)(Code)
Returns the IndirectionHandler associated with a dynamic proxy. Each subclass is responsible for it's execution



getIndirectionHandler
public IndirectionHandler getIndirectionHandler(Object obj)(Code)
Returns the invocation handler object of the given proxy object.
Parameters:
  obj - The object The invocation handler if the object is an OJB proxy, or nullotherwise



getIndirectionHandlerClass
public Class getIndirectionHandlerClass()(Code)
Returns the indirection handler class. The class for indirection handlers



getListProxyClass
public Class getListProxyClass()(Code)
Returns the list proxy class. The class used for list proxies



getProxyFactory
public static synchronized ProxyFactory getProxyFactory()(Code)



getRealClass
public Class getRealClass(Object objectOrProxy)(Code)
Get the real Class
Parameters:
  objectOrProxy - Class



getRealObject
final public Object getRealObject(Object objectOrProxy)(Code)
Get the real Object
Parameters:
  objectOrProxy - Object



getRealObjectIfMaterialized
public Object getRealObjectIfMaterialized(Object objectOrProxy)(Code)
Get the real Object for already materialized Handler
Parameters:
  objectOrProxy - Object or null if the Handel is not materialized



getSetProxyClass
public Class getSetProxyClass()(Code)
Returns the set proxy class. The class used for set proxies



isCollectionProxy
public boolean isCollectionProxy(Object item)(Code)
Reports if item is a CollectionProxy. TODO: Provide handling for pluggable collection proxy implementations



isMaterialized
public boolean isMaterialized(Object object)(Code)
Determines whether the object is a materialized object, i.e. no proxy or a proxy that has already been loaded from the database.
Parameters:
  object - The object to test true if the object is materialized



isNormalOjbProxy
public boolean isNormalOjbProxy(Object proxyOrObject)(Code)
Determines whether the given object is an OJB proxy. true if the object is an OJB proxy



isProxy
public boolean isProxy(Object proxyOrObject)(Code)
Returns true if the given object is a java.lang.reflect.Proxy or a VirtualProxy instance.



isVirtualOjbProxy
public boolean isVirtualOjbProxy(Object proxyOrObject)(Code)
Determines whether the given object is an OJB virtual proxy. true if the object is an OJB virtual proxy



setCollectionProxyClass
public void setCollectionProxyClass(Class collectionProxyClass)(Code)
Dets the proxy class to use for generic collection classes implementing the java.util.Collection interface.
Parameters:
  collectionProxyClass - The proxy class



setIndirectionHandlerClass
public void setIndirectionHandlerClass(Class indirectionHandlerClass)(Code)
Sets the indirection handler class.
Parameters:
  indirectionHandlerClass - The class for indirection handlers



setListProxyClass
public void setListProxyClass(Class listProxyClass)(Code)
Dets the proxy class to use for collection classes that implement the java.util.List interface. Notes that the proxy class must implement the java.util.List interface, and have a constructor of the signature ( org.apache.ojb.broker.PBKey , java.lang.Class , org.apache.ojb.broker.query.Query ).
Parameters:
  listProxyClass - The proxy class



setSetProxyClass
public void setSetProxyClass(Class setProxyClass)(Code)
Dets the proxy class to use for collection classes that implement the Set interface.
Parameters:
  setProxyClass - The proxy class



toString
public String toString(Object proxy)(Code)
Materialization-safe version of toString. If the object is a yet-unmaterialized proxy, then only the text "unmaterialized proxy for ..." is returned and the proxy is NOT materialized. Otherwise, the normal toString method is called. This useful e.g. for logging etc.
Parameters:
  proxy - The object for which a string representation shall be generated The string representation



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.