public class EventregDb extends org.bedework.util.misc.Logged implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Timestamp |
objTimestamp
When we were created for debugging
|
protected boolean |
open |
protected org.bedework.util.hibernate.HibSession |
sess
Current hibernate session - exists only across one user interaction
|
| Constructor and Description |
|---|
EventregDb() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(DbItem val)
Add the item.
|
void |
addChange(Change c) |
protected void |
beginTransaction() |
protected void |
checkOpen() |
boolean |
close() |
boolean |
close(boolean ignoreErrors) |
protected void |
closeSession() |
void |
delete(DbItem val)
Delete the dbitem.
|
protected void |
endTransaction() |
List<Registration> |
getAllRegistrations() |
List<Registration> |
getByEvent(String href)
Registrations for an event.
|
Registration |
getByid(Long id)
Registrations for a user.
|
List<Registration> |
getByUser(String user)
Registrations for a user.
|
FormDef |
getCalSuiteForm(String formName,
String calsuite) |
List<FormDef> |
getCalSuiteForms(String calsuite) |
List<Change> |
getChanges(String ts) |
static org.bedework.eventreg.db.EventregDb.IdBatch |
getIdBatch(EventregProperties sysInfo) |
Long |
getNextRegistrationId() |
long |
getRegistrantCount(String eventHref) |
long |
getRegTicketCount(String eventHref) |
long |
getTicketCount(String eventHref) |
Registration |
getUserRegistration(String eventHref,
String user) |
long |
getUserTicketCount(String eventHref,
String user) |
List<Registration> |
getWaiting(String eventHref) |
long |
getWaitingTicketCount(String eventHref) |
boolean |
isOpen() |
boolean |
open() |
protected void |
openSession() |
boolean |
rollback() |
protected void |
rollbackTransaction() |
void |
setSysInfo(EventregProperties sysInfo) |
void |
update(DbItem val)
Update the persisted state of the item.
|
audit, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, getAuditLoggerIfEnabled, getErrorLoggerIfEnabled, getLogger, getLogger, getMetricsLoggerIfEnabled, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsLoggerEnabled, metrics, warnprotected boolean open
protected Timestamp objTimestamp
protected org.bedework.util.hibernate.HibSession sess
public Long getNextRegistrationId() throws Throwable
Throwablepublic void setSysInfo(EventregProperties sysInfo)
public boolean open()
throws Throwable
Throwablepublic boolean isOpen()
public boolean rollback()
throws Throwable
Throwablepublic boolean close()
public boolean close(boolean ignoreErrors)
ignoreErrors - public List<Change> getChanges(String ts) throws Throwable
ts - - timestamp value - get changes after thisThrowablepublic List<Registration> getAllRegistrations() throws Throwable
Throwablepublic Registration getByid(Long id) throws Throwable
id - Throwablepublic List<Registration> getByUser(String user) throws Throwable
user - Throwablepublic Registration getUserRegistration(String eventHref, String user) throws Throwable
eventHref - user - Throwablepublic List<Registration> getByEvent(String href) throws Throwable
href - Throwablepublic long getRegistrantCount(String eventHref) throws Throwable
eventHref - Throwablepublic long getRegTicketCount(String eventHref) throws Throwable
eventHref - Throwablepublic long getWaitingTicketCount(String eventHref) throws Throwable
eventHref - href of eventThrowable - on fatal errorpublic List<Registration> getWaiting(String eventHref) throws Throwable
eventHref - Throwablepublic long getTicketCount(String eventHref) throws Throwable
eventHref - Throwablepublic long getUserTicketCount(String eventHref, String user) throws Throwable
eventHref - user - Throwablepublic List<FormDef> getCalSuiteForms(String calsuite) throws Throwable
Throwablepublic FormDef getCalSuiteForm(String formName, String calsuite) throws Throwable
Throwablepublic void add(DbItem val) throws Exception
val - the dbitemExceptionpublic void update(DbItem val) throws Exception
val - the dbitemExceptionpublic void delete(DbItem val) throws Throwable
val - the dbitemThrowablepublic static org.bedework.eventreg.db.EventregDb.IdBatch getIdBatch(EventregProperties sysInfo) throws Throwable
ThrowableCopyright © 2018 Bedework. All rights reserved.