Deprecated
as a consequence of AbstractLazyLoadInterceptor being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private Set | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | LazyAttributeLoadingInterceptor(String entityName, Object identifier, Set<String> lazyFields, SharedSessionContractImplementor session)
|
| identifier | back to summary |
|---|---|
| private final Object identifier | |
| initializedLazyFields | back to summary |
|---|---|
| private Set<String> initializedLazyFields | |
| lazyFields | back to summary |
|---|---|
| private final Set<String> lazyFields | |
| LazyAttributeLoadingInterceptor | back to summary |
|---|---|
| public LazyAttributeLoadingInterceptor(String entityName, Object identifier, Set<String> lazyFields, SharedSessionContractImplementor session) | |
| attributeInitialized | back to summary |
|---|---|
| public void attributeInitialized(String name) Overrides default org. Implements org. Doc from org. Callback from the enhanced class that an attribute has been read or written
| |
| fetchAttribute | back to summary |
|---|---|
| public Object fetchAttribute(final Object target, final String attributeName) Fetches the lazy attribute. The attribute does not get associated with the entity. (To be used by hibernate methods) | |
| getIdentifier | back to summary |
|---|---|
| public Object getIdentifier() Implements org. Doc from org. The id of the entity instance this interceptor is associated with
| |
| getInitializedLazyAttributeNames | back to summary |
|---|---|
| public Set Overrides default org. The names of all lazy attributes which have been initialized
| |
| handleRead | back to summary |
|---|---|
| protected Object handleRead(Object target, String attributeName, Object value) Implements abstract org. Doc from org. Handle the case of reading an attribute. The result is what is returned to the caller
| |
| handleWrite | back to summary |
|---|---|
| protected Object handleWrite(Object target, String attributeName, Object oldValue, Object newValue) Implements abstract org. Doc from org. Handle the case of writing an attribute. The result is what is set as the entity state
| |
| hasAnyUninitializedAttributes | back to summary |
|---|---|
| public boolean hasAnyUninitializedAttributes() | |
| isAttributeLoaded | back to summary |
|---|---|
| public boolean isAttributeLoaded(String fieldName) Overrides default org. Implements org. Doc from org. Callback from the enhanced class that an attribute has been loaded
| |
| isInitializedLazyField | back to summary |
|---|---|
| private boolean isInitializedLazyField(String fieldName) | |
| isLazyAttribute | back to summary |
|---|---|
| private boolean isLazyAttribute(String fieldName) | |
| loadAttribute | back to summary |
|---|---|
| protected Object loadAttribute(final Object target, final String attributeName) | |
| takeCollectionSizeSnapshot | back to summary |
|---|---|
| private void takeCollectionSizeSnapshot(Object target, String fieldName, Object value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |