Module io.ebean.api

Class DbStandardHistorySupport

All Implemented Interfaces:

public abstract class DbStandardHistorySupport extends Object implements DbHistorySupport
SQL2011 based history support using 'as of timestamp' type clause appended as part of the the from or join clause.
  • Constructor Details

    • DbStandardHistorySupport

      public DbStandardHistorySupport()
  • Method Details

    • isStandardsBased

      public boolean isStandardsBased()
      Description copied from interface: DbHistorySupport
      Return true if the implementation is SQL2011 standards based.

      Non standards based means we need to add additional predicates into the JOIN ON clause and add an additional predicate for the base table.

      Specified by:
      isStandardsBased in interface DbHistorySupport
    • getBindCount

      public int getBindCount()
      Return 1 as the bind count (not 2 for effective start and effective end columns).
      Specified by:
      getBindCount in interface DbHistorySupport
    • getAsOfPredicate

      public String getAsOfPredicate(String tableAlias, String sysPeriod)
      Return null - not used for sql2011 based history.
      Specified by:
      getAsOfPredicate in interface DbHistorySupport
      tableAlias - The table alias this predicate is added for
      sysPeriod - The name of the 'sys_period' column used for effective date time range.
      The predicate containing a single ? bind parameter which will be bound to the 'as at' timestamp value