- java.lang.Object
-
- org.jooq.impl.DefaultRecordListener
-
- All Implemented Interfaces:
EventListener
,RecordListener
public class DefaultRecordListener extends Object implements RecordListener
A publicly available default implementation ofRecordListener
.Use this to stay compatible with future API changes (i.e. added methods to
RecordListener
)- Author:
- Lukas Eder
-
-
Constructor Summary
Constructors Constructor Description DefaultRecordListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteEnd(RecordContext ctx)
Called after deleting anUpdatableRecord
.void
deleteStart(RecordContext ctx)
Called before deleting anUpdatableRecord
.void
exception(RecordContext ctx)
Called when an exception occurs.void
insertEnd(RecordContext ctx)
Called after inserting anUpdatableRecord
.void
insertStart(RecordContext ctx)
Called before inserting anUpdatableRecord
.void
loadEnd(RecordContext ctx)
Called after loading anUpdatableRecord
.void
loadStart(RecordContext ctx)
Called before loading anUpdatableRecord
.void
mergeEnd(RecordContext ctx)
Called after merging anUpdatableRecord
.void
mergeStart(RecordContext ctx)
Called before merging anUpdatableRecord
.void
refreshEnd(RecordContext ctx)
Called after refreshing anUpdatableRecord
.void
refreshStart(RecordContext ctx)
Called before refreshing anUpdatableRecord
.void
storeEnd(RecordContext ctx)
Called after storing anUpdatableRecord
.void
storeStart(RecordContext ctx)
Called before storing anUpdatableRecord
.void
updateEnd(RecordContext ctx)
Called after updating anUpdatableRecord
.void
updateStart(RecordContext ctx)
Called before updating anUpdatableRecord
.
-
-
-
Method Detail
-
storeStart
public void storeStart(RecordContext ctx)
Description copied from interface:RecordListener
Called before storing anUpdatableRecord
.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 anINSERT
orUPDATE
statement.A store event will generate a nested
RecordListener.insertStart(RecordContext)
orRecordListener.updateStart(RecordContext)
event.- Specified by:
storeStart
in interfaceRecordListener
- See Also:
UpdatableRecord.store()
-
storeEnd
public void storeEnd(RecordContext ctx)
Description copied from interface:RecordListener
Called after storing anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
after storing. Note that modifying the record's primary key value may influence whether storing results in anINSERT
orUPDATE
statement.A store event will generate a nested
RecordListener.insertEnd(RecordContext)
orRecordListener.updateEnd(RecordContext)
event.- Specified by:
storeEnd
in interfaceRecordListener
- See Also:
UpdatableRecord.store()
-
insertStart
public void insertStart(RecordContext ctx)
Description copied from interface:RecordListener
Called before inserting anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
prior to inserting.- Specified by:
insertStart
in interfaceRecordListener
- See Also:
UpdatableRecord.insert()
-
insertEnd
public void insertEnd(RecordContext ctx)
Description copied from interface:RecordListener
Called after inserting anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
after inserting.- Specified by:
insertEnd
in interfaceRecordListener
- See Also:
UpdatableRecord.insert()
-
updateStart
public void updateStart(RecordContext ctx)
Description copied from interface:RecordListener
Called before updating anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
prior to updating.- Specified by:
updateStart
in interfaceRecordListener
- See Also:
UpdatableRecord.update()
-
updateEnd
public void updateEnd(RecordContext ctx)
Description copied from interface:RecordListener
Called after updating anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
after updating.- Specified by:
updateEnd
in interfaceRecordListener
- See Also:
UpdatableRecord.update()
-
mergeStart
public void mergeStart(RecordContext ctx)
Description copied from interface:RecordListener
Called before merging anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
prior to merging.- Specified by:
mergeStart
in interfaceRecordListener
- See Also:
UpdatableRecord.merge()
-
mergeEnd
public void mergeEnd(RecordContext ctx)
Description copied from interface:RecordListener
Called after merging anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
after merging.- Specified by:
mergeEnd
in interfaceRecordListener
- See Also:
UpdatableRecord.merge()
-
deleteStart
public void deleteStart(RecordContext ctx)
Description copied from interface:RecordListener
Called before deleting anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
prior to deleting.- Specified by:
deleteStart
in interfaceRecordListener
- See Also:
UpdatableRecord.delete()
-
deleteEnd
public void deleteEnd(RecordContext ctx)
Description copied from interface:RecordListener
Called after deleting anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
after deleting.- Specified by:
deleteEnd
in interfaceRecordListener
- See Also:
UpdatableRecord.delete()
-
loadStart
public void loadStart(RecordContext ctx)
Description copied from interface:RecordListener
Called before loading anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
prior to loading.- Specified by:
loadStart
in interfaceRecordListener
-
loadEnd
public void loadEnd(RecordContext ctx)
Description copied from interface:RecordListener
Called after loading anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
after loading.- Specified by:
loadEnd
in interfaceRecordListener
-
refreshStart
public void refreshStart(RecordContext ctx)
Description copied from interface:RecordListener
Called before refreshing anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
prior to refreshing.- Specified by:
refreshStart
in interfaceRecordListener
- See Also:
UpdatableRecord.refresh()
-
refreshEnd
public void refreshEnd(RecordContext ctx)
Description copied from interface:RecordListener
Called after refreshing anUpdatableRecord
.Implementations are allowed to modify
RecordContext.record()
after refreshing.- Specified by:
refreshEnd
in interfaceRecordListener
- See Also:
UpdatableRecord.refresh()
-
exception
public void exception(RecordContext ctx)
Description copied from interface:RecordListener
Called when an exception occurs.- Specified by:
exception
in interfaceRecordListener
-
-