001package io.ebean.config.dbplatform.oracle;
002
003import io.ebean.config.dbplatform.DbStandardHistorySupport;
004
005/**
006 * Oracle Total recall based history support.
007 */
008public class OracleDbHistorySupport extends DbStandardHistorySupport {
009
010  /**
011   * Return the ' as of timestamp ?' clause appended after the table name.
012   */
013  @Override
014  public String getAsOfViewSuffix(String asOfViewSuffix) {
015    return " as of TIMESTAMP ?";
016  }
017
018  @Override
019  public String getVersionsBetweenSuffix(String asOfViewSuffix) {
020    return " versions between timestamp ? and ?";
021  }
022
023  /**
024   * Returns the Oracle specific effective start column.
025   */
026  @Override
027  public String getSysPeriodLower(String tableAlias, String sysPeriod) {
028    return "versions_starttime";
029  }
030
031  /**
032   * Returns the Oracle specific effective end column.
033   */
034  @Override
035  public String getSysPeriodUpper(String tableAlias, String sysPeriod) {
036    return "versions_endtime";
037  }
038
039}