Class DerbyDoesTableExist
- java.lang.Object
-
- com.ibm.fhir.database.utils.derby.DerbyDoesTableExist
-
- All Implemented Interfaces:
IDatabaseSupplier<Boolean>
public class DerbyDoesTableExist extends Object implements IDatabaseSupplier<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(String schemaName, String tableName)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
run(IDatabaseTranslator translator, Connection c)
Execute the statement using the connection and return the value
-
-
-
Method Detail
-
run
public Boolean run(IDatabaseTranslator translator, Connection c)
Description copied from interface:IDatabaseSupplier
Execute the statement using the connection and return the value- Specified by:
run
in interfaceIDatabaseSupplier<Boolean>
- Parameters:
translator
- to translate any exceptions
-
-