java.lang.Object
io.ebean.bean.InterceptReadOnly
- All Implemented Interfaces:
EntityBeanIntercept
,Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add and return a dirty property hash.void
addDirtyPropertyNames
(Set<String> props, String prefix) Recursively add dirty properties.void
addDirtyPropertyValues
(BeanDiffVisitor visitor) Recursively add dirty properties.void
addDirtyPropertyValues
(Map<String, ValuePair> dirtyValues, String prefix) Recursively add dirty properties.void
Clear the getter callback.int
findProperty
(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.int
Return the property index (for the parent) of this embedded bean.Return the property that triggered the lazy load.int
Return 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.int
Return the number of properties.int
Return the sort order value for an order column.boolean
hasDirtyProperty
(Set<String> propertyNames) Return true if any of the given property names are dirty.boolean
hasIdOnly
(int idIndex) Return true if only the Id property has been loaded.void
initialisedMany
(int propertyIndex) Called when a BeanCollection is initialised automatically.boolean
isChangedProp
(int i) boolean
isChangedProperty
(int propertyIndex) Return true if the property is considered changed.boolean
isDirty()
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).boolean
isDirtyProperty
(int propertyIndex) Return true if the property was changed or if it is embedded and one of its embedded properties is dirty.boolean
Return true if lazy loading is disabled.boolean
isEmbeddedNewOrDirty
(Object embeddedBean) Return true if the embedded bean is new or dirty and hence needs saving.boolean
Return true if the bean is fully loaded (not a partial).boolean
Return true if the bean is marked as having failed lazy loading.boolean
isLoaded()
Return true if the entity has been loaded.boolean
Return true if this bean was loaded from L2 bean cache.boolean
isLoadedProperty
(int propertyIndex) Return true if the property is loaded.boolean
isNew()
Return true if this entity bean is new and not yet saved.boolean
Return true if the entity bean is new or dirty (and should be saved).boolean
boolean
Return true if the bean is partially loaded.boolean
Return true if the bean should be treated as readOnly.boolean
Return true if the entity is a reference.boolean
isUpdate()
Return true if the entity should be updated.void
loadBean
(int loadProperty) Load the bean when it is a reference.void
loadBeanInternal
(int loadProperty, BeanLoader loader) Invoke the lazy loading.void
markPropertyAsChanged
(int propertyIndex) Explicitly mark a property as having been changed.mutableInfo
(int propertyIndex) Return the MutableValueInfo for the given property or null.void
mutableInfo
(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.void
mutableNext
(int propertyIndex, MutableValueNext next) Dirty detection set the next mutable property content and info .void
preGetId()
Called prior to Id property getter.void
preGetter
(int propertyIndex) Method that is called prior to a getter method on the actual entity.void
preGetterCallback
(int propertyIndex) void
preSetter
(boolean intercept, int propertyIndex, boolean oldValue, boolean newValue) Check for primitive boolean.void
preSetter
(boolean intercept, int propertyIndex, byte[] oldValue, byte[] newValue) Check for primitive byte array.void
preSetter
(boolean intercept, int propertyIndex, byte oldValue, byte newValue) Check for primitive byte.void
preSetter
(boolean intercept, int propertyIndex, char[] oldValue, char[] newValue) Check for primitive char array.void
preSetter
(boolean intercept, int propertyIndex, char oldValue, char newValue) Check for primitive char.void
preSetter
(boolean intercept, int propertyIndex, double oldValue, double newValue) Check for primitive double.void
preSetter
(boolean intercept, int propertyIndex, float oldValue, float newValue) Check for primitive float.void
preSetter
(boolean intercept, int propertyIndex, int oldValue, int newValue) Check for primitive int.void
preSetter
(boolean intercept, int propertyIndex, long oldValue, long newValue) Check for primitive long.void
preSetter
(boolean intercept, int propertyIndex, short oldValue, short newValue) Check for primitive short.void
Check to see if the values are not equal.void
preSetterMany
(boolean interceptField, int propertyIndex, Object oldValue, Object newValue) OneToMany and ManyToMany only set loaded state.void
registerGetterCallback
(PreGetterCallback getterCallback) Register the callback to be triggered when getter is called.void
setBeanLoader
(BeanLoader beanLoader) Set the BeanLoader.void
setBeanLoader
(BeanLoader beanLoader, PersistenceContext ctx) Set the BeanLoader with PersistenceContext.void
setChangedProperty
(int propertyIndex) void
setChangedPropertyValue
(int propertyIndex, boolean setDirtyState, Object origValue) void
setChangeLoaded
(int propertyIndex) void
setDeletedFromCollection
(boolean deletedFromCollection) Set if the entity was deleted from a BeanCollection.void
setDirty
(boolean dirty) Marks the bean as dirty.void
void
setDisableLazyLoad
(boolean disableLazyLoad) Set true to turn off lazy loading.void
setEmbeddedDirty
(int embeddedProperty) Called by an embedded bean onto its owner.void
setEmbeddedLoaded
(Object embeddedBean) Set the loaded status for the embedded bean.void
setEmbeddedOwner
(EntityBean parentBean, int embeddedOwnerIndex) Set the embedded beans owning bean.void
setEmbeddedPropertyDirty
(int propertyIndex) Set that an embedded bean has had one of its properties changed.void
setForceUpdate
(boolean forceUpdate) Set the bean to be updated when persisted (for merge).void
setFullyLoadedBean
(boolean fullyLoadedBean) Set true when the bean is fully loaded (not a partial).void
setLazyLoadFailure
(Object ownerId) Set lazy load failure flag.void
Set the loaded state to true.void
setLoadedFromCache
(boolean loadedFromCache) Set true when the bean has been loaded from L2 bean cache.void
When finished loading for lazy or refresh on an already partially populated bean.void
setLoadedProperty
(int propertyIndex) Set the property to be loaded.void
Set all properties to be loaded (post insert).void
setLoadError
(int propertyIndex, Exception t) Set the load error that happened on this property.void
setNew()
Set the bean into NEW state.void
For forced update on a 'New' bean set all the loaded properties to changed.void
setNodeUsageCollector
(NodeUsageCollector usageCollector) Turn on profile collection.void
setOldValue
(int propertyIndex, Object oldValue) Explicitly set an old value with force (the old value is forced even it is already set).void
setOriginalValue
(int propertyIndex, Object value) void
setOriginalValueForce
(int propertyIndex, Object value) Set old value but force it to be set regardless if it already has a value.void
setOwnerId
(Object ownerId) Set the ownerId (IdClass).void
setPersistenceContext
(PersistenceContext persistenceContext) Set the persistenceContext.void
setPropertyLoaded
(String propertyName, boolean loaded) Set the loaded state of the property given it's name.void
setPropertyUnloaded
(int propertyIndex) Set the property to be treated as unloaded.void
setReadOnly
(boolean readOnly) Set the readOnly status.void
setReference
(int idPos) Set this as a reference object.void
setSortOrder
(int sortOrder) Set the sort order value for an order column.
-
Constructor Details
-
InterceptReadOnly
-
-
Method Details
-
getOwner
Description copied from interface:EntityBeanIntercept
Return the 'owning' entity bean.- Specified by:
getOwner
in interfaceEntityBeanIntercept
-
getPersistenceContext
Description copied from interface:EntityBeanIntercept
Return the persistenceContext.- Specified by:
getPersistenceContext
in interfaceEntityBeanIntercept
-
setPersistenceContext
Description copied from interface:EntityBeanIntercept
Set the persistenceContext.- Specified by:
setPersistenceContext
in interfaceEntityBeanIntercept
-
setNodeUsageCollector
Description copied from interface:EntityBeanIntercept
Turn on profile collection.- Specified by:
setNodeUsageCollector
in interfaceEntityBeanIntercept
-
getOwnerId
Description copied from interface:EntityBeanIntercept
Return the ownerId (IdClass).- Specified by:
getOwnerId
in interfaceEntityBeanIntercept
-
setOwnerId
Description copied from interface:EntityBeanIntercept
Set the ownerId (IdClass).- Specified by:
setOwnerId
in interfaceEntityBeanIntercept
-
getEmbeddedOwner
Description copied from interface:EntityBeanIntercept
Return the owning bean for an embedded bean.- Specified by:
getEmbeddedOwner
in interfaceEntityBeanIntercept
-
getEmbeddedOwnerIndex
public int getEmbeddedOwnerIndex()Description copied from interface:EntityBeanIntercept
Return the property index (for the parent) of this embedded bean.- Specified by:
getEmbeddedOwnerIndex
in interfaceEntityBeanIntercept
-
clearGetterCallback
public void clearGetterCallback()Description copied from interface:EntityBeanIntercept
Clear the getter callback.- Specified by:
clearGetterCallback
in interfaceEntityBeanIntercept
-
registerGetterCallback
Description copied from interface:EntityBeanIntercept
Register the callback to be triggered when getter is called. This is used primarily to automatically flush the JDBC batch.- Specified by:
registerGetterCallback
in interfaceEntityBeanIntercept
-
setEmbeddedOwner
Description copied from interface:EntityBeanIntercept
Set the embedded beans owning bean.- Specified by:
setEmbeddedOwner
in interfaceEntityBeanIntercept
-
setBeanLoader
Description copied from interface:EntityBeanIntercept
Set the BeanLoader with PersistenceContext.- Specified by:
setBeanLoader
in interfaceEntityBeanIntercept
-
setBeanLoader
Description copied from interface:EntityBeanIntercept
Set the BeanLoader.- Specified by:
setBeanLoader
in interfaceEntityBeanIntercept
-
isFullyLoadedBean
public boolean isFullyLoadedBean()Description copied from interface:EntityBeanIntercept
Return true if the bean is fully loaded (not a partial).- Specified by:
isFullyLoadedBean
in interfaceEntityBeanIntercept
-
setFullyLoadedBean
public void setFullyLoadedBean(boolean fullyLoadedBean) Description copied from interface:EntityBeanIntercept
Set true when the bean is fully loaded (not a partial).- Specified by:
setFullyLoadedBean
in interfaceEntityBeanIntercept
-
isPartial
public boolean isPartial()Description copied from interface:EntityBeanIntercept
Return true if the bean is partially loaded.- Specified by:
isPartial
in interfaceEntityBeanIntercept
-
isDirty
public boolean isDirty()Description copied from interface:EntityBeanIntercept
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).- Specified by:
isDirty
in interfaceEntityBeanIntercept
-
setEmbeddedDirty
public void setEmbeddedDirty(int embeddedProperty) Description copied from interface:EntityBeanIntercept
Called by an embedded bean onto its owner.- Specified by:
setEmbeddedDirty
in interfaceEntityBeanIntercept
-
setDirty
public void setDirty(boolean dirty) Description copied from interface:EntityBeanIntercept
Marks the bean as dirty.- Specified by:
setDirty
in interfaceEntityBeanIntercept
-
isNew
public boolean isNew()Description copied from interface:EntityBeanIntercept
Return true if this entity bean is new and not yet saved.- Specified by:
isNew
in interfaceEntityBeanIntercept
-
isNewOrDirty
public boolean isNewOrDirty()Description copied from interface:EntityBeanIntercept
Return true if the entity bean is new or dirty (and should be saved).- Specified by:
isNewOrDirty
in interfaceEntityBeanIntercept
-
hasIdOnly
public boolean hasIdOnly(int idIndex) Description copied from interface:EntityBeanIntercept
Return true if only the Id property has been loaded.- Specified by:
hasIdOnly
in interfaceEntityBeanIntercept
-
isReference
public boolean isReference()Description copied from interface:EntityBeanIntercept
Return true if the entity is a reference.- Specified by:
isReference
in interfaceEntityBeanIntercept
-
setReference
public void setReference(int idPos) Description copied from interface:EntityBeanIntercept
Set this as a reference object.- Specified by:
setReference
in interfaceEntityBeanIntercept
-
setLoadedFromCache
public void setLoadedFromCache(boolean loadedFromCache) Description copied from interface:EntityBeanIntercept
Set 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:
setLoadedFromCache
in interfaceEntityBeanIntercept
-
isLoadedFromCache
public boolean isLoadedFromCache()Description copied from interface:EntityBeanIntercept
Return true if this bean was loaded from L2 bean cache.- Specified by:
isLoadedFromCache
in interfaceEntityBeanIntercept
-
isReadOnly
public boolean isReadOnly()Description copied from interface:EntityBeanIntercept
Return 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:
isReadOnly
in interfaceEntityBeanIntercept
-
setReadOnly
public void setReadOnly(boolean readOnly) Description copied from interface:EntityBeanIntercept
Set the readOnly status. If readOnly then calls to setter methods through an exception.- Specified by:
setReadOnly
in interfaceEntityBeanIntercept
-
setForceUpdate
public void setForceUpdate(boolean forceUpdate) Description copied from interface:EntityBeanIntercept
Set the bean to be updated when persisted (for merge).- Specified by:
setForceUpdate
in interfaceEntityBeanIntercept
-
isUpdate
public boolean isUpdate()Description copied from interface:EntityBeanIntercept
Return true if the entity should be updated.- Specified by:
isUpdate
in interfaceEntityBeanIntercept
-
isLoaded
public boolean isLoaded()Description copied from interface:EntityBeanIntercept
Return true if the entity has been loaded.- Specified by:
isLoaded
in interfaceEntityBeanIntercept
-
setNew
public void setNew()Description copied from interface:EntityBeanIntercept
Set the bean into NEW state.- Specified by:
setNew
in interfaceEntityBeanIntercept
-
setLoaded
public void setLoaded()Description copied from interface:EntityBeanIntercept
Set 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:
setLoaded
in interfaceEntityBeanIntercept
-
setLoadedLazy
public void setLoadedLazy()Description copied from interface:EntityBeanIntercept
When finished loading for lazy or refresh on an already partially populated bean.- Specified by:
setLoadedLazy
in interfaceEntityBeanIntercept
-
setLazyLoadFailure
Description copied from interface:EntityBeanIntercept
Set lazy load failure flag.- Specified by:
setLazyLoadFailure
in interfaceEntityBeanIntercept
-
isLazyLoadFailure
public boolean isLazyLoadFailure()Description copied from interface:EntityBeanIntercept
Return true if the bean is marked as having failed lazy loading.- Specified by:
isLazyLoadFailure
in interfaceEntityBeanIntercept
-
isDisableLazyLoad
public boolean isDisableLazyLoad()Description copied from interface:EntityBeanIntercept
Return true if lazy loading is disabled.- Specified by:
isDisableLazyLoad
in interfaceEntityBeanIntercept
-
setDisableLazyLoad
public void setDisableLazyLoad(boolean disableLazyLoad) Description copied from interface:EntityBeanIntercept
Set true to turn off lazy loading.- Specified by:
setDisableLazyLoad
in interfaceEntityBeanIntercept
-
setEmbeddedLoaded
Description copied from interface:EntityBeanIntercept
Set the loaded status for the embedded bean.- Specified by:
setEmbeddedLoaded
in interfaceEntityBeanIntercept
-
isEmbeddedNewOrDirty
Description copied from interface:EntityBeanIntercept
Return true if the embedded bean is new or dirty and hence needs saving.- Specified by:
isEmbeddedNewOrDirty
in interfaceEntityBeanIntercept
-
getOrigValue
Description copied from interface:EntityBeanIntercept
Return the original value that was changed via an update.- Specified by:
getOrigValue
in interfaceEntityBeanIntercept
-
findProperty
Description copied from interface:EntityBeanIntercept
Finds the index position of a given property. Returns -1 if the property can not be found.- Specified by:
findProperty
in interfaceEntityBeanIntercept
-
getProperty
Description copied from interface:EntityBeanIntercept
Return the property name for the given property.- Specified by:
getProperty
in interfaceEntityBeanIntercept
-
getPropertyLength
public int getPropertyLength()Description copied from interface:EntityBeanIntercept
Return the number of properties.- Specified by:
getPropertyLength
in interfaceEntityBeanIntercept
-
setPropertyLoaded
Description copied from interface:EntityBeanIntercept
Set the loaded state of the property given it's name.- Specified by:
setPropertyLoaded
in interfaceEntityBeanIntercept
-
setPropertyUnloaded
public void setPropertyUnloaded(int propertyIndex) Description copied from interface:EntityBeanIntercept
Set the property to be treated as unloaded. Used for properties initialised in default constructor.- Specified by:
setPropertyUnloaded
in interfaceEntityBeanIntercept
-
setLoadedProperty
public void setLoadedProperty(int propertyIndex) Description copied from interface:EntityBeanIntercept
Set the property to be loaded.- Specified by:
setLoadedProperty
in interfaceEntityBeanIntercept
-
setLoadedPropertyAll
public void setLoadedPropertyAll()Description copied from interface:EntityBeanIntercept
Set all properties to be loaded (post insert).- Specified by:
setLoadedPropertyAll
in interfaceEntityBeanIntercept
-
isLoadedProperty
public boolean isLoadedProperty(int propertyIndex) Description copied from interface:EntityBeanIntercept
Return true if the property is loaded.- Specified by:
isLoadedProperty
in interfaceEntityBeanIntercept
-
isChangedProperty
public boolean isChangedProperty(int propertyIndex) Description copied from interface:EntityBeanIntercept
Return true if the property is considered changed.- Specified by:
isChangedProperty
in interfaceEntityBeanIntercept
-
isDirtyProperty
public boolean isDirtyProperty(int propertyIndex) Description copied from interface:EntityBeanIntercept
Return true if the property was changed or if it is embedded and one of its embedded properties is dirty.- Specified by:
isDirtyProperty
in interfaceEntityBeanIntercept
-
markPropertyAsChanged
public void markPropertyAsChanged(int propertyIndex) Description copied from interface:EntityBeanIntercept
Explicitly mark a property as having been changed.- Specified by:
markPropertyAsChanged
in interfaceEntityBeanIntercept
-
setChangedProperty
public void setChangedProperty(int propertyIndex) - Specified by:
setChangedProperty
in interfaceEntityBeanIntercept
-
setChangeLoaded
public void setChangeLoaded(int propertyIndex) - Specified by:
setChangeLoaded
in interfaceEntityBeanIntercept
-
setEmbeddedPropertyDirty
public void setEmbeddedPropertyDirty(int propertyIndex) Description copied from interface:EntityBeanIntercept
Set that an embedded bean has had one of its properties changed.- Specified by:
setEmbeddedPropertyDirty
in interfaceEntityBeanIntercept
-
setOriginalValue
- Specified by:
setOriginalValue
in interfaceEntityBeanIntercept
-
setOriginalValueForce
Description copied from interface:EntityBeanIntercept
Set old value but force it to be set regardless if it already has a value.- Specified by:
setOriginalValueForce
in interfaceEntityBeanIntercept
-
setNewBeanForUpdate
public void setNewBeanForUpdate()Description copied from interface:EntityBeanIntercept
For forced update on a 'New' bean set all the loaded properties to changed.- Specified by:
setNewBeanForUpdate
in interfaceEntityBeanIntercept
-
getLoadedPropertyNames
Description copied from interface:EntityBeanIntercept
Return the set of property names for a partially loaded bean.- Specified by:
getLoadedPropertyNames
in interfaceEntityBeanIntercept
-
getDirtyProperties
public boolean[] getDirtyProperties()Description copied from interface:EntityBeanIntercept
Return the array of flags indicating the dirty properties.- Specified by:
getDirtyProperties
in interfaceEntityBeanIntercept
-
getDirtyPropertyNames
Description copied from interface:EntityBeanIntercept
Return the set of dirty properties.- Specified by:
getDirtyPropertyNames
in interfaceEntityBeanIntercept
-
addDirtyPropertyNames
Description copied from interface:EntityBeanIntercept
Recursively add dirty properties.- Specified by:
addDirtyPropertyNames
in interfaceEntityBeanIntercept
-
hasDirtyProperty
Description copied from interface:EntityBeanIntercept
Return true if any of the given property names are dirty.- Specified by:
hasDirtyProperty
in interfaceEntityBeanIntercept
-
getDirtyValues
Description copied from interface:EntityBeanIntercept
Return a map of dirty properties with their new and old values.- Specified by:
getDirtyValues
in interfaceEntityBeanIntercept
-
addDirtyPropertyValues
Description copied from interface:EntityBeanIntercept
Recursively add dirty properties.- Specified by:
addDirtyPropertyValues
in interfaceEntityBeanIntercept
-
addDirtyPropertyValues
Description copied from interface:EntityBeanIntercept
Recursively add dirty properties.- Specified by:
addDirtyPropertyValues
in interfaceEntityBeanIntercept
-
getDirtyPropertyKey
Description copied from interface:EntityBeanIntercept
Return a dirty property hash taking into account embedded beans.- Specified by:
getDirtyPropertyKey
in interfaceEntityBeanIntercept
-
addDirtyPropertyKey
Description copied from interface:EntityBeanIntercept
Add and return a dirty property hash.- Specified by:
addDirtyPropertyKey
in interfaceEntityBeanIntercept
-
getLoadedPropertyKey
Description copied from interface:EntityBeanIntercept
Return a loaded property hash.- Specified by:
getLoadedPropertyKey
in interfaceEntityBeanIntercept
-
getLoaded
public boolean[] getLoaded()- Specified by:
getLoaded
in interfaceEntityBeanIntercept
-
getLazyLoadPropertyIndex
public int getLazyLoadPropertyIndex()Description copied from interface:EntityBeanIntercept
Return the index of the property that triggered the lazy load.- Specified by:
getLazyLoadPropertyIndex
in interfaceEntityBeanIntercept
-
getLazyLoadProperty
Description copied from interface:EntityBeanIntercept
Return the property that triggered the lazy load.- Specified by:
getLazyLoadProperty
in interfaceEntityBeanIntercept
-
loadBean
public void loadBean(int loadProperty) Description copied from interface:EntityBeanIntercept
Load the bean when it is a reference.- Specified by:
loadBean
in interfaceEntityBeanIntercept
-
loadBeanInternal
Description copied from interface:EntityBeanIntercept
Invoke the lazy loading. This method is synchronised externally.- Specified by:
loadBeanInternal
in interfaceEntityBeanIntercept
-
initialisedMany
public void initialisedMany(int propertyIndex) Description copied from interface:EntityBeanIntercept
Called when a BeanCollection is initialised automatically.- Specified by:
initialisedMany
in interfaceEntityBeanIntercept
-
preGetterCallback
public void preGetterCallback(int propertyIndex) - Specified by:
preGetterCallback
in interfaceEntityBeanIntercept
-
preGetId
public void preGetId()Description copied from interface:EntityBeanIntercept
Called prior to Id property getter.- Specified by:
preGetId
in interfaceEntityBeanIntercept
-
preGetter
public void preGetter(int propertyIndex) Description copied from interface:EntityBeanIntercept
Method that is called prior to a getter method on the actual entity.- Specified by:
preGetter
in interfaceEntityBeanIntercept
-
preSetterMany
public void preSetterMany(boolean interceptField, int propertyIndex, Object oldValue, Object newValue) Description copied from interface:EntityBeanIntercept
OneToMany and ManyToMany only set loaded state.- Specified by:
preSetterMany
in interfaceEntityBeanIntercept
-
setChangedPropertyValue
- Specified by:
setChangedPropertyValue
in interfaceEntityBeanIntercept
-
setDirtyStatus
public void setDirtyStatus()- Specified by:
setDirtyStatus
in interfaceEntityBeanIntercept
-
preSetter
Description copied from interface:EntityBeanIntercept
Check 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:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, boolean oldValue, boolean newValue) Description copied from interface:EntityBeanIntercept
Check for primitive boolean.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, int oldValue, int newValue) Description copied from interface:EntityBeanIntercept
Check for primitive int.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, long oldValue, long newValue) Description copied from interface:EntityBeanIntercept
Check for primitive long.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, double oldValue, double newValue) Description copied from interface:EntityBeanIntercept
Check for primitive double.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, float oldValue, float newValue) Description copied from interface:EntityBeanIntercept
Check for primitive float.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, short oldValue, short newValue) Description copied from interface:EntityBeanIntercept
Check for primitive short.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, char oldValue, char newValue) Description copied from interface:EntityBeanIntercept
Check for primitive char.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, byte oldValue, byte newValue) Description copied from interface:EntityBeanIntercept
Check for primitive byte.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, char[] oldValue, char[] newValue) Description copied from interface:EntityBeanIntercept
Check for primitive char array.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
preSetter
public void preSetter(boolean intercept, int propertyIndex, byte[] oldValue, byte[] newValue) Description copied from interface:EntityBeanIntercept
Check for primitive byte array.- Specified by:
preSetter
in interfaceEntityBeanIntercept
-
setOldValue
Description copied from interface:EntityBeanIntercept
Explicitly set an old value with force (the old value is forced even it is already set).- Specified by:
setOldValue
in interfaceEntityBeanIntercept
-
getSortOrder
public int getSortOrder()Description copied from interface:EntityBeanIntercept
Return the sort order value for an order column.- Specified by:
getSortOrder
in interfaceEntityBeanIntercept
-
setSortOrder
public void setSortOrder(int sortOrder) Description copied from interface:EntityBeanIntercept
Set the sort order value for an order column.- Specified by:
setSortOrder
in interfaceEntityBeanIntercept
-
setDeletedFromCollection
public void setDeletedFromCollection(boolean deletedFromCollection) Description copied from interface:EntityBeanIntercept
Set if the entity was deleted from a BeanCollection.- Specified by:
setDeletedFromCollection
in interfaceEntityBeanIntercept
-
isOrphanDelete
public boolean isOrphanDelete()- Specified by:
isOrphanDelete
in interfaceEntityBeanIntercept
-
setLoadError
Description copied from interface:EntityBeanIntercept
Set the load error that happened on this property.- Specified by:
setLoadError
in interfaceEntityBeanIntercept
-
getLoadErrors
Description copied from interface:EntityBeanIntercept
Returns the loadErrors.- Specified by:
getLoadErrors
in interfaceEntityBeanIntercept
-
isChangedProp
public boolean isChangedProp(int i) - Specified by:
isChangedProp
in interfaceEntityBeanIntercept
-
mutableInfo
Description copied from interface:EntityBeanIntercept
Return the MutableValueInfo for the given property or null.- Specified by:
mutableInfo
in interfaceEntityBeanIntercept
-
mutableInfo
Description copied from interface:EntityBeanIntercept
Set the MutableValueInfo for the given property.- Specified by:
mutableInfo
in interfaceEntityBeanIntercept
-
mutableNext
Description copied from interface:EntityBeanIntercept
Dirty 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:
mutableNext
in interfaceEntityBeanIntercept
-
mutableNext
Description copied from interface:EntityBeanIntercept
Update the 'next' mutable info returning the content that was obtained via dirty detection.- Specified by:
mutableNext
in interfaceEntityBeanIntercept
-