public class AuditDbIdGenSeq extends java.lang.Object implements AuditDbIdGen
| Constructor and Description |
|---|
AuditDbIdGenSeq()
Create instance that starts with 1.
|
AuditDbIdGenSeq(javax.persistence.EntityManager em)
Create instance that start with next value in database.
|
AuditDbIdGenSeq(int eventId,
int updateId)
Create instance that start with specified id + 1.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEventId()
Get audit event id (primary key).
|
int |
getUpdateId()
Get field update id (primary key).
|
public AuditDbIdGenSeq()
public AuditDbIdGenSeq(int eventId,
int updateId)
eventId - event idupdateId - update idpublic AuditDbIdGenSeq(javax.persistence.EntityManager em)
em - JPA entity managerpublic int getEventId()
AuditDbIdGengetEventId in interface AuditDbIdGenpublic int getUpdateId()
AuditDbIdGengetUpdateId in interface AuditDbIdGen