All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.platform.db2.DB2HistorySupport Maven / Gradle / Ivy

The newest version!
package io.ebean.platform.db2;

import io.ebean.config.dbplatform.DbStandardHistorySupport;

/**
 * DB2 based history support.
 */
public class DB2HistorySupport extends DbStandardHistorySupport {

  @Override
  public String getAsOfViewSuffix(String asOfViewSuffix) {
    return " for system_time as of ?";
  }

  @Override
  public String getVersionsBetweenSuffix(String asOfViewSuffix) {
    return " for system_time between ? and ?";
  }

  @Override
  public String getSysPeriodLower(String tableAlias, String sysPeriod) {
    return tableAlias + "." + sysPeriod + "_start";
  }

  @Override
  public String getSysPeriodUpper(String tableAlias, String sysPeriod) {
    return tableAlias + "." + sysPeriod + "_end";
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy