Class RecorderImpl
- java.lang.Object
-
- org.bonitasoft.engine.recorder.impl.RecorderImpl
-
-
Constructor Summary
Constructors Constructor Description RecorderImpl(PersistenceService persistenceService, EventService eventService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrecordDelete(DeleteRecord record, java.lang.String type)Delete a record from databasevoidrecordDeleteAll(DeleteAllRecord record)Delete all records for a table from database, for the connected tenantvoidrecordInsert(InsertRecord record, java.lang.String type)Add a record to databasevoidrecordUpdate(UpdateRecord record, java.lang.String type)Update a record from databaseintrecordUpdateWithQuery(UpdateRecord record, java.lang.String type, java.lang.String query)Update a record from database with a named query If no rows have been updated the event is not thrown
-
-
-
Constructor Detail
-
RecorderImpl
public RecorderImpl(PersistenceService persistenceService, EventService eventService)
-
-
Method Detail
-
recordInsert
public void recordInsert(InsertRecord record, java.lang.String type) throws SRecorderException
Description copied from interface:RecorderAdd a record to database- Specified by:
recordInsertin interfaceRecorder- Parameters:
record- the record for insert- Throws:
SRecorderException
-
recordDelete
public void recordDelete(DeleteRecord record, java.lang.String type) throws SRecorderException
Description copied from interface:RecorderDelete a record from database- Specified by:
recordDeletein interfaceRecorder- Parameters:
record- the record for insert- Throws:
SRecorderException
-
recordDeleteAll
public void recordDeleteAll(DeleteAllRecord record) throws SRecorderException
Description copied from interface:RecorderDelete all records for a table from database, for the connected tenant- Specified by:
recordDeleteAllin interfaceRecorder- Parameters:
record- table to clean- Throws:
SRecorderException
-
recordUpdate
public void recordUpdate(UpdateRecord record, java.lang.String type) throws SRecorderException
Description copied from interface:RecorderUpdate a record from database- Specified by:
recordUpdatein interfaceRecorder- Parameters:
record- the record for insert- Throws:
SRecorderException
-
recordUpdateWithQuery
public int recordUpdateWithQuery(UpdateRecord record, java.lang.String type, java.lang.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:
record- the record for inserttype- Object typequery- NamedQuery to be used- Returns:
- number of updated rows
- Throws:
SRecorderException
-
-