net.sf.imca.services
Class Service

java.lang.Object
  extended by net.sf.imca.services.Service
Direct Known Subclasses:
CommitteeService, EditDataService, ImportData, JoinImcaService, LoginRegisterService, UiService

public class Service
extends java.lang.Object

Service parent class. Used for common Service code.

Author:
dougculnane

Field Summary
protected  javax.persistence.EntityManager em
           
 
Constructor Summary
Service()
           
 
Method Summary
 void destroyEntityManager()
           
protected  void endTransaction()
          Called at the end of a transaction.
protected  void startTransaction()
          Called before the start of a transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em
Constructor Detail

Service

public Service()
Method Detail

startTransaction

protected void startTransaction()
Called before the start of a transaction.


endTransaction

protected void endTransaction()
                       throws java.lang.Exception
Called at the end of a transaction. Will commit or role back transaction. Throws an error if tere is a problem.

Throws:
java.lang.Exception

destroyEntityManager

public void destroyEntityManager()


Copyright © 2007-2008 The International Moth Class Association (IMCA).. All Rights Reserved.