java.lang.Object
io.ebean.bean.InterceptReadWrite
- All Implemented Interfaces:
EntityBeanIntercept,Serializable
This is the object added to every entity bean using byte code enhancement.
This provides the mechanisms to support deferred fetching of reference beans and oldValues generation for concurrency checking.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEXPERIMENTAL - Constructor only for use by serialization frameworks.InterceptReadWrite(Object ownerBean) Create a intercept with a given entity. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd and return a dirty property hash.voidaddDirtyPropertyNames(Set<String> props, String prefix) Recursively add dirty properties.voidaddDirtyPropertyValues(BeanDiffVisitor visitor) Recursively add dirty properties.voidaddDirtyPropertyValues(Map<String, ValuePair> dirtyValues, String prefix) Recursively add dirty properties.voidClear the getter callback.intfindProperty(String propertyName) Finds the index position of a given property.boolean[]Return the array of flags indicating the dirty properties.Return a dirty property hash taking into account embedded beans.Return the set of dirty properties.Return a map of dirty properties with their new and old values.Return the owning bean for an embedded bean.intReturn the property index (for the parent) of this embedded bean.Return the property that triggered the lazy load.intReturn the index of the property that triggered the lazy load.boolean[]Return a loaded property hash.Return the set of property names for a partially loaded bean.Returns the loadErrors.getOrigValue(int propertyIndex) Return the original value that was changed via an update.getOwner()Return the 'owning' entity bean.Return the ownerId (IdClass).Return the persistenceContext.getProperty(int propertyIndex) Return the property name for the given property.intReturn the number of properties.intReturn the sort order value for an order column.booleanhasDirtyProperty(Set<String> propertyNames) Return true if any of the given property names are dirty.booleanhasIdOnly(int idIndex) Return true if only the Id property has been loaded.voidinitialisedMany(int propertyIndex) Called when a BeanCollection is initialised automatically.booleanisChangedProp(int i) booleanisChangedProperty(int propertyIndex) Return true if the property is considered changed.booleanisDirty()Return true if this bean has been directly modified (it has oldValues) or if any embedded beans are either new or dirty (and hence need saving).booleanisDirtyProperty(int propertyIndex) Return true if the property was changed or if it is embedded and one of its embedded properties is dirty.booleanReturn true if lazy loading is disabled.booleanisEmbeddedNewOrDirty(Object embeddedBean) Return true if the embedded bean is new or dirty and hence needs saving.booleanReturn true if the bean is fully loaded (not a partial).booleanReturn true if the bean is marked as having failed lazy loading.booleanisLoaded()Return true if the entity has been loaded.booleanReturn true if this bean was loaded from L2 bean cache.booleanisLoadedProperty(int propertyIndex) Return true if the property is loaded.booleanisNew()Return true if this entity bean is new and not yet saved.booleanReturn true if the entity bean is new or dirty (and should be saved).booleanbooleanReturn true if the bean is partially loaded.booleanReturn true if the bean should be treated as readOnly.booleanReturn true if the entity is a reference.booleanisUpdate()Return true if the entity should be updated.voidloadBean(int loadProperty) Load the bean when it is a reference.voidloadBeanInternal(int loadProperty, BeanLoader loader) Invoke the lazy loading.voidmarkPropertyAsChanged(int propertyIndex) Explicitly mark a property as having been changed.mutableInfo(int propertyIndex) Return the MutableValueInfo for the given property or null.voidmutableInfo(int propertyIndex, MutableValueInfo info) Set the MutableValueInfo for the given property.mutableNext(int propertyIndex) Update the 'next' mutable info returning the content that was obtained via dirty detection.voidmutableNext(int propertyIndex, MutableValueNext next) Dirty detection set the next mutable property content and info .voidpreGetId()Called prior to Id property getter.voidpreGetter(int propertyIndex) Method that is called prior to a getter method on the actual entity.voidpreGetterCallback(int propertyIndex) voidpreSetter(boolean intercept, int propertyIndex, boolean oldValue, boolean newValue) Check for primitive boolean.voidpreSetter(boolean intercept, int propertyIndex, byte[] oldValue, byte[] newValue) Check for primitive byte array.voidpreSetter(boolean intercept, int propertyIndex, byte oldValue, byte newValue) Check for primitive byte.voidpreSetter(boolean intercept, int propertyIndex, char[] oldValue, char[] newValue) Check for primitive char array.voidpreSetter(boolean intercept, int propertyIndex, char oldValue, char newValue) Check for primitive char.voidpreSetter(boolean intercept, int propertyIndex, double oldValue, double newValue) Check for primitive double.voidpreSetter(boolean intercept, int propertyIndex, float oldValue, float newValue) Check for primitive float.voidpreSetter(boolean intercept, int propertyIndex, int oldValue, int newValue) Check for primitive int.voidpreSetter(boolean intercept, int propertyIndex, long oldValue, long newValue) Check for primitive long.voidpreSetter(boolean intercept, int propertyIndex, short oldValue, short newValue) Check for primitive short.voidCheck to see if the values are not equal.voidpreSetterMany(boolean interceptField, int propertyIndex, Object oldValue, Object newValue) OneToMany and ManyToMany only set loaded state.voidregisterGetterCallback(PreGetterCallback getterCallback) Register the callback to be triggered when getter is called.voidsetBeanLoader(BeanLoader beanLoader) Set the BeanLoader.voidsetBeanLoader(BeanLoader beanLoader, PersistenceContext ctx) Set the BeanLoader with PersistenceContext.voidsetChangedProperty(int propertyIndex) voidsetChangedPropertyValue(int propertyIndex, boolean setDirtyState, Object origValue) voidsetChangeLoaded(int propertyIndex) voidsetDeletedFromCollection(boolean deletedFromCollection) Set if the entity was deleted from a BeanCollection.voidsetDirty(boolean dirty) Marks the bean as dirty.voidvoidsetDisableLazyLoad(boolean disableLazyLoad) Set true to turn off lazy loading.voidsetEmbeddedDirty(int embeddedProperty) Called by an embedded bean onto its owner.voidsetEmbeddedLoaded(Object embeddedBean) Set the loaded status for the embedded bean.voidsetEmbeddedOwner(EntityBean parentBean, int embeddedOwnerIndex) Set the embedded beans owning bean.voidsetEmbeddedPropertyDirty(int propertyIndex) Set that an embedded bean has had one of its properties changed.voidsetForceUpdate(boolean forceUpdate) Set the bean to be updated when persisted (for merge).voidsetFullyLoadedBean(boolean fullyLoadedBean) Set true when the bean is fully loaded (not a partial).voidsetLazyLoadFailure(Object ownerId) Set lazy load failure flag.voidSet the loaded state to true.voidsetLoadedFromCache(boolean loadedFromCache) Set true when the bean has been loaded from L2 bean cache.voidWhen finished loading for lazy or refresh on an already partially populated bean.voidsetLoadedProperty(int propertyIndex) Set the property to be loaded.voidSet all properties to be loaded (post insert).voidsetLoadError(int propertyIndex, Exception t) Set the load error that happened on this property.voidsetNew()Set the bean into NEW state.voidFor forced update on a 'New' bean set all the loaded properties to changed.voidsetNodeUsageCollector(NodeUsageCollector usageCollector) Turn on profile collection.voidsetOldValue(int propertyIndex, Object oldValue) Explicitly set an old value with force (the old value is forced even it is already set).voidsetOriginalValue(int propertyIndex, Object value) voidsetOriginalValueForce(int propertyIndex, Object value) Set old value but force it to be set regardless if it already has a value.voidsetOwnerId(Object ownerId) Set the ownerId (IdClass).voidsetPersistenceContext(PersistenceContext persistenceContext) Set the persistenceContext.voidsetPropertyLoaded(String propertyName, boolean loaded) Set the loaded state of the property given it's name.voidsetPropertyUnloaded(int propertyIndex) Set the property to be treated as unloaded.voidsetReadOnly(boolean readOnly) Set the readOnly status.voidsetReference(int idPos) Set this as a reference object.voidsetSortOrder(int sortOrder) Set the sort order value for an order column.
-
Constructor Details
-
InterceptReadWrite
Create a intercept with a given entity. -
InterceptReadWrite
public InterceptReadWrite()EXPERIMENTAL - Constructor only for use by serialization frameworks.
-
-
Method Details
-
getOwner
Description copied from interface:EntityBeanInterceptReturn the 'owning' entity bean.- Specified by:
getOwnerin interfaceEntityBeanIntercept
-
getPersistenceContext
Description copied from interface:EntityBeanInterceptReturn the persistenceContext.- Specified by:
getPersistenceContextin interfaceEntityBeanIntercept
-
setPersistenceContext
Description copied from interface:EntityBeanInterceptSet the persistenceContext.- Specified by:
setPersistenceContextin interfaceEntityBeanIntercept
-
setNodeUsageCollector
Description copied from interface:EntityBeanInterceptTurn on profile collection.- Specified by:
setNodeUsageCollectorin interfaceEntityBeanIntercept
-
getOwnerId
Description copied from interface:EntityBeanInterceptReturn the ownerId (IdClass).- Specified by:
getOwnerIdin interfaceEntityBeanIntercept
-
setOwnerId
Description copied from interface:EntityBeanInterceptSet the ownerId (IdClass).- Specified by:
setOwnerIdin interfaceEntityBeanIntercept
-
getEmbeddedOwner
Description copied from interface:EntityBeanInterceptReturn the owning bean for an embedded bean.- Specified by:
getEmbeddedOwnerin interfaceEntityBeanIntercept
-
getEmbeddedOwnerIndex
public int getEmbeddedOwnerIndex()Description copied from interface:EntityBeanInterceptReturn the property index (for the parent) of this embedded bean.- Specified by:
getEmbeddedOwnerIndexin interfaceEntityBeanIntercept
-
clearGetterCallback
public void clearGetterCallback()Description copied from interface:EntityBeanInterceptClear the getter callback.- Specified by:
clearGetterCallbackin interfaceEntityBeanIntercept
-
registerGetterCallback
Description copied from interface:EntityBeanInterceptRegister the callback to be triggered when getter is called. This is used primarily to automatically flush the JDBC batch.- Specified by:
registerGetterCallbackin interfaceEntityBeanIntercept
-
setEmbeddedOwner
Description copied from interface:EntityBeanInterceptSet the embedded beans owning bean.- Specified by:
setEmbeddedOwnerin interfaceEntityBeanIntercept
-
setBeanLoader
Description copied from interface:EntityBeanInterceptSet the BeanLoader with PersistenceContext.- Specified by:
setBeanLoaderin interfaceEntityBeanIntercept
-
setBeanLoader
Description copied from interface:EntityBeanInterceptSet the BeanLoader.- Specified by:
setBeanLoaderin interfaceEntityBeanIntercept
-
isFullyLoadedBean
public boolean isFullyLoadedBean()Description copied from interface:EntityBeanInterceptReturn true if the bean is fully loaded (not a partial).- Specified by:
isFullyLoadedBeanin interfaceEntityBeanIntercept
-
setFullyLoadedBean
public void setFullyLoadedBean(boolean fullyLoadedBean) Description copied from interface:EntityBeanInterceptSet true when the bean is fully loaded (not a partial).- Specified by:
setFullyLoadedBeanin interfaceEntityBeanIntercept
-
isPartial
public boolean isPartial()Description copied from interface:EntityBeanInterceptReturn true if the bean is partially loaded.- Specified by:
isPartialin interfaceEntityBeanIntercept
-
isDirty
public boolean isDirty()Description copied from interface:EntityBeanInterceptReturn true if this bean has been directly modified (it has oldValues) or if any embedded beans are either new or dirty (and hence need saving).- Specified by:
isDirtyin interfaceEntityBeanIntercept
-
setEmbeddedDirty
public void setEmbeddedDirty(int embeddedProperty) Description copied from interface:EntityBeanInterceptCalled by an embedded bean onto its owner.- Specified by:
setEmbeddedDirtyin interfaceEntityBeanIntercept
-
setDirty
public void setDirty(boolean dirty) Description copied from interface:EntityBeanInterceptMarks the bean as dirty.- Specified by:
setDirtyin interfaceEntityBeanIntercept
-
isNew
public boolean isNew()Description copied from interface:EntityBeanInterceptReturn true if this entity bean is new and not yet saved.- Specified by:
isNewin interfaceEntityBeanIntercept
-
isNewOrDirty
public boolean isNewOrDirty()Description copied from interface:EntityBeanInterceptReturn true if the entity bean is new or dirty (and should be saved).- Specified by:
isNewOrDirtyin interfaceEntityBeanIntercept
-
hasIdOnly
public boolean hasIdOnly(int idIndex) Description copied from interface:EntityBeanInterceptReturn true if only the Id property has been loaded.- Specified by:
hasIdOnlyin interfaceEntityBeanIntercept
-
isReference
public boolean isReference()Description copied from interface:EntityBeanInterceptReturn true if the entity is a reference.- Specified by:
isReferencein interfaceEntityBeanIntercept
-
setReference
public void setReference(int idPos) Description copied from interface:EntityBeanInterceptSet this as a reference object.- Specified by:
setReferencein interfaceEntityBeanIntercept
-
setLoadedFromCache
public void setLoadedFromCache(boolean loadedFromCache) Description copied from interface:EntityBeanInterceptSet true when the bean has been loaded from L2 bean cache. The effect of this is that we should skip the cache if there is subsequent lazy loading (bean cache partially populated).- Specified by:
setLoadedFromCachein interfaceEntityBeanIntercept
-
isLoadedFromCache
public boolean isLoadedFromCache()Description copied from interface:EntityBeanInterceptReturn true if this bean was loaded from L2 bean cache.- Specified by:
isLoadedFromCachein interfaceEntityBeanIntercept
-
isReadOnly
public boolean isReadOnly()Description copied from interface:EntityBeanInterceptReturn true if the bean should be treated as readOnly. If a setter method is called when it is readOnly an Exception is thrown.- Specified by:
isReadOnlyin interfaceEntityBeanIntercept
-
setReadOnly
public void setReadOnly(boolean readOnly) Description copied from interface:EntityBeanInterceptSet the readOnly status. If readOnly then calls to setter methods through an exception.- Specified by:
setReadOnlyin interfaceEntityBeanIntercept
-
setForceUpdate
public void setForceUpdate(boolean forceUpdate) Description copied from interface:EntityBeanInterceptSet the bean to be updated when persisted (for merge).- Specified by:
setForceUpdatein interfaceEntityBeanIntercept
-
isUpdate
public boolean isUpdate()Description copied from interface:EntityBeanInterceptReturn true if the entity should be updated.- Specified by:
isUpdatein interfaceEntityBeanIntercept
-
isLoaded
public boolean isLoaded()Description copied from interface:EntityBeanInterceptReturn true if the entity has been loaded.- Specified by:
isLoadedin interfaceEntityBeanIntercept
-
setNew
public void setNew()Description copied from interface:EntityBeanInterceptSet the bean into NEW state.- Specified by:
setNewin interfaceEntityBeanIntercept
-
setLoaded
public void setLoaded()Description copied from interface:EntityBeanInterceptSet the loaded state to true.Calls to setter methods after the bean is loaded can result in 'Old Values' being created.
Worth noting that this is also set after a insert/update. By doing so it 'resets' the bean for making further changes and saving again.
- Specified by:
setLoadedin interfaceEntityBeanIntercept
-
setLoadedLazy
public void setLoadedLazy()Description copied from interface:EntityBeanInterceptWhen finished loading for lazy or refresh on an already partially populated bean.- Specified by:
setLoadedLazyin interfaceEntityBeanIntercept
-
setLazyLoadFailure
Description copied from interface:EntityBeanInterceptSet lazy load failure flag.- Specified by:
setLazyLoadFailurein interfaceEntityBeanIntercept
-
isLazyLoadFailure
public boolean isLazyLoadFailure()Description copied from interface:EntityBeanInterceptReturn true if the bean is marked as having failed lazy loading.- Specified by:
isLazyLoadFailurein interfaceEntityBeanIntercept
-
isDisableLazyLoad
public boolean isDisableLazyLoad()Description copied from interface:EntityBeanInterceptReturn true if lazy loading is disabled.- Specified by:
isDisableLazyLoadin interfaceEntityBeanIntercept
-
setDisableLazyLoad
public void setDisableLazyLoad(boolean disableLazyLoad) Description copied from interface:EntityBeanInterceptSet true to turn off lazy loading.- Specified by:
setDisableLazyLoadin interfaceEntityBeanIntercept
-
setEmbeddedLoaded
Description copied from interface:EntityBeanInterceptSet the loaded status for the embedded bean.- Specified by:
setEmbeddedLoadedin interfaceEntityBeanIntercept
-
isEmbeddedNewOrDirty
Description copied from interface:EntityBeanInterceptReturn true if the embedded bean is new or dirty and hence needs saving.- Specified by:
isEmbeddedNewOrDirtyin interfaceEntityBeanIntercept
-
getOrigValue
Description copied from interface:EntityBeanInterceptReturn the original value that was changed via an update.- Specified by:
getOrigValuein interfaceEntityBeanIntercept
-
findProperty
Description copied from interface:EntityBeanInterceptFinds the index position of a given property. Returns -1 if the property can not be found.- Specified by:
findPropertyin interfaceEntityBeanIntercept
-
getProperty
Description copied from interface:EntityBeanInterceptReturn the property name for the given property.- Specified by:
getPropertyin interfaceEntityBeanIntercept
-
getPropertyLength
public int getPropertyLength()Description copied from interface:EntityBeanInterceptReturn the number of properties.- Specified by:
getPropertyLengthin interfaceEntityBeanIntercept
-
setPropertyLoaded
Description copied from interface:EntityBeanInterceptSet the loaded state of the property given it's name.- Specified by:
setPropertyLoadedin interfaceEntityBeanIntercept
-
setPropertyUnloaded
public void setPropertyUnloaded(int propertyIndex) Description copied from interface:EntityBeanInterceptSet the property to be treated as unloaded. Used for properties initialised in default constructor.- Specified by:
setPropertyUnloadedin interfaceEntityBeanIntercept
-
setLoadedProperty
public void setLoadedProperty(int propertyIndex) Description copied from interface:EntityBeanInterceptSet the property to be loaded.- Specified by:
setLoadedPropertyin interfaceEntityBeanIntercept
-
setLoadedPropertyAll
public void setLoadedPropertyAll()Description copied from interface:EntityBeanInterceptSet all properties to be loaded (post insert).- Specified by:
setLoadedPropertyAllin interfaceEntityBeanIntercept
-
isLoadedProperty
public boolean isLoadedProperty(int propertyIndex) Description copied from interface:EntityBeanInterceptReturn true if the property is loaded.- Specified by:
isLoadedPropertyin interfaceEntityBeanIntercept
-
isChangedProperty
public boolean isChangedProperty(int propertyIndex) Description copied from interface:EntityBeanInterceptReturn true if the property is considered changed.- Specified by:
isChangedPropertyin interfaceEntityBeanIntercept
-
isDirtyProperty
public boolean isDirtyProperty(int propertyIndex) Description copied from interface:EntityBeanInterceptReturn true if the property was changed or if it is embedded and one of its embedded properties is dirty.- Specified by:
isDirtyPropertyin interfaceEntityBeanIntercept
-
markPropertyAsChanged
public void markPropertyAsChanged(int propertyIndex) Description copied from interface:EntityBeanInterceptExplicitly mark a property as having been changed.- Specified by:
markPropertyAsChangedin interfaceEntityBeanIntercept
-
setChangedProperty
public void setChangedProperty(int propertyIndex) - Specified by:
setChangedPropertyin interfaceEntityBeanIntercept
-
setChangeLoaded
public void setChangeLoaded(int propertyIndex) - Specified by:
setChangeLoadedin interfaceEntityBeanIntercept
-
setEmbeddedPropertyDirty
public void setEmbeddedPropertyDirty(int propertyIndex) Description copied from interface:EntityBeanInterceptSet that an embedded bean has had one of its properties changed.- Specified by:
setEmbeddedPropertyDirtyin interfaceEntityBeanIntercept
-
setOriginalValue
- Specified by:
setOriginalValuein interfaceEntityBeanIntercept
-
setOriginalValueForce
Description copied from interface:EntityBeanInterceptSet old value but force it to be set regardless if it already has a value.- Specified by:
setOriginalValueForcein interfaceEntityBeanIntercept
-
setNewBeanForUpdate
public void setNewBeanForUpdate()Description copied from interface:EntityBeanInterceptFor forced update on a 'New' bean set all the loaded properties to changed.- Specified by:
setNewBeanForUpdatein interfaceEntityBeanIntercept
-
getLoadedPropertyNames
Description copied from interface:EntityBeanInterceptReturn the set of property names for a partially loaded bean.- Specified by:
getLoadedPropertyNamesin interfaceEntityBeanIntercept
-
getDirtyProperties
public boolean[] getDirtyProperties()Description copied from interface:EntityBeanInterceptReturn the array of flags indicating the dirty properties.- Specified by:
getDirtyPropertiesin interfaceEntityBeanIntercept
-
getDirtyPropertyNames
Description copied from interface:EntityBeanInterceptReturn the set of dirty properties.- Specified by:
getDirtyPropertyNamesin interfaceEntityBeanIntercept
-
addDirtyPropertyNames
Description copied from interface:EntityBeanInterceptRecursively add dirty properties.- Specified by:
addDirtyPropertyNamesin interfaceEntityBeanIntercept
-
hasDirtyProperty
Description copied from interface:EntityBeanInterceptReturn true if any of the given property names are dirty.- Specified by:
hasDirtyPropertyin interfaceEntityBeanIntercept
-
getDirtyValues
Description copied from interface:EntityBeanInterceptReturn a map of dirty properties with their new and old values.- Specified by:
getDirtyValuesin interfaceEntityBeanIntercept
-
addDirtyPropertyValues
Description copied from interface:EntityBeanInterceptRecursively add dirty properties.- Specified by:
addDirtyPropertyValuesin interfaceEntityBeanIntercept
-
addDirtyPropertyValues
Description copied from interface:EntityBeanInterceptRecursively add dirty properties.- Specified by:
addDirtyPropertyValuesin interfaceEntityBeanIntercept
-
getDirtyPropertyKey
Description copied from interface:EntityBeanInterceptReturn a dirty property hash taking into account embedded beans.- Specified by:
getDirtyPropertyKeyin interfaceEntityBeanIntercept
-
addDirtyPropertyKey
Description copied from interface:EntityBeanInterceptAdd and return a dirty property hash.- Specified by:
addDirtyPropertyKeyin interfaceEntityBeanIntercept
-
getLoadedPropertyKey
Description copied from interface:EntityBeanInterceptReturn a loaded property hash.- Specified by:
getLoadedPropertyKeyin interfaceEntityBeanIntercept
-
getLoaded
public boolean[] getLoaded()- Specified by:
getLoadedin interfaceEntityBeanIntercept
-
getLazyLoadPropertyIndex
public int getLazyLoadPropertyIndex()Description copied from interface:EntityBeanInterceptReturn the index of the property that triggered the lazy load.- Specified by:
getLazyLoadPropertyIndexin interfaceEntityBeanIntercept
-
getLazyLoadProperty
Description copied from interface:EntityBeanInterceptReturn the property that triggered the lazy load.- Specified by:
getLazyLoadPropertyin interfaceEntityBeanIntercept
-
loadBean
public void loadBean(int loadProperty) Description copied from interface:EntityBeanInterceptLoad the bean when it is a reference.- Specified by:
loadBeanin interfaceEntityBeanIntercept
-
loadBeanInternal
Description copied from interface:EntityBeanInterceptInvoke the lazy loading. This method is synchronised externally.- Specified by:
loadBeanInternalin interfaceEntityBeanIntercept
-
initialisedMany
public void initialisedMany(int propertyIndex) Description copied from interface:EntityBeanInterceptCalled when a BeanCollection is initialised automatically.- Specified by:
initialisedManyin interfaceEntityBeanIntercept
-
preGetterCallback
public void preGetterCallback(int propertyIndex) - Specified by:
preGetterCallbackin interfaceEntityBeanIntercept
-
preGetId
public void preGetId()Description copied from interface:EntityBeanInterceptCalled prior to Id property getter.- Specified by:
preGetIdin interfaceEntityBeanIntercept
-
preGetter
public void preGetter(int propertyIndex) Description copied from interface:EntityBeanInterceptMethod that is called prior to a getter method on the actual entity.- Specified by:
preGetterin interfaceEntityBeanIntercept
-
preSetterMany
public void preSetterMany(boolean interceptField, int propertyIndex, Object oldValue, Object newValue) Description copied from interface:EntityBeanInterceptOneToMany and ManyToMany only set loaded state.- Specified by:
preSetterManyin interfaceEntityBeanIntercept
-
setChangedPropertyValue
- Specified by:
setChangedPropertyValuein interfaceEntityBeanIntercept
-
setDirtyStatus
public void setDirtyStatus()- Specified by:
setDirtyStatusin interfaceEntityBeanIntercept
-
preSetter
Description copied from interface:EntityBeanInterceptCheck to see if the values are not equal. If they are not equal then create the old values for use with ConcurrencyMode.ALL.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, boolean oldValue, boolean newValue) Description copied from interface:EntityBeanInterceptCheck for primitive boolean.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, int oldValue, int newValue) Description copied from interface:EntityBeanInterceptCheck for primitive int.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, long oldValue, long newValue) Description copied from interface:EntityBeanInterceptCheck for primitive long.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, double oldValue, double newValue) Description copied from interface:EntityBeanInterceptCheck for primitive double.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, float oldValue, float newValue) Description copied from interface:EntityBeanInterceptCheck for primitive float.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, short oldValue, short newValue) Description copied from interface:EntityBeanInterceptCheck for primitive short.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, char oldValue, char newValue) Description copied from interface:EntityBeanInterceptCheck for primitive char.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, byte oldValue, byte newValue) Description copied from interface:EntityBeanInterceptCheck for primitive byte.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, char[] oldValue, char[] newValue) Description copied from interface:EntityBeanInterceptCheck for primitive char array.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, byte[] oldValue, byte[] newValue) Description copied from interface:EntityBeanInterceptCheck for primitive byte array.- Specified by:
preSetterin interfaceEntityBeanIntercept
-
setOldValue
Description copied from interface:EntityBeanInterceptExplicitly set an old value with force (the old value is forced even it is already set).- Specified by:
setOldValuein interfaceEntityBeanIntercept
-
getSortOrder
public int getSortOrder()Description copied from interface:EntityBeanInterceptReturn the sort order value for an order column.- Specified by:
getSortOrderin interfaceEntityBeanIntercept
-
setSortOrder
public void setSortOrder(int sortOrder) Description copied from interface:EntityBeanInterceptSet the sort order value for an order column.- Specified by:
setSortOrderin interfaceEntityBeanIntercept
-
setDeletedFromCollection
public void setDeletedFromCollection(boolean deletedFromCollection) Description copied from interface:EntityBeanInterceptSet if the entity was deleted from a BeanCollection.- Specified by:
setDeletedFromCollectionin interfaceEntityBeanIntercept
-
isOrphanDelete
public boolean isOrphanDelete()- Specified by:
isOrphanDeletein interfaceEntityBeanIntercept
-
setLoadError
Description copied from interface:EntityBeanInterceptSet the load error that happened on this property.- Specified by:
setLoadErrorin interfaceEntityBeanIntercept
-
getLoadErrors
Description copied from interface:EntityBeanInterceptReturns the loadErrors.- Specified by:
getLoadErrorsin interfaceEntityBeanIntercept
-
isChangedProp
public boolean isChangedProp(int i) - Specified by:
isChangedPropin interfaceEntityBeanIntercept
-
mutableInfo
Description copied from interface:EntityBeanInterceptReturn the MutableValueInfo for the given property or null.- Specified by:
mutableInfoin interfaceEntityBeanIntercept
-
mutableInfo
Description copied from interface:EntityBeanInterceptSet the MutableValueInfo for the given property.- Specified by:
mutableInfoin interfaceEntityBeanIntercept
-
mutableNext
Description copied from interface:EntityBeanInterceptDirty detection set the next mutable property content and info .Set here as the mutable property dirty detection is based on json content comparison. We only want to perform the json serialisation once so storing it here as part of dirty detection so that we can get it back to bind in insert or update etc.
- Specified by:
mutableNextin interfaceEntityBeanIntercept
-
mutableNext
Description copied from interface:EntityBeanInterceptUpdate the 'next' mutable info returning the content that was obtained via dirty detection.- Specified by:
mutableNextin interfaceEntityBeanIntercept
-