| Modifier and Type | Method and Description |
|---|---|
| public HibernateProxy | Returns: The generated proxy.The id value for the proxy to be generated. id, SharedSessionContractImplementor The session to which the generated proxy will be
associated. session)Create a new proxy instance |
| public void | postInstantiate(String
The name of the entity for which this factory should
generate proxies. entityName, Class<T> The entity class for which to generate proxies;
not always the same as the entityName. persistentClass, Set<Class<T>> The interfaces to expose in the generated proxy;
interfaces, Method HibernateProxy is already included in this collection.Reference to the identifier getter method;
invocation on this method should not force initialization getIdentifierMethod, Method Reference to the identifier setter method;
invocation on this method should not force initialization setIdentifierMethod, CompositeType For composite identifier types, a reference to
the componentIdType)type of the identifier
property; again accessing the id should generally not cause
initialization - but need to bear in mind Called immediately after instantiation of this factory. |
| getProxy | back to summary |
|---|---|
| public HibernateProxy getProxy(Serializable id, SharedSessionContractImplementor session) throws HibernateException Create a new proxy instance
| |
| postInstantiate | back to summary |
|---|---|
| public void postInstantiate(String entityName, Class<T> persistentClass, Set<Class<T>> interfaces, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType) throws HibernateException Called immediately after instantiation of this factory. Essentially equivalent to constructor injection, but contracted here via interface.
| |