public interface ProxyFactory extends ProxyHandler
The factory used to create proxies
Type Params | Return Type | Name and description |
---|---|---|
<T> |
public T |
createProxy(Session session, java.lang.Class<T> type, java.io.Serializable key) Creates a proxy |
<T, K extends Serializable> |
public T |
createProxy(Session session, AssociationQueryExecutor<K, T> executor, K associationKey) Creates a proxy |
Methods inherited from class | Name |
---|---|
interface ProxyHandler |
getIdentifier, getProxiedClass, initialize, isInitialized, isInitialized, isProxy, unwrap |
Creates a proxy
T
- The type of the proxy to createsession
- The session instancetype
- The type of the proxy to createkey
- The key to proxyCreates a proxy
T
- The type of the proxy to createsession
- The session instanceexecutor
- The query executorassociationKey
- The key to proxy