The factory used to create proxies
Type | Name and description |
---|---|
T |
createProxy(Session session, java.lang.Class<T> type, java.io.Serializable key) Creates a proxy |
java.io.Serializable |
getIdentifier(java.lang.Object obj) Obtains the identifier of an object without initializing the proxy if it is one |
boolean |
isInitialized(java.lang.Object object) Checks whether a given proxy is initialized |
boolean |
isProxy(java.lang.Object object) Checks whether the specified instance is a proxy |
java.lang.Object |
unwrap(java.lang.Object object) Unwraps the given proxy if it is one |
Creates a proxy
- The type of the proxy to createsession
- The session instancetype
- The type of the proxy to createkey
- The key to proxyObtains the identifier of an object without initializing the proxy if it is one
obj
- The objectChecks whether a given proxy is initialized
object
- The object to checkChecks whether the specified instance is a proxy
object
- The object to checkUnwraps the given proxy if it is one
object
- The object