org.yablona.server.ejb.general
Class AbstractYablonaBeanImpl

java.lang.Object
  extended byorg.yablona.server.ejb.general.AbstractYablonaBeanImpl
All Implemented Interfaces:
YablonaBeanService
Direct Known Subclasses:
YablonaAdminBeanImpl, YablonaAttributeBeanImpl, YablonaIssueBeanImpl

public class AbstractYablonaBeanImpl
extends java.lang.Object
implements YablonaBeanService

Implementation of common behaviour for the EJB implementation classes

Author:
Peter

Field Summary
private  java.sql.Connection _connection
           
private  javax.ejb.SessionContext _sessionContext
           
 
Constructor Summary
AbstractYablonaBeanImpl()
          AbstractYablonaBeanImpl constructor.
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 java.sql.Connection getConnection()
           
protected  java.lang.Integer getUserId(java.lang.String login)
           
 void releaseConnection(boolean commit)
           
 void setSessionContext(javax.ejb.SessionContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_connection

private java.sql.Connection _connection

_sessionContext

private javax.ejb.SessionContext _sessionContext
Constructor Detail

AbstractYablonaBeanImpl

public AbstractYablonaBeanImpl()
AbstractYablonaBeanImpl constructor.

Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Specified by:
ejbCreate in interface YablonaBeanService
Throws:
javax.ejb.CreateException

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException,
                        java.rmi.RemoteException
Specified by:
ejbActivate in interface YablonaBeanService
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException,
                         java.rmi.RemoteException
Specified by:
ejbPassivate in interface YablonaBeanService
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException,
                      java.rmi.RemoteException
Specified by:
ejbRemove in interface YablonaBeanService
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

getConnection

public java.sql.Connection getConnection()
                                  throws javax.naming.NamingException,
                                         java.sql.SQLException
Specified by:
getConnection in interface YablonaBeanService
Throws:
javax.naming.NamingException
java.sql.SQLException

releaseConnection

public void releaseConnection(boolean commit)
                       throws java.sql.SQLException
Specified by:
releaseConnection in interface YablonaBeanService
Throws:
java.sql.SQLException

setSessionContext

public void setSessionContext(javax.ejb.SessionContext context)
Specified by:
setSessionContext in interface YablonaBeanService

getUserId

protected java.lang.Integer getUserId(java.lang.String login)
                               throws java.lang.Exception
Throws:
java.lang.Exception