net.sf.colle.mid.ejb.test
Class TestImpl

java.lang.Object
  extended bynet.sf.colle.mid.ejb.test.TestImpl
All Implemented Interfaces:
Test

public class TestImpl
extends Object
implements Test

Implementation of the test bean. Created: 11 Mar 2003

Version:
$Revision: 1.3 $, $Date: 2004/09/13 04:44:13 $
Author:
Dwayne Schultz

Constructor Summary
TestImpl()
           
 
Method Summary
 void delete(int pnId)
          Deletes test values.
 String hello(String psName)
          Returns greeting.
 boolean idExists(int pnId)
          Checks if call to insert was rolled back.
 void insert(int pnId, boolean pbThrowException, boolean pbThrowError)
          Inserts value into test table then optionally throws an exception to test rollback exception handling.
 void throwException()
          Throws an exception, causes transaction to be rolled back.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestImpl

public TestImpl()
Method Detail

hello

public String hello(String psName)
Returns greeting.

Specified by:
hello in interface Test
Parameters:
psName - Thing who greeting will be directed to.

throwException

public void throwException()
                    throws CloneNotSupportedException
Throws an exception, causes transaction to be rolled back.

Specified by:
throwException in interface Test
Throws:
CloneNotSupportedException

insert

public void insert(int pnId,
                   boolean pbThrowException,
                   boolean pbThrowError)
            throws CloneNotSupportedException
Inserts value into test table then optionally throws an exception to test rollback exception handling.

Specified by:
insert in interface Test
Throws:
CloneNotSupportedException

idExists

public boolean idExists(int pnId)
Checks if call to insert was rolled back.

Specified by:
idExists in interface Test

delete

public void delete(int pnId)
Description copied from interface: Test
Deletes test values.

Specified by:
delete in interface Test