org.apache.aries.transaction.test.impl
Class TestBeanImpl

java.lang.Object
  extended by org.apache.aries.transaction.test.impl.TestBeanImpl
All Implemented Interfaces:
TestBean

public class TestBeanImpl
extends java.lang.Object
implements TestBean


Constructor Summary
TestBeanImpl()
           
 
Method Summary
 int countRows()
           
 void initialize()
           
 void insertRow(java.lang.String name, int value)
           
 void insertRow(java.lang.String name, int value, boolean delegate)
           
 void insertRow(java.lang.String name, int value, java.lang.Exception e)
           
 void setDataSource(javax.sql.DataSource ds)
           
 void setEnlistingDataSource(javax.sql.DataSource xads)
           
 void setPassword(java.lang.String password)
           
 void setTestBean(TestBean bean)
           
 void setUser(java.lang.String user)
           
 void throwApplicationException()
           
 void throwRuntimeException()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestBeanImpl

public TestBeanImpl()
Method Detail

initialize

public void initialize()

insertRow

public void insertRow(java.lang.String name,
                      int value)
               throws java.sql.SQLException
Specified by:
insertRow in interface TestBean
Throws:
java.sql.SQLException

insertRow

public void insertRow(java.lang.String name,
                      int value,
                      java.lang.Exception e)
               throws java.sql.SQLException
Specified by:
insertRow in interface TestBean
Throws:
java.sql.SQLException

insertRow

public void insertRow(java.lang.String name,
                      int value,
                      boolean delegate)
               throws java.sql.SQLException
Specified by:
insertRow in interface TestBean
Throws:
java.sql.SQLException

countRows

public int countRows()
              throws java.sql.SQLException
Specified by:
countRows in interface TestBean
Throws:
java.sql.SQLException

throwApplicationException

public void throwApplicationException()
                               throws java.sql.SQLException
Specified by:
throwApplicationException in interface TestBean
Throws:
java.sql.SQLException

throwRuntimeException

public void throwRuntimeException()
Specified by:
throwRuntimeException in interface TestBean

setEnlistingDataSource

public void setEnlistingDataSource(javax.sql.DataSource xads)

setDataSource

public void setDataSource(javax.sql.DataSource ds)

setUser

public void setUser(java.lang.String user)

setPassword

public void setPassword(java.lang.String password)

setTestBean

public void setTestBean(TestBean bean)


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.