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


org.apache.ojb.broker.core.proxy.ProxyFactory

All known Subclasses:   org.apache.ojb.broker.core.proxy.AbstractProxyFactory,
ProxyFactory
public interface ProxyFactory extends Serializable(Code)
Factory class for creating instances of the indirection handler used by OJB's proxies, and for the collection proxies.
author:
   Thomas Dudziak
version:
   $Id: ProxyFactory.java,v 1.1.2.3 2005/12/21 22:25:31 tomdz Exp $




Method Summary
abstract public  ManageableCollectioncreateCollectionProxy(PBKey brokerKey, Query query, Class collectionClass)
     Create a Collection Proxy for a given context.
abstract public  IndirectionHandlercreateIndirectionHandler(PBKey pbKey, Identity id)
     Creates a new indirection handler instance.
public  OJBProxycreateProxy(Class baseClass, IndirectionHandler handler)
    
public  CollectionProxygetCollectionProxy(Object item)
    
abstract public  ClassgetCollectionProxyClass()
     Returns the collection proxy class.
abstract public  ClassgetDefaultIndirectionHandlerClass()
     Returns the class of a default IndirectionHandler that can be used for this implementaiton if now IndirectionHandlerClass implementation is given.
public  IndirectionHandlergetIndirectionHandler(Object obj)
     Returns the invocation handler object of the given proxy object.
abstract public  ClassgetIndirectionHandlerBaseClass()
    
abstract public  ClassgetIndirectionHandlerClass()
     Returns the indirection handler class.
abstract public  ClassgetListProxyClass()
     Returns the list proxy class.
public  ClassgetRealClass(Object objectOrProxy)
    
public  ObjectgetRealObject(Object objectOrProxy)
    
public  ObjectgetRealObjectIfMaterialized(Object objectOrProxy)
    
abstract public  ClassgetSetProxyClass()
     Returns the set proxy class.
 booleaninterfaceRequiredForProxyGeneration()
     Method that returns whether or not this ProxyFactory can generate reference Proxies for classes regardless if they extend an interface or not.
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.
abstract public  voidsetCollectionProxyClass(Class collectionProxyClass)
     Dets the proxy class to use for generic collection classes implementing the java.util.Collection interface.
abstract public  voidsetIndirectionHandlerClass(Class indirectionHandlerClass)
     Sets the indirection handler class.
abstract public  voidsetListProxyClass(Class listProxyClass)
     Dets the proxy class to use for collection classes that implement the java.util.List interface.
abstract 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
abstract public ManageableCollection createCollectionProxy(PBKey brokerKey, Query query, Class collectionClass)(Code)
Create a Collection Proxy for a given context.
Parameters:
  persistenceConf - The persistence configuration that the proxy will be bound to
Parameters:
  context - The creation context The collection proxy



createIndirectionHandler
abstract public IndirectionHandler createIndirectionHandler(PBKey pbKey, Identity id)(Code)
Creates a new indirection handler instance.
Parameters:
  persistenceConf - The persistence configuration
Parameters:
  id - The subject's ids The new instance



createProxy
public OJBProxy createProxy(Class baseClass, IndirectionHandler handler) throws Exception(Code)



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



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



getDefaultIndirectionHandlerClass
abstract public Class getDefaultIndirectionHandlerClass()(Code)
Returns the class of a default IndirectionHandler that can be used for this implementaiton if now IndirectionHandlerClass implementation is given.



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



getIndirectionHandlerBaseClass
abstract public Class getIndirectionHandlerBaseClass()(Code)
Returns the class of the base class that the given IndirectionHandler must extend/implement



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



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



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



getRealObject
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
abstract public Class getSetProxyClass()(Code)
Returns the set proxy class. The class used for set proxies



interfaceRequiredForProxyGeneration
boolean interfaceRequiredForProxyGeneration()(Code)
Method that returns whether or not this ProxyFactory can generate reference Proxies for classes regardless if they extend an interface or not.



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
abstract 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
abstract public void setIndirectionHandlerClass(Class indirectionHandlerClass)(Code)
Sets the indirection handler class.
Parameters:
  indirectionHandlerClass - The class for indirection handlers



setListProxyClass
abstract 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
abstract 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:
  object - The object for which a string representation shall be generated The string representation



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.