|Modifier and Type||Method and Description|
Create a new proxy instance
Called immediately after instantiation of this factory.
void postInstantiate(String entityName, Class persistentClass, Set interfaces, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType) throws HibernateException
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;
HibernateProxyis 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
typeof the identifier property; again accessing the id should generally not cause initialization - but need to bear in mind
HibernateException- Indicates a problem completing post instantiation initialization.
HibernateProxy getProxy(Serializable id, SessionImplementor session) throws HibernateException
id- The id value for the proxy to be generated.
session- The session to which the generated proxy will be associated.
HibernateException- Indicates problems generating the requested proxy.
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.