public class DefaultRecordListener extends Object implements RecordListener
RecordListener
.
Use this to stay compatible with future API changes (i.e. added methods to
RecordListener
)
Constructor and Description |
---|
DefaultRecordListener() |
Modifier and Type | Method and Description |
---|---|
void |
deleteEnd(RecordContext ctx)
Called after deleting an
UpdatableRecord . |
void |
deleteStart(RecordContext ctx)
Called before deleting an
UpdatableRecord . |
void |
exception(RecordContext ctx)
Called when an exception occurs.
|
void |
insertEnd(RecordContext ctx)
Called after inserting an
UpdatableRecord . |
void |
insertStart(RecordContext ctx)
Called before inserting an
UpdatableRecord . |
void |
loadEnd(RecordContext ctx)
Called after loading an
UpdatableRecord . |
void |
loadStart(RecordContext ctx)
Called before loading an
UpdatableRecord . |
void |
refreshEnd(RecordContext ctx)
Called after refreshing an
UpdatableRecord . |
void |
refreshStart(RecordContext ctx)
Called before refreshing an
UpdatableRecord . |
void |
storeEnd(RecordContext ctx)
Called after storing an
UpdatableRecord . |
void |
storeStart(RecordContext ctx)
Called before storing an
UpdatableRecord . |
void |
updateEnd(RecordContext ctx)
Called after updating an
UpdatableRecord . |
void |
updateStart(RecordContext ctx)
Called before updating an
UpdatableRecord . |
public void storeStart(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
prior to storing. Note that modifying the record's primary key value may
influence whether storing results in an INSERT
or
UPDATE
statement.
A store event will generate a nested RecordListener.insertStart(RecordContext)
or RecordListener.updateStart(RecordContext)
event.
storeStart
in interface RecordListener
UpdatableRecord.store()
public void storeEnd(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
after storing. Note that modifying the record's primary key value may
influence whether storing results in an INSERT
or
UPDATE
statement.
A store event will generate a nested RecordListener.insertEnd(RecordContext)
or RecordListener.updateEnd(RecordContext)
event.
storeEnd
in interface RecordListener
UpdatableRecord.store()
public void insertStart(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
prior to inserting.
insertStart
in interface RecordListener
UpdatableRecord.insert()
public void insertEnd(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
after inserting.
insertEnd
in interface RecordListener
UpdatableRecord.insert()
public void updateStart(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
prior to updating.
updateStart
in interface RecordListener
UpdatableRecord.update()
public void updateEnd(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
after updating.
updateEnd
in interface RecordListener
UpdatableRecord.update()
public void deleteStart(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
prior to deleting.
deleteStart
in interface RecordListener
UpdatableRecord.delete()
public void deleteEnd(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
after deleting.
deleteEnd
in interface RecordListener
UpdatableRecord.delete()
public void loadStart(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
prior to loading.
loadStart
in interface RecordListener
public void loadEnd(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
after loading.
loadEnd
in interface RecordListener
public void refreshStart(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
prior to refreshing.
refreshStart
in interface RecordListener
UpdatableRecord.refresh()
public void refreshEnd(RecordContext ctx)
RecordListener
UpdatableRecord
.
Implementations are allowed to modify RecordContext.record()
after refreshing.
refreshEnd
in interface RecordListener
UpdatableRecord.refresh()
public void exception(RecordContext ctx)
RecordListener
exception
in interface RecordListener
Copyright © 2017. All Rights Reserved.