|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public static final int EXC_MYAPPEXCEPTION
public static final int EXC_CREATEEXCEPTION
CreateException
.
This may be used in the flags sent to various methods
here, and in the home interface.
public static final int EXC_EJBEXCEPTION
EJBException
.
This may be used in the flags sent to various methods
here, and in the home interface.
public static final int F_EXC_MASK
public static final int F_THROW_BEFORE
public static final int F_FAIL_POSTCREATE
public static final int F_SETROLLBACKONLY
context.setRollbackOnly
must be
called before returning.
public static final java.lang.String EXCEPTION_TEXT
Method Detail |
public int getId() throws java.rmi.RemoteException
java.rmi.RemoteException
public int getVal() throws java.rmi.RemoteException
java.rmi.RemoteException
public void incrementVal() throws java.rmi.RemoteException
java.rmi.RemoteException
public void incrementVal(int flags) throws MyAppException (src) , java.rmi.RemoteException
MyAppException (src)
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |