Class PgDatabaseConfiguration.PostgreSQLVariants

java.lang.Object
io.nflow.engine.config.db.PgDatabaseConfiguration.PostgreSQLVariants
All Implemented Interfaces:
SQLVariants
Enclosing class:
PgDatabaseConfiguration

public static class PgDatabaseConfiguration.PostgreSQLVariants extends Object implements SQLVariants
SQL variants optimized for PostgreSQL.
  • Constructor Details

    • PostgreSQLVariants

      public PostgreSQLVariants()
  • Method Details

    • currentTimePlusSeconds

      public String currentTimePlusSeconds(int seconds)
      Returns SQL representing the current database time plus given amount of seconds.
      Specified by:
      currentTimePlusSeconds in interface SQLVariants
    • hasUpdateReturning

      public boolean hasUpdateReturning()
      Returns true as PostgreSQL supports update returning clause.
      Specified by:
      hasUpdateReturning in interface SQLVariants
    • hasUpdateableCTE

      public boolean hasUpdateableCTE()
      Returns true as PostgreSQL supports updateable CTEs.
      Specified by:
      hasUpdateableCTE in interface SQLVariants
    • nextActivationUpdate

      public String nextActivationUpdate()
      Returns SQL representing the next activation time of the workflow instance.
      Specified by:
      nextActivationUpdate in interface SQLVariants
    • workflowStatus

      public String workflowStatus(WorkflowInstance.WorkflowInstanceStatus status)
      Returns the SQL representation for given workflow instance status.
      Specified by:
      workflowStatus in interface SQLVariants
    • workflowStatus

      public String workflowStatus()
      Returns SQL representing the workflow instance status parameter.
      Specified by:
      workflowStatus in interface SQLVariants
    • actionType

      public String actionType()
      Returns SQL representing the action type parameter.
      Specified by:
      actionType in interface SQLVariants
    • castToText

      public String castToText()
      Returns string for casting value to text.
      Specified by:
      castToText in interface SQLVariants
    • limit

      public String limit(String query, long limit)
      Returns SQL for a query with a limit of results.
      Specified by:
      limit in interface SQLVariants
    • longTextType

      public int longTextType()
      Returns the SQL type for long text.
      Specified by:
      longTextType in interface SQLVariants
    • useBatchUpdate

      public boolean useBatchUpdate()
      Returns true as PostgreSQL suppports batch updates.
      Specified by:
      useBatchUpdate in interface SQLVariants
    • forUpdateSkipLocked

      public String forUpdateSkipLocked()
      PostgreSQL suppports for update skip locked.
      Specified by:
      forUpdateSkipLocked in interface SQLVariants