public interface LazyInitializer
| Modifier and Type | Method and Description |
|---|---|
String |
getEntityName()
The entity-name of the entity our owning proxy represents.
|
Object |
getIdentifier()
Retrieve the identifier value for the enity our owning proxy represents.
|
Object |
getImplementation() |
Object |
getOwner() |
PersistenceDelegator |
getPersistenceDelegator()
Get the session to which this proxy is associated, or null if it is not
attached.
|
Class<?> |
getPersistentClass()
Get the actual class of the entity.
|
void |
initialize()
Initialize the proxy, fetching the target entity if necessary.
|
boolean |
isUninitialized()
Is the proxy uninitialzed?.
|
boolean |
isUnwrap()
Checks if is unwrap.
|
void |
setIdentifier(Object id)
Set the identifier value for the enity our owning proxy represents.
|
void |
setImplementation(Object paramObject) |
void |
setInitialized(boolean initialized) |
void |
setOwner(Object owner) |
void |
setUnwrap(boolean unwrap)
Sets the unwrap.
|
void |
unsetPersistenceDelegator()
Unset this initializer's reference to session.
|
void initialize()
throws javax.persistence.PersistenceException
javax.persistence.PersistenceException - the persistence exceptionObject getIdentifier()
void setIdentifier(Object id)
id - The identifier value.String getEntityName()
Class<?> getPersistentClass()
getEntityName()
should be used instead.boolean isUninitialized()
PersistenceDelegator getPersistenceDelegator()
void unsetPersistenceDelegator()
void setUnwrap(boolean unwrap)
unwrap - the new unwrapboolean isUnwrap()
Object getImplementation()
void setImplementation(Object paramObject)
void setOwner(Object owner) throws javax.persistence.PersistenceException
javax.persistence.PersistenceExceptionObject getOwner() throws javax.persistence.PersistenceException
javax.persistence.PersistenceExceptionvoid setInitialized(boolean initialized)
Copyright © 2015. All Rights Reserved.