Class PostgresDoesForeignKeyConstraintExist
- java.lang.Object
 - 
- org.linuxforhealth.fhir.database.utils.postgres.PostgresDoesForeignKeyConstraintExist
 
 
- 
- All Implemented Interfaces:
 IDatabaseSupplier<java.lang.Boolean>
public class PostgresDoesForeignKeyConstraintExist extends java.lang.Object implements IDatabaseSupplier<java.lang.Boolean>
DAO to check if a named foreign key (FK) constraint exists 
- 
- 
Constructor Summary
Constructors Constructor Description PostgresDoesForeignKeyConstraintExist(java.lang.String schemaName, java.lang.String constraintName)Public constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Booleanrun(IDatabaseTranslator translator, java.sql.Connection c)Execute the statement using the connection and return the value 
 - 
 
- 
- 
Method Detail
- 
run
public java.lang.Boolean run(IDatabaseTranslator translator, java.sql.Connection c)
Description copied from interface:IDatabaseSupplierExecute the statement using the connection and return the value- Specified by:
 runin interfaceIDatabaseSupplier<java.lang.Boolean>- Parameters:
 translator- to translate any exceptions
 
 - 
 
 -