User: osh
Date: 01/01/20 08:00:17
Modified: src/main/org/jboss/test/bmp/beans BMPHelperSessionBean.java
SimpleBMPBean.java
Log:
Some more exception cleanup, to avoid verifier warnings.
Revision Changes Path
1.2 +12 -12
jbosstest/src/main/org/jboss/test/bmp/beans/BMPHelperSessionBean.java
Index: BMPHelperSessionBean.java
===================================================================
RCS file:
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/bmp/beans/BMPHelperSessionBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BMPHelperSessionBean.java 2000/10/25 23:01:22 1.1
+++ BMPHelperSessionBean.java 2001/01/20 16:00:16 1.2
@@ -19,7 +19,7 @@
SessionContext ctx = null;
private DataSource ds = null;
- public void ejbCreate () throws CreateException, EJBException, RemoteException
+ public void ejbCreate () throws CreateException, RemoteException
{
try
{
@@ -31,22 +31,22 @@
}
}
- public boolean existsSimpleBeanTable () throws EJBException, RemoteException
+ public boolean existsSimpleBeanTable ()
{
return tableExists ("simpleBean");
}
- public void createSimpleBeanTable () throws EJBException, RemoteException
+ public void createSimpleBeanTable ()
{
createTable ("CREATE TABLE simpleBean (id INTEGER, name VARCHAR(200))");
}
- public void dropSimpleBeanTable () throws EJBException, RemoteException
+ public void dropSimpleBeanTable ()
{
dropTable ("simpleBean");
}
- public String doTest () throws EJBException, RemoteException
+ public String doTest () throws RemoteException
{
StringBuffer sb = new StringBuffer ();
SimpleBMP b;
@@ -78,7 +78,7 @@
return sb.toString ();
}
- private boolean tableExists (String _tableName) throws EJBException,
RemoteException
+ private boolean tableExists (String _tableName)
{
boolean result = false;
Connection con = null;
@@ -111,7 +111,7 @@
}
- private void createTable (String _sql) throws EJBException, RemoteException
+ private void createTable (String _sql)
{
Connection con = null;
try
@@ -138,7 +138,7 @@
}
}
- private void dropTable (String _tableName) throws EJBException, RemoteException
+ private void dropTable (String _tableName)
{
Connection con = null;
try
@@ -166,8 +166,8 @@
}
- public void ejbActivate () throws EJBException, RemoteException {}
- public void ejbPassivate () throws EJBException, RemoteException {}
- public void ejbRemove () throws EJBException, RemoteException {}
- public void setSessionContext (SessionContext _ctx) throws EJBException,
RemoteException {ctx = _ctx;}
+ public void ejbActivate () {}
+ public void ejbPassivate () {}
+ public void ejbRemove () {}
+ public void setSessionContext (SessionContext _ctx) {ctx = _ctx;}
}
1.2 +15 -13 jbosstest/src/main/org/jboss/test/bmp/beans/SimpleBMPBean.java
Index: SimpleBMPBean.java
===================================================================
RCS file:
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/bmp/beans/SimpleBMPBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SimpleBMPBean.java 2000/10/25 23:01:23 1.1
+++ SimpleBMPBean.java 2001/01/20 16:00:17 1.2
@@ -22,7 +22,8 @@
Integer id;
String name;
- public Integer ejbCreate (int _id, String _name) throws CreateException,
DuplicateKeyException, EJBException, RemoteException
+ public Integer ejbCreate (int _id, String _name)
+ throws CreateException, RemoteException
{
System.out.println ("ejbCreate (int, String) called");
@@ -73,12 +74,13 @@
return id;
}
- public void ejbPostCreate (int _id, String _name) throws CreateException,
DuplicateKeyException, EJBException, RemoteException
+ public void ejbPostCreate (int _id, String _name)
+ throws CreateException, RemoteException
{
System.out.println ("ejbPostCreate (int, String) called");
}
- public void ejbLoad () throws EJBException, RemoteException
+ public void ejbLoad ()
{
System.out.println ("ejbLoad () called");
@@ -115,7 +117,7 @@
}
}
- public void ejbStore () throws EJBException, RemoteException
+ public void ejbStore ()
{
System.out.println ("ejbStore () called");
@@ -146,7 +148,7 @@
}
}
- public void ejbRemove () throws EJBException, RemoteException
+ public void ejbRemove ()
{
System.out.println ("ejbRemove () called");
@@ -177,7 +179,7 @@
}
- public Integer ejbFindByPrimaryKey (Integer _key) throws FinderException,
EJBException, RemoteException
+ public Integer ejbFindByPrimaryKey (Integer _key) throws FinderException
{
System.out.println ("ejbFindByPrimaryKey (Integer) called");
@@ -215,7 +217,7 @@
return _key;
}
- public Collection ejbFindAll () throws EJBException, RemoteException
+ public Collection ejbFindAll () throws FinderException
{
System.out.println ("ejbFindAll () called");
@@ -255,17 +257,17 @@
- public void ejbActivate () throws EJBException, RemoteException
+ public void ejbActivate ()
{
System.out.println ("ejbActivate () called");
}
- public void ejbPassivate () throws EJBException, RemoteException
+ public void ejbPassivate ()
{
System.out.println ("ejbPassivate () called");
}
- public void setEntityContext (EntityContext _ctx) throws EJBException,
RemoteException
+ public void setEntityContext (EntityContext _ctx)
{
System.out.println ("setEntityContext (\""+_ctx.getPrimaryKey ()+"\")
called");
@@ -281,7 +283,7 @@
}
}
- public void unsetEntityContext () throws EJBException, RemoteException
+ public void unsetEntityContext ()
{
System.out.println ("unsetEntityContext () called");
@@ -290,12 +292,12 @@
// business methods
---------------------------------------------------------------
- public void setName (String _name) throws RemoteException
+ public void setName (String _name)
{
name = _name;
}
- public String getName () throws RemoteException
+ public String getName ()
{
return name;
}