Class GetLeasePostgresql

  • All Implemented Interfaces:
    IDatabaseSupplier<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 Detail

      • GetLeasePostgresql

        public GetLeasePostgresql​(String adminSchema,
                                  String schemaName,
                                  String host,
                                  String leaseId,
                                  Instant leaseUntil)
        Public constructor
        Parameters:
        adminSchema -
        schemaName -
        host -
        leaseId -
        leaseUntil -