public abstract class AbstractLazyInitializer
extends java.lang.Object
implements org.hibernate.proxy.LazyInitializer
Modifier | Constructor and Description |
---|---|
protected |
AbstractLazyInitializer()
For serialization from the non-pojo initializers (HHH-3309)
|
protected |
AbstractLazyInitializer(java.lang.String entityName,
java.io.Serializable id,
org.hibernate.engine.spi.SessionImplementor session)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntityName() |
java.io.Serializable |
getIdentifier() |
java.lang.Object |
getImplementation() |
java.lang.Object |
getImplementation(org.hibernate.engine.spi.SessionImplementor s) |
org.hibernate.engine.spi.SessionImplementor |
getSession() |
protected java.lang.Object |
getTarget()
Getter for property 'target'.
|
void |
initialize() |
protected boolean |
isConnectedToSession()
Getter for property 'connectedToSession'.
|
static boolean |
isInitialized(AbstractLazyInitializer obj) |
boolean |
isReadOnly() |
protected java.lang.Boolean |
isReadOnlyBeforeAttachedToSession()
Get the read-only/modifiable setting that should be put in affect when it is
attached to a session.
|
boolean |
isReadOnlySettingAvailable() |
boolean |
isUninitialized() |
boolean |
isUnwrap() |
protected void |
prepareForPossibleSpecialSpecjInitialization() |
static void |
setConfiguration(CdmApplicationRemoteConfiguration conf) |
void |
setIdentifier(java.io.Serializable id) |
void |
setImplementation(java.lang.Object target) |
void |
setReadOnly(boolean readOnly) |
void |
setSession(org.hibernate.engine.spi.SessionImplementor s) |
void |
setUnwrap(boolean unwrap) |
protected void |
specialSpecjInitialization() |
void |
unsetSession() |
protected AbstractLazyInitializer()
protected AbstractLazyInitializer(java.lang.String entityName, java.io.Serializable id, org.hibernate.engine.spi.SessionImplementor session)
entityName
- The name of the entity being proxied.id
- The identifier of the entity being proxied.session
- The session owning the proxy.public final java.lang.String getEntityName()
getEntityName
in interface org.hibernate.proxy.LazyInitializer
public final java.io.Serializable getIdentifier()
getIdentifier
in interface org.hibernate.proxy.LazyInitializer
public final void setIdentifier(java.io.Serializable id)
setIdentifier
in interface org.hibernate.proxy.LazyInitializer
public final boolean isUninitialized()
isUninitialized
in interface org.hibernate.proxy.LazyInitializer
public final org.hibernate.engine.spi.SessionImplementor getSession()
getSession
in interface org.hibernate.proxy.LazyInitializer
public final void setSession(org.hibernate.engine.spi.SessionImplementor s) throws org.hibernate.HibernateException
setSession
in interface org.hibernate.proxy.LazyInitializer
org.hibernate.HibernateException
public final void unsetSession()
unsetSession
in interface org.hibernate.proxy.LazyInitializer
public final void initialize() throws org.hibernate.HibernateException
initialize
in interface org.hibernate.proxy.LazyInitializer
org.hibernate.HibernateException
protected void specialSpecjInitialization()
protected void prepareForPossibleSpecialSpecjInitialization()
protected final boolean isConnectedToSession()
public final java.lang.Object getImplementation()
getImplementation
in interface org.hibernate.proxy.LazyInitializer
public final void setImplementation(java.lang.Object target)
setImplementation
in interface org.hibernate.proxy.LazyInitializer
public final java.lang.Object getImplementation(org.hibernate.engine.spi.SessionImplementor s) throws org.hibernate.HibernateException
getImplementation
in interface org.hibernate.proxy.LazyInitializer
org.hibernate.HibernateException
protected final java.lang.Object getTarget()
getImplementation()
except that this method will not force initialization.public final boolean isReadOnlySettingAvailable()
isReadOnlySettingAvailable
in interface org.hibernate.proxy.LazyInitializer
public final boolean isReadOnly()
isReadOnly
in interface org.hibernate.proxy.LazyInitializer
public final void setReadOnly(boolean readOnly)
setReadOnly
in interface org.hibernate.proxy.LazyInitializer
protected final java.lang.Boolean isReadOnlyBeforeAttachedToSession()
java.lang.IllegalStateException
- if isReadOnlySettingAvailable() == truepublic boolean isUnwrap()
isUnwrap
in interface org.hibernate.proxy.LazyInitializer
public void setUnwrap(boolean unwrap)
setUnwrap
in interface org.hibernate.proxy.LazyInitializer
public static void setConfiguration(CdmApplicationRemoteConfiguration conf)
public static boolean isInitialized(AbstractLazyInitializer obj)
Copyright © 2007-2018. All Rights Reserved.