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 String
getInsertSQL(String adminSchema)
Get the insert statementBoolean
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
-
-