|
||||||||||
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
AbstractStorage
.
Nested Class Summary | |
---|---|
static class |
StorageEvent.ChangedType
Specifies the type of change. |
Constructor Summary | |
---|---|
StorageEvent(AbstractStorage pStorage,
StorageEvent.ChangedType pType,
IBean pOld,
IBean pNew)
Constructs the DataRowEvent. |
Method Summary | ||
---|---|---|
IBean |
getNew()
Gets the new IBean. |
|
|
getNew(Class<T> pClass)
Gets the new POJO from type |
|
IBean |
getOld()
Gets the old IBean. |
|
|
getOld(Class<T> pClass)
Gets the old POJO from type |
|
IStorage |
getStorage()
Gets the IStorage that is changed. |
|
StorageEvent.ChangedType |
getType()
Gets the type of change. |
|
boolean |
isNewModified()
Gets wheter the new object was modified after creation. |
|
boolean |
isOldModified()
Gets wheter the old object was modified after creation. |
|
void |
setNew(Object pNew)
Sets the new bean properties. |
|
void |
setOld(Object pOld)
Sets the old bean properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StorageEvent(AbstractStorage pStorage, StorageEvent.ChangedType pType, IBean pOld, IBean pNew)
pStorage
- the changed storage.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 allowedMethod Detail |
---|
public IStorage getStorage()
public StorageEvent.ChangedType getType()
public void setOld(Object pOld)
pOld
- the current old bean.public IBean getOld()
public <T> T getOld(Class<T> pClass)
T
- the type of the POJO.pClass
- the class of the POJO.
public IBean getNew()
public <T> T getNew(Class<T> pClass)
T
- the type of the POJO.pClass
- the class of the POJO.
public void setNew(Object pNew)
pNew
- the current new bean.public boolean isNewModified()
true
if the new objectt was modified, false
otherwisepublic boolean isOldModified()
true
if the old objectt was modified, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |