Package com.ibm.fhir.schema.control
Class GetLease
- java.lang.Object
-
- com.ibm.fhir.schema.control.GetLease
-
- All Implemented Interfaces:
IDatabaseSupplier<Boolean>
- Direct Known Subclasses:
GetLeasePostgresql
public class GetLease extends Object implements IDatabaseSupplier<Boolean>
Obtain a lease for this instance of the schema update tool. Only the tool holding the lease is allowed to modify the schema.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetInsertSQL(String adminSchema)Get the insert statementBooleanrun(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:IDatabaseSupplierExecute the statement using the connection and return the value- Specified by:
runin interfaceIDatabaseSupplier<Boolean>- Parameters:
translator- to translate any exceptions
-
-