public class PersistentEventAdapter<P extends Persistent> extends java.lang.Object implements PersistentEventHandler<P>
Constructor and Description |
---|
PersistentEventAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
afterDelete(P o)
Called after the object has been deleted from the database.
|
void |
afterInsert(P o)
Called after the object has been inserted into the database.
|
void |
afterRead(P o)
Called after the object is read from database.
|
void |
afterUpdate(P o)
Called after the object has been updated in the database.
|
void |
beforeDelete(P o)
Called before the object is deleted from the database.
|
void |
beforeInsert(P o)
Called before the object is inserted into the database.
|
void |
beforeUpdate(P o)
Called before the object is updated in the database.
|
void |
onDelete(P o)
Deprecated.
|
void |
onInsert(P o)
Deprecated.
|
void |
onUpdate(P o)
Deprecated.
|
public void beforeInsert(P o)
PersistentEventHandler
beforeInsert
in interface PersistentEventHandler<P extends Persistent>
o
- the object to be insertedpublic void beforeUpdate(P o)
PersistentEventHandler
beforeUpdate
in interface PersistentEventHandler<P extends Persistent>
o
- the object to be updatedpublic void beforeDelete(P o)
PersistentEventHandler
beforeDelete
in interface PersistentEventHandler<P extends Persistent>
o
- the object to be deletedpublic void afterInsert(P o)
PersistentEventHandler
afterInsert
in interface PersistentEventHandler<P extends Persistent>
o
- the inserted objectpublic void afterUpdate(P o)
PersistentEventHandler
afterUpdate
in interface PersistentEventHandler<P extends Persistent>
o
- the updated objectpublic void afterDelete(P o)
PersistentEventHandler
afterDelete
in interface PersistentEventHandler<P extends Persistent>
o
- the deleted objectpublic void afterRead(P o)
PersistentEventHandler
afterRead
in interface PersistentEventHandler<P extends Persistent>
o
- the object, which has been read@Deprecated public void onInsert(P o)
beforeInsert(Persistent)
o
- @Deprecated public void onUpdate(P o)
beforeUpdate(Persistent)
o
- @Deprecated public void onDelete(P o)
beforeDelete(Persistent)
o
- @enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.