Class TestEmbeddedXADataSource

  • All Implemented Interfaces:
    Wrapper, CommonDataSource, DataSource, XADataSource, org.apache.derby.jdbc.EmbeddedDataSourceInterface, org.apache.derby.jdbc.EmbeddedXADataSourceInterface

    public class TestEmbeddedXADataSource
    extends Object
    implements org.apache.derby.jdbc.EmbeddedXADataSourceInterface
    This class is used in the testing of the XA resource recovery function within the proxy datasource class. It serves as a wrapper class for the derby EmbeddedXADataSource class and provides additional function to artificially trigger failures during the two-phase commit process.
    • Constructor Detail

      • TestEmbeddedXADataSource

        public TestEmbeddedXADataSource()
    • Method Detail

      • getFailStep

        public String getFailStep()
      • setFailStep

        public void setFailStep​(String failStep)
      • getFailCount

        public int getFailCount()
      • setFailCount

        public void setFailCount​(int failCount)
      • getResourceAdapter

        public org.apache.derby.iapi.jdbc.ResourceAdapter getResourceAdapter()
        Specified by:
        getResourceAdapter in interface org.apache.derby.jdbc.EmbeddedXADataSourceInterface
      • setDatabaseName

        public void setDatabaseName​(String paramString)
        Specified by:
        setDatabaseName in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • getDatabaseName

        public String getDatabaseName()
        Specified by:
        getDatabaseName in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • setDataSourceName

        public void setDataSourceName​(String paramString)
        Specified by:
        setDataSourceName in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • getDataSourceName

        public String getDataSourceName()
        Specified by:
        getDataSourceName in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • setDescription

        public void setDescription​(String paramString)
        Specified by:
        setDescription in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • setUser

        public void setUser​(String paramString)
        Specified by:
        setUser in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • getUser

        public String getUser()
        Specified by:
        getUser in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • setPassword

        public void setPassword​(String paramString)
        Specified by:
        setPassword in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • getPassword

        public String getPassword()
        Specified by:
        getPassword in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • setCreateDatabase

        public void setCreateDatabase​(String paramString)
        Specified by:
        setCreateDatabase in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • getCreateDatabase

        public String getCreateDatabase()
        Specified by:
        getCreateDatabase in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • setConnectionAttributes

        public void setConnectionAttributes​(String paramString)
        Specified by:
        setConnectionAttributes in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • getConnectionAttributes

        public String getConnectionAttributes()
        Specified by:
        getConnectionAttributes in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • setShutdownDatabase

        public void setShutdownDatabase​(String paramString)
        Specified by:
        setShutdownDatabase in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • getShutdownDatabase

        public String getShutdownDatabase()
        Specified by:
        getShutdownDatabase in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • setAttributesAsPassword

        public void setAttributesAsPassword​(boolean paramBoolean)
        Specified by:
        setAttributesAsPassword in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • getAttributesAsPassword

        public boolean getAttributesAsPassword()
        Specified by:
        getAttributesAsPassword in interface org.apache.derby.jdbc.EmbeddedDataSourceInterface
      • equals

        public boolean equals​(Object paramObject)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object