Class RecorderImpl
java.lang.Object
org.bonitasoft.engine.recorder.impl.RecorderImpl
- All Implemented Interfaces:
Recorder
- Author:
- Charles Souillard, Baptiste Mesta, Celine Souchet
-
Constructor Summary
ConstructorsConstructorDescriptionRecorderImpl(PersistenceService persistenceService, EventService eventService) -
Method Summary
Modifier and TypeMethodDescriptionvoidrecordDelete(DeleteRecord deleteRecord, String type) Delete a record from databasevoidrecordDeleteAll(DeleteAllRecord deleteAllRecord) Delete all records for a table from database, for the connected tenantvoidrecordInsert(InsertRecord insertRecord, String type) Add a record to databasevoidrecordUpdate(UpdateRecord updateRecord, String type) Update a record from databaseintrecordUpdateWithQuery(UpdateRecord updateRecord, String type, String query) Update a record from database with a named query If no rows have been updated the event is not thrown
-
Constructor Details
-
RecorderImpl
-
-
Method Details
-
recordInsert
Description copied from interface:RecorderAdd a record to database- Specified by:
recordInsertin interfaceRecorder- Parameters:
insertRecord- the record for insert- Throws:
SRecorderException
-
recordDelete
Description copied from interface:RecorderDelete a record from database- Specified by:
recordDeletein interfaceRecorder- Parameters:
deleteRecord- the record for insert- Throws:
SRecorderException
-
recordDeleteAll
Description copied from interface:RecorderDelete all records for a table from database, for the connected tenant- Specified by:
recordDeleteAllin interfaceRecorder- Parameters:
deleteAllRecord- table to clean- Throws:
SRecorderException
-
recordUpdate
Description copied from interface:RecorderUpdate a record from database- Specified by:
recordUpdatein interfaceRecorder- Parameters:
updateRecord- the record for insert- Throws:
SRecorderException
-
recordUpdateWithQuery
public int recordUpdateWithQuery(UpdateRecord updateRecord, String type, String query) throws SRecorderException Description copied from interface:RecorderUpdate a record from database with a named query If no rows have been updated the event is not thrown- Specified by:
recordUpdateWithQueryin interfaceRecorder- Parameters:
updateRecord- the record for inserttype- Object typequery- NamedQuery to be used- Returns:
- number of updated rows
- Throws:
SRecorderException
-