public abstract class AbstractDatabaseAction extends java.lang.Object implements MessageAction
| Constructor and Description | 
|---|
| AbstractDatabaseAction() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract void | doExecute(EventMessage msg)Performs the business logic of the action. | 
| void | execute(EventMessage msg)Perform the action on the EventMessage | 
| protected void | handleTransactions(boolean commit)Commits the current thread transaction, as well as close the Hibernate session. | 
protected abstract void doExecute(EventMessage msg)
execute(EventMessage).msg - event being executed; will not be nullpublic void execute(EventMessage msg)
execute in interface MessageActionmsg - EventMessage to execute.protected void handleTransactions(boolean commit)
Note that this call MUST take place for any database operations done in a message queue action for the transaction to be committed.
commit - true if transaction should be committed.  if false, it will be
 rolled back.  It will also be rolled back if attempt to commit fails.