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