Class DerbyDoesTableExist

  • All Implemented Interfaces:
    IDatabaseSupplier<java.lang.Boolean>

    public class DerbyDoesTableExist
    extends java.lang.Object
    implements IDatabaseSupplier<java.lang.Boolean>
    For this implementation we simply run a select against the table and see if it kicks back with an error (which isn't related to connection failure).
    • Constructor Summary

      Constructors 
      Constructor Description
      DerbyDoesTableExist​(java.lang.String schemaName, java.lang.String tableName)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean run​(IDatabaseTranslator translator, java.sql.Connection c)
      Execute the statement using the connection and return the value
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DerbyDoesTableExist

        public DerbyDoesTableExist​(java.lang.String schemaName,
                                   java.lang.String tableName)
        Public constructor
        Parameters:
        schemaName -
        tableName -
    • Method Detail

      • run

        public java.lang.Boolean run​(IDatabaseTranslator translator,
                                     java.sql.Connection c)
        Description copied from interface: IDatabaseSupplier
        Execute the statement using the connection and return the value
        Specified by:
        run in interface IDatabaseSupplier<java.lang.Boolean>
        Parameters:
        translator - to translate any exceptions