|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.core.proxy.ProxyFactory
Factory class for creating instances of the indirection handler used by OJB's proxies, and for the collection proxies.
| Constructor Summary | |
ProxyFactory()
|
|
| Method Summary | |
static ManageableCollection |
createCollectionProxy(PBKey brokerKey,
Query query,
java.lang.Class collectionClass)
Create a Collection Proxy for a given query. |
static IndirectionHandler |
createIndirectionHandler(PBKey brokerKey,
Identity id)
Creates a new indirection handler instance. |
static java.lang.Class |
getCollectionProxyClass()
Returns the collection proxy class. |
static java.lang.Class |
getIndirectionHandlerClass()
Returns the indirection handler class. |
static java.lang.Class |
getListProxyClass()
Returns the list proxy class. |
static java.lang.Class |
getSetProxyClass()
Returns the set proxy class. |
static void |
setCollectionProxyClass(java.lang.Class collectionProxyClass)
Dets the proxy class to use for generic collection classes implementing the Collection interface. |
static void |
setIndirectionHandlerClass(java.lang.Class indirectionHandlerClass)
Sets the indirection handler class. |
static void |
setListProxyClass(java.lang.Class listProxyClass)
Dets the proxy class to use for collection classes that implement the List interface. |
static void |
setSetProxyClass(java.lang.Class setProxyClass)
Dets the proxy class to use for collection classes that implement the Set interface. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProxyFactory()
| Method Detail |
public static java.lang.Class getIndirectionHandlerClass()
public static void setIndirectionHandlerClass(java.lang.Class indirectionHandlerClass)
indirectionHandlerClass - The class for indirection handlers
public static IndirectionHandler createIndirectionHandler(PBKey brokerKey,
Identity id)
brokerKey - The key of the persistence brokerid - The subject's ids
public static java.lang.Class getListProxyClass()
public static void setListProxyClass(java.lang.Class listProxyClass)
List interface.
Notes that the proxy class must implement the List interface, and have a constructor
of the signature (PBKey, Class, Query).
listProxyClass - The proxy classpublic static java.lang.Class getSetProxyClass()
public static void setSetProxyClass(java.lang.Class setProxyClass)
Set interface.
setProxyClass - The proxy classpublic static java.lang.Class getCollectionProxyClass()
public static void setCollectionProxyClass(java.lang.Class collectionProxyClass)
Collection interface.
collectionProxyClass - The proxy class
public static ManageableCollection createCollectionProxy(PBKey brokerKey,
Query query,
java.lang.Class collectionClass)
brokerKey - The key of the persistence brokerquery - The querycollectionClass - The class to build the proxy for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||