org.jboss.test.entityexc.interfaces
Interface EntityExc

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

public interface EntityExc
extends EJBObject (src)

Remote interface of entity exception test bean.


Field Summary
static int EXC_CREATEEXCEPTION
          Exception code for a CreateException.
static int EXC_EJBEXCEPTION
          Exception code for a EJBException.
static int EXC_MYAPPEXCEPTION
          Exception code for a {@link MyAppException].
static java.lang.String EXCEPTION_TEXT
          Text of Exception message thrown.
static int F_EXC_MASK
          Flags exception code mask.
static int F_FAIL_POSTCREATE
          Flag telling that failure should not happen until the postCreate method.
static int F_SETROLLBACKONLY
          Flag telling that context.setRollbackOnly must be called before returning.
static int F_THROW_BEFORE
          Flag telling that an exception should be thrown after the exception, and not before.
 
Method Summary
 int getId()
          Return the id of this instance.
 int getVal()
          Return the value of this instance.
 void incrementVal()
          Increment the value of this instance by one.
 void incrementVal(int flags)
          Increment the value of this instance by one, and fail according to the failure argument afterwards.
 
Methods inherited from interface javax.ejb.EJBObject (src)
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Field Detail

EXC_MYAPPEXCEPTION

public static final int EXC_MYAPPEXCEPTION
Exception code for a {@link MyAppException]. This may be used in the flags sent to various methods here, and in the home interface.

See Also:
Constant Field Values (src)

EXC_CREATEEXCEPTION

public static final int EXC_CREATEEXCEPTION
Exception code for a CreateException. This may be used in the flags sent to various methods here, and in the home interface.

See Also:
Constant Field Values (src)

EXC_EJBEXCEPTION

public static final int EXC_EJBEXCEPTION
Exception code for a EJBException. This may be used in the flags sent to various methods here, and in the home interface.

See Also:
Constant Field Values (src)

F_EXC_MASK

public static final int F_EXC_MASK
Flags exception code mask.

See Also:
Constant Field Values (src)

F_THROW_BEFORE

public static final int F_THROW_BEFORE
Flag telling that an exception should be thrown after the exception, and not before.

See Also:
Constant Field Values (src)

F_FAIL_POSTCREATE

public static final int F_FAIL_POSTCREATE
Flag telling that failure should not happen until the postCreate method. Ignored for non-create invocations.

See Also:
Constant Field Values (src)

F_SETROLLBACKONLY

public static final int F_SETROLLBACKONLY
Flag telling that context.setRollbackOnly must be called before returning.

See Also:
Constant Field Values (src)

EXCEPTION_TEXT

public static final java.lang.String EXCEPTION_TEXT
Text of Exception message thrown. We check this to make sure we get our Exception.

See Also:
Constant Field Values (src)
Method Detail

getId

public int getId()
          throws java.rmi.RemoteException
Return the id of this instance.

Throws:
java.rmi.RemoteException

getVal

public int getVal()
           throws java.rmi.RemoteException
Return the value of this instance. This method really works.

Throws:
java.rmi.RemoteException

incrementVal

public void incrementVal()
                  throws java.rmi.RemoteException
Increment the value of this instance by one.

Throws:
java.rmi.RemoteException

incrementVal

public void incrementVal(int flags)
                  throws MyAppException (src) ,
                         java.rmi.RemoteException
Increment the value of this instance by one, and fail according to the failure argument afterwards. This method has a Required transaction attribute.

Throws:
MyAppException (src)
java.rmi.RemoteException