degu.model.degudocstorage.ejb
Class DeguDocStorageBean

java.lang.Object
  extended by degu.model.degudocstorage.ejb.DeguDocStorageBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.EntityBean

public class DeguDocStorageBean
extends java.lang.Object
implements javax.ejb.EntityBean

See Also:
Serialized Form

Field Summary
private  javax.ejb.EntityContext ctx
           
private  java.lang.String id
           
private static org.apache.log4j.Logger logger
           
private  java.io.File STORAGE_DIR
           
 
Constructor Summary
DeguDocStorageBean()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.String ejbCreate(DeguDocument doc)
          Create method
 java.lang.String ejbFindByPrimaryKey(java.lang.String primaryKey)
           
 boolean ejbHomeCheckAvailability(java.lang.String id)
          Home method
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(DeguDocument doc)
          Post Create method
 void ejbRemove()
           
 void ejbStore()
           
 DeguDocument getDeguDocument()
          Business method
 void setEntityContext(javax.ejb.EntityContext ctx)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctx

private javax.ejb.EntityContext ctx

id

private java.lang.String id

STORAGE_DIR

private java.io.File STORAGE_DIR

logger

private static org.apache.log4j.Logger logger
Constructor Detail

DeguDocStorageBean

public DeguDocStorageBean()
Method Detail

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws javax.ejb.EJBException,
                             java.rmi.RemoteException
Specified by:
setEntityContext in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

unsetEntityContext

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

ejbRemove

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

ejbActivate

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

ejbPassivate

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

ejbLoad

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

ejbStore

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

ejbFindByPrimaryKey

public java.lang.String ejbFindByPrimaryKey(java.lang.String primaryKey)
                                     throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

ejbCreate

public java.lang.String ejbCreate(DeguDocument doc)
                           throws javax.ejb.CreateException
Create method

Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(DeguDocument doc)
                   throws javax.ejb.CreateException
Post Create method

Throws:
javax.ejb.CreateException

ejbHomeCheckAvailability

public boolean ejbHomeCheckAvailability(java.lang.String id)
Home method


getDeguDocument

public DeguDocument getDeguDocument()
                             throws javax.ejb.ObjectNotFoundException
Business method

Throws:
javax.ejb.ObjectNotFoundException