com.antelmann.db
Class DBVersionedUpdateEvent
java.lang.Object
java.util.EventObject
com.antelmann.db.DBUpdateEvent
com.antelmann.db.DBVersionedUpdateEvent
- All Implemented Interfaces:
- Timed, Serializable
public class DBVersionedUpdateEvent
- extends DBUpdateEvent
this special update event extends a standard event
by including the actual entry state before and after the update.
- Since:
- 22.04.2010, 17:03:11
- Author:
- Holger Antelmann
- See Also:
Database.setVersioningEnabled(Class, boolean),
DatabaseChangeListener,
Serialized Form
DBVersionedUpdateEvent
public DBVersionedUpdateEvent(DBUpdateEvent updateEvent,
DBEntry oldVersion,
DBEntry newVersion)
getOldVersion
public DBEntry getOldVersion()
- in case of
DBClassStore.DBMethod.INSERT, DBClassStore.DBMethod.INSERT_AS_NEW
or DBClassStore.DBMethod.DELETE_MULTIPLE,
the return value is always null.
getNewVersion
public DBEntry getNewVersion()
- in case of
DBClassStore.DBMethod.DELETE or DBClassStore.DBMethod.DELETE_MULTIPLE,
the return value is always null.
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads