Class 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
      • Methods inherited from class org.linuxforhealth.fhir.database.utils.schema.GetLease

        run
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GetLeasePostgresql

        public GetLeasePostgresql​(java.lang.String adminSchema,
                                  java.lang.String schemaName,
                                  java.lang.String host,
                                  java.lang.String leaseId,
                                  java.time.Instant leaseUntil)
        Public constructor
        Parameters:
        adminSchema -
        schemaName -
        host -
        leaseId -
        leaseUntil -
    • Method Detail

      • getInsertSQL

        protected java.lang.String getInsertSQL​(java.lang.String adminSchema)
        Description copied from class: GetLease
        Get the insert statement
        Overrides:
        getInsertSQL in class GetLease
        Returns: