Class PostgresDoesForeignKeyConstraintExist
- java.lang.Object
-
- com.ibm.fhir.database.utils.postgres.PostgresDoesForeignKeyConstraintExist
-
- All Implemented Interfaces:
IDatabaseSupplier<Boolean>
public class PostgresDoesForeignKeyConstraintExist extends Object implements IDatabaseSupplier<Boolean>
DAO to check if a named foreign key (FK) constraint exists
-
-
Constructor Summary
Constructors Constructor Description PostgresDoesForeignKeyConstraintExist(String schemaName, String constraintName)
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
-
-