org.jboss.test.entityexc.interfaces
Interface EntityExcHome

All Superinterfaces:
EJBHome (src) , java.rmi.Remote

public interface EntityExcHome
extends EJBHome (src)

Home interface of the entity exception test bean.


Field Summary
static java.lang.String JNDI_NAME
          JNDI name of this home.
 
Method Summary
 EntityExc (src) create(java.lang.Integer id, int flags)
          Create a new entity instance.
 java.util.Collection findAll(int flags)
          Find all beans in this interface.
 EntityExc (src) findByPrimaryKey(java.lang.Integer key, int flags)
          Find by primary key.
 void resetDatabase()
          Reset the database to a known state.
 
Methods inherited from interface javax.ejb.EJBHome (src)
getEJBMetaData, getHomeHandle, remove, remove
 

Field Detail

JNDI_NAME

public static final java.lang.String JNDI_NAME
JNDI name of this home.

See Also:
Constant Field Values (src)
Method Detail

create

public EntityExc (src)  create(java.lang.Integer id,
                        int flags)
                 throws MyAppException (src) ,
                        CreateException (src) ,
                        java.rmi.RemoteException
Create a new entity instance.

Throws:
MyAppException (src)
CreateException (src)
java.rmi.RemoteException

findByPrimaryKey

public EntityExc (src)  findByPrimaryKey(java.lang.Integer key,
                                  int flags)
                           throws MyAppException (src) ,
                                  FinderException (src) ,
                                  java.rmi.RemoteException
Find by primary key.

Throws:
MyAppException (src)
FinderException (src)
java.rmi.RemoteException

findAll

public java.util.Collection findAll(int flags)
                             throws MyAppException (src) ,
                                    FinderException (src) ,
                                    java.rmi.RemoteException
Find all beans in this interface.

Throws:
MyAppException (src)
FinderException (src)
java.rmi.RemoteException

resetDatabase

public void resetDatabase()
                   throws java.rmi.RemoteException
Reset the database to a known state. This is used for initializing, and should be called after deployment but before the tests start. It will create the database table, if it does not exist, or is not correctly defined. If the database table is not empty, all records in it will be deleted.

Throws:
java.rmi.RemoteException