public interface TransactionFilter
TransactionFilter instances must be thread-safe, and should not store any data in any instance variables when processing, as it is likely that several threads will be invoking the same filter several times.
All methods will be invoked outside a database transaction.
All methods are invoked synchronously and a slow TransactionFilter
will
slow down the process of storing an entry.
Modifier and Type | Method and Description |
---|---|
void |
afterCreate(LiveEntry pLiveEntry)
Called by the API just after a
LiveEntry is created in the database. |
void |
afterDelete(LiveEntry pLiveEntry)
Called by the API just after a
LiveEntry is deleted in the database. |
void |
afterUpdate(LiveEntry pLiveEntry)
Called by the API just after a
LiveEntry is updated in the database. |
void |
beforeCreate(MutableLiveEntry pLiveEntry)
Called by the API just before a
LiveEntry is created in the database. |
void |
beforeDelete(MutableLiveEntry pLiveEntry)
Called by the API just before a
LiveEntry is deleted from the database. |
void |
beforeUpdate(MutableLiveEntry pLiveEntry)
Called by the API just before a
LiveEntry is updated in the database. |
boolean |
isServiceRunning()
Returns
true if the filter is enabled and running properly |
void beforeCreate(MutableLiveEntry pLiveEntry) throws Exception
LiveEntry
is created in the database.pLiveEntry
- the entry in question.Exception
- if the filter fails. The exception will not abort the database transactionvoid beforeUpdate(MutableLiveEntry pLiveEntry) throws Exception
LiveEntry
is updated in the database.pLiveEntry
- the entry in question.Exception
- if the filter fails. The exception will not abort the database transactionvoid beforeDelete(MutableLiveEntry pLiveEntry) throws Exception
LiveEntry
is deleted from the database.pLiveEntry
- the entry in question.Exception
- if the filter fails. The exception will not abort the database transactionvoid afterCreate(LiveEntry pLiveEntry) throws Exception
LiveEntry
is created in the database.pLiveEntry
- the entry in question.Exception
- if the filter fails. The exception will not abort the database transactionvoid afterUpdate(LiveEntry pLiveEntry) throws Exception
LiveEntry
is updated in the database.pLiveEntry
- the entry in question.Exception
- if the filter fails. The exception will not abort the database transactionvoid afterDelete(LiveEntry pLiveEntry) throws Exception
LiveEntry
is deleted in the database.pLiveEntry
- the entry in question.Exception
- if the filter fails. The exception will not abort the database transactionboolean isServiceRunning()
true
if the filter is enabled and running properly© 1998- 2016 Escenic
Contact Escenic Support for bug submission or feature requests. For further API reference and developer documentation, see Technet. The Technet documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Escenic A/S, Sommerrogt. 13-15 Solli, 0255 Oslo, Norway.