Class GetLeasePostgresql
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.schema.GetLease
-
- org.linuxforhealth.fhir.database.utils.schema.GetLeasePostgresql
-
- All Implemented Interfaces:
IDatabaseSupplier<java.lang.Boolean>
public class GetLeasePostgresql extends GetLease
PostgreSQL variant of GetLease to avoid duplicate PK exception which would cause the transaction to fail. To prevent this, the insert needs ON CONFLICT DO NOTHING
-
-
Constructor Summary
Constructors Constructor Description GetLeasePostgresql(java.lang.String adminSchema, java.lang.String schemaName, java.lang.String host, java.lang.String leaseId, java.time.Instant leaseUntil)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getInsertSQL(java.lang.String adminSchema)
Get the insert statement
-
-
-
Method Detail
-
getInsertSQL
protected java.lang.String getInsertSQL(java.lang.String adminSchema)
Description copied from class:GetLease
Get the insert statement- Overrides:
getInsertSQL
in classGetLease
- Returns:
-
-