|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.persist.event.StorageEvent
public class StorageEvent
The StorageEvent
contains information about changes in an
IStorage
.
Nested Class Summary | |
---|---|
static class |
StorageEvent.ChangedType
Specifies the type of change. |
Constructor Summary | |
---|---|
StorageEvent(IStorage pStorage,
BeanConverter pBeanConverter,
StorageEvent.ChangedType pType,
IBean pOld,
IBean pNew)
Constructs the DataRowEvent. |
|
StorageEvent(IStorage pStorage,
BeanConverter pBeanConverter,
StorageEvent.ChangedType pType,
java.lang.Object[] pOld,
java.lang.Object[] pNew)
Creates a new instance of StorageEvent . |
|
StorageEvent(IStorage pStorage,
BeanConverter pBeanConverter,
StorageEvent.ChangedType pType,
java.lang.Object pOld,
java.lang.Object pNew)
Creates a new instance of StorageEvent . |
Method Summary | ||
---|---|---|
IBean |
getNew()
Gets the new IBean. |
|
|
getNew(java.lang.Class<T> pClass)
Gets the new POJO from type <T>. |
|
java.lang.Object[] |
getNewAsArray()
Gets the new row as object array. |
|
IBean |
getOld()
Gets the old IBean. |
|
|
getOld(java.lang.Class<T> pClass)
Gets the old POJO from type <T>. |
|
java.lang.Object[] |
getOldAsArray()
Gets the old row as object array. |
|
IStorage |
getStorage()
Gets the IStorage that is changed. |
|
StorageEvent.ChangedType |
getType()
Gets the type of change. |
|
boolean |
isBeanMode()
Gets whether this event is based on a bean/object. |
|
boolean |
isNewModified()
Deprecated. With 2.1 onwards. |
|
boolean |
isOldModified()
Deprecated. With 2.1 onwards. |
|
void |
setNew(java.lang.Object pNew)
Deprecated. With 2.1 onwards it is not necessary anymore to set the new row to propagate changes. |
|
void |
setOld(java.lang.Object pOld)
Deprecated. With 2.1 onwards it is not necessary anymore to set the old row to propagate changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StorageEvent(IStorage pStorage, BeanConverter pBeanConverter, StorageEvent.ChangedType pType, java.lang.Object[] pOld, java.lang.Object[] pNew)
StorageEvent
.
pStorage
- the storage.pBeanConverter
- the bean converter.pType
- the type.pOld
- the old.pNew
- the new.public StorageEvent(IStorage pStorage, BeanConverter pBeanConverter, StorageEvent.ChangedType pType, IBean pOld, IBean pNew)
pStorage
- the changed storage.pBeanConverter
- the bean converter to use.pType
- the type of change.pOld
- the old bean or null
if old bean is not allowedpNew
- the new bean or null
if new bean is not allowedpublic StorageEvent(IStorage pStorage, BeanConverter pBeanConverter, StorageEvent.ChangedType pType, java.lang.Object pOld, java.lang.Object pNew)
StorageEvent
.
pStorage
- the storage.pBeanConverter
- the bean converter.pType
- the type.pOld
- the old.pNew
- the new.Method Detail |
---|
public IStorage getStorage()
public StorageEvent.ChangedType getType()
@Deprecated public void setOld(java.lang.Object pOld)
pOld
- the current old bean.public IBean getOld()
public <T> T getOld(java.lang.Class<T> pClass)
T
- the type of the POJO.pClass
- the class of the POJO.
public java.lang.Object[] getOldAsArray()
public IBean getNew()
public <T> T getNew(java.lang.Class<T> pClass)
T
- the type of the POJO.pClass
- the class of the POJO.
public java.lang.Object[] getNewAsArray()
@Deprecated public void setNew(java.lang.Object pNew)
pNew
- the current new bean.@Deprecated public boolean isNewModified()
true
if the new object was modified,
false
otherwise@Deprecated public boolean isOldModified()
true
if the old object was modified,
false
otherwisepublic boolean isBeanMode()
true
if this event was created with a bean or POJO, false
if
it was created with an array of objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |