Search in sources :

Example 1 with EventsRecord

use of com.infiniteautomation.mango.db.tables.records.EventsRecord in project ma-core-public by infiniteautomation.

the class EventDao method insertEvent.

private void insertEvent(EventInstance event) {
    savePreRelationalData(event);
    EventsRecord result = create.insertInto(table).set(voToObjectArray(event)).returning(table.id).fetchOne();
    int id = result == null ? -1 : result.get(table.id);
    event.setId(id);
}
Also used : EventsRecord(com.infiniteautomation.mango.db.tables.records.EventsRecord)

Aggregations

EventsRecord (com.infiniteautomation.mango.db.tables.records.EventsRecord)1