| Constructor and Description |
|---|
RecorderImpl(PersistenceService persistenceService,
TechnicalLoggerService logger,
EventService eventService) |
| Modifier and Type | Method and Description |
|---|---|
void |
recordDelete(DeleteRecord record,
String type)
Delete a record from database
|
void |
recordDeleteAll(DeleteAllRecord record)
Delete all records for a table from database, for the connected tenant
|
void |
recordInsert(InsertRecord record,
String type)
Add a record to database
|
void |
recordUpdate(UpdateRecord record,
String type)
Update a record from database
|
int |
recordUpdateWithQuery(UpdateRecord record,
String type,
String query)
Update a record from database with a named query
If no rows have been updated the event is not thrown
|
public RecorderImpl(PersistenceService persistenceService, TechnicalLoggerService logger, EventService eventService)
public void recordInsert(InsertRecord record, String type) throws SRecorderException
RecorderrecordInsert in interface Recorderrecord - the record for insertSRecorderExceptionpublic void recordDelete(DeleteRecord record, String type) throws SRecorderException
RecorderrecordDelete in interface Recorderrecord - the record for insertSRecorderExceptionpublic void recordDeleteAll(DeleteAllRecord record) throws SRecorderException
RecorderrecordDeleteAll in interface Recorderrecord - table to cleanSRecorderExceptionpublic void recordUpdate(UpdateRecord record, String type) throws SRecorderException
RecorderrecordUpdate in interface Recorderrecord - the record for insertSRecorderExceptionpublic int recordUpdateWithQuery(UpdateRecord record, String type, String query) throws SRecorderException
RecorderrecordUpdateWithQuery in interface Recorderrecord - the record for inserttype - Object typequery - NamedQuery to be usedSRecorderExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.