类 JavassistProxyFactory

    • 构造器详细资料

      • JavassistProxyFactory

        public JavassistProxyFactory()
    • 方法详细资料

      • postInstantiate

        public void postInstantiate​(String entityName,
                                    Class persistentClass,
                                    Set<Class> interfaces,
                                    Method getIdentifierMethod,
                                    Method setIdentifierMethod,
                                    CompositeType componentIdType)
                             throws HibernateException
        从接口复制的说明: ProxyFactory
        Called immediately after instantiation of this factory.

        Essentially equivalent to constructor injection, but contracted here via interface.

        指定者:
        postInstantiate 在接口中 ProxyFactory
        参数:
        entityName - The name of the entity for which this factory should generate proxies.
        persistentClass - The entity class for which to generate proxies; not always the same as the entityName.
        interfaces - The interfaces to expose in the generated proxy; HibernateProxy is already included in this collection.
        getIdentifierMethod - Reference to the identifier getter method; invocation on this method should not force initialization
        setIdentifierMethod - Reference to the identifier setter method; invocation on this method should not force initialization
        componentIdType - For composite identifier types, a reference to the type of the identifier property; again accessing the id should generally not cause initialization - but need to bear in mind mappings.
        抛出:
        HibernateException - Indicates a problem completing post instantiation initialization.
      • buildJavassistProxyFactory

        public static javassist.util.proxy.ProxyFactory buildJavassistProxyFactory​(Class persistentClass,
                                                                                   Class[] interfaces)