Class CGLibLazyProxyFactory

  • All Implemented Interfaces:
    LazyProxyFactory

    public class CGLibLazyProxyFactory
    extends java.lang.Object
    implements LazyProxyFactory
    i have to admit, there are plenty of open questions for me on that Key-business...
    Author:
    uwe schaefer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends java.util.Collection>
      T
      createListProxy​(Datastore datastore, T listToProxy, java.lang.Class referenceObjClass, boolean ignoreMissing)
      Creates a proxy for a List.
      <T extends java.util.Map>
      T
      createMapProxy​(Datastore datastore, T mapToProxy, java.lang.Class referenceObjClass, boolean ignoreMissing)
      Creates a proxy for a Map.
      <T> T createProxy​(Datastore datastore, java.lang.Class<T> targetClass, Key<T> key, boolean ignoreMissing)
      Creates a proxy for a Class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CGLibLazyProxyFactory

        public CGLibLazyProxyFactory()
    • Method Detail

      • createListProxy

        public <T extends java.util.Collection> T createListProxy​(Datastore datastore,
                                                                  T listToProxy,
                                                                  java.lang.Class referenceObjClass,
                                                                  boolean ignoreMissing)
        Description copied from interface: LazyProxyFactory
        Creates a proxy for a List.
        Specified by:
        createListProxy in interface LazyProxyFactory
        Type Parameters:
        T - the type of the entities
        Parameters:
        datastore - the Datastore to use when fetching this reference
        listToProxy - the list to proxy
        referenceObjClass - the type of the referenced objects
        ignoreMissing - ignore references that don't exist in the database
        Returns:
        the proxy
      • createMapProxy

        public <T extends java.util.Map> T createMapProxy​(Datastore datastore,
                                                          T mapToProxy,
                                                          java.lang.Class referenceObjClass,
                                                          boolean ignoreMissing)
        Description copied from interface: LazyProxyFactory
        Creates a proxy for a Map.
        Specified by:
        createMapProxy in interface LazyProxyFactory
        Type Parameters:
        T - the type of the entities
        Parameters:
        datastore - the Datastore to use when fetching this reference
        mapToProxy - the map to proxy
        referenceObjClass - the type of the referenced objects
        ignoreMissing - ignore references that don't exist in the database
        Returns:
        the proxy
      • createProxy

        public <T> T createProxy​(Datastore datastore,
                                 java.lang.Class<T> targetClass,
                                 Key<T> key,
                                 boolean ignoreMissing)
        Description copied from interface: LazyProxyFactory
        Creates a proxy for a Class.
        Specified by:
        createProxy in interface LazyProxyFactory
        Type Parameters:
        T - the type of the entity
        Parameters:
        datastore - the Datastore to use when fetching this reference
        targetClass - the referenced object's Class
        key - the Key of the reference
        ignoreMissing - ignore references that don't exist in the database
        Returns:
        the proxy