001package com.avaje.ebean.config.dbplatform;
002
003/**
004 * SQL2011 based history support using 'as of timestamp' type clause appended as part of the the from or join clause.
005 */
006public abstract class DbStandardHistorySupport implements DbHistorySupport {
007
008  /**
009   * Return true as with sql2011 the 'as of timestamp' clause included in from or join clause.
010   */
011  @Override
012  public boolean isBindWithFromClause() {
013    return true;
014  }
015
016  /**
017   * Return 1 as the bind count (not 2 for effective start and effective end columns).
018   */
019  @Override
020  public int getBindCount() {
021    return 1;
022  }
023
024  /**
025   * Return null - not used for sql2011 based history.
026   */
027  @Override
028  public String getAsOfPredicate(String tableAlias, String sysPeriod) {
029    // not used for sql2011 based history
030    return null;
031  }
032}