- 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 voiddeleteEnd(RecordContext ctx)Called after deleting anUpdatableRecord.voiddeleteStart(RecordContext ctx)Called before deleting anUpdatableRecord.voidexception(RecordContext ctx)Called when an exception occurs.voidinsertEnd(RecordContext ctx)Called after inserting anUpdatableRecord.voidinsertStart(RecordContext ctx)Called before inserting anUpdatableRecord.voidloadEnd(RecordContext ctx)Called after loading anUpdatableRecord.voidloadStart(RecordContext ctx)Called before loading anUpdatableRecord.voidmergeEnd(RecordContext ctx)Called after merging anUpdatableRecord.voidmergeStart(RecordContext ctx)Called before merging anUpdatableRecord.voidrefreshEnd(RecordContext ctx)Called after refreshing anUpdatableRecord.voidrefreshStart(RecordContext ctx)Called before refreshing anUpdatableRecord.voidstoreEnd(RecordContext ctx)Called after storing anUpdatableRecord.voidstoreStart(RecordContext ctx)Called before storing anUpdatableRecord.voidupdateEnd(RecordContext ctx)Called after updating anUpdatableRecord.voidupdateStart(RecordContext ctx)Called before updating anUpdatableRecord.
-
-
-
Method Detail
-
storeStart
public void storeStart(RecordContext ctx)
Description copied from interface:RecordListenerCalled 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 anINSERTorUPDATEstatement.A store event will generate a nested
RecordListener.insertStart(RecordContext)orRecordListener.updateStart(RecordContext)event.- Specified by:
storeStartin interfaceRecordListener- See Also:
UpdatableRecord.store()
-
storeEnd
public void storeEnd(RecordContext ctx)
Description copied from interface:RecordListenerCalled 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 anINSERTorUPDATEstatement.A store event will generate a nested
RecordListener.insertEnd(RecordContext)orRecordListener.updateEnd(RecordContext)event.- Specified by:
storeEndin interfaceRecordListener- See Also:
UpdatableRecord.store()
-
insertStart
public void insertStart(RecordContext ctx)
Description copied from interface:RecordListenerCalled before inserting anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()prior to inserting.- Specified by:
insertStartin interfaceRecordListener- See Also:
UpdatableRecord.insert()
-
insertEnd
public void insertEnd(RecordContext ctx)
Description copied from interface:RecordListenerCalled after inserting anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()after inserting.- Specified by:
insertEndin interfaceRecordListener- See Also:
UpdatableRecord.insert()
-
updateStart
public void updateStart(RecordContext ctx)
Description copied from interface:RecordListenerCalled before updating anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()prior to updating.- Specified by:
updateStartin interfaceRecordListener- See Also:
UpdatableRecord.update()
-
updateEnd
public void updateEnd(RecordContext ctx)
Description copied from interface:RecordListenerCalled after updating anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()after updating.- Specified by:
updateEndin interfaceRecordListener- See Also:
UpdatableRecord.update()
-
mergeStart
public void mergeStart(RecordContext ctx)
Description copied from interface:RecordListenerCalled before merging anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()prior to merging.- Specified by:
mergeStartin interfaceRecordListener- See Also:
UpdatableRecord.merge()
-
mergeEnd
public void mergeEnd(RecordContext ctx)
Description copied from interface:RecordListenerCalled after merging anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()after merging.- Specified by:
mergeEndin interfaceRecordListener- See Also:
UpdatableRecord.merge()
-
deleteStart
public void deleteStart(RecordContext ctx)
Description copied from interface:RecordListenerCalled before deleting anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()prior to deleting.- Specified by:
deleteStartin interfaceRecordListener- See Also:
UpdatableRecord.delete()
-
deleteEnd
public void deleteEnd(RecordContext ctx)
Description copied from interface:RecordListenerCalled after deleting anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()after deleting.- Specified by:
deleteEndin interfaceRecordListener- See Also:
UpdatableRecord.delete()
-
loadStart
public void loadStart(RecordContext ctx)
Description copied from interface:RecordListenerCalled before loading anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()prior to loading.- Specified by:
loadStartin interfaceRecordListener
-
loadEnd
public void loadEnd(RecordContext ctx)
Description copied from interface:RecordListenerCalled after loading anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()after loading.- Specified by:
loadEndin interfaceRecordListener
-
refreshStart
public void refreshStart(RecordContext ctx)
Description copied from interface:RecordListenerCalled before refreshing anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()prior to refreshing.- Specified by:
refreshStartin interfaceRecordListener- See Also:
UpdatableRecord.refresh()
-
refreshEnd
public void refreshEnd(RecordContext ctx)
Description copied from interface:RecordListenerCalled after refreshing anUpdatableRecord.Implementations are allowed to modify
RecordContext.record()after refreshing.- Specified by:
refreshEndin interfaceRecordListener- See Also:
UpdatableRecord.refresh()
-
exception
public void exception(RecordContext ctx)
Description copied from interface:RecordListenerCalled when an exception occurs.- Specified by:
exceptionin interfaceRecordListener
-
-