Package io.ebean.config.dbplatform
Class DbStandardHistorySupport
- java.lang.Object
-
- io.ebean.config.dbplatform.DbStandardHistorySupport
-
- All Implemented Interfaces:
DbHistorySupport
- Direct Known Subclasses:
HanaHistorySupport
,MariaDbHistorySupport
,OracleDbHistorySupport
,SqlServerHistorySupport
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 Summary
Constructors Constructor Description DbStandardHistorySupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsOfPredicate(String tableAlias, String sysPeriod)
Return null - not used for sql2011 based history.int
getBindCount()
Return 1 as the bind count (not 2 for effective start and effective end columns).boolean
isStandardsBased()
Return true if the implementation is SQL2011 standards based.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.ebean.config.dbplatform.DbHistorySupport
getAsOfViewSuffix, getSysPeriodLower, getSysPeriodUpper, getVersionsBetweenSuffix
-
-
-
-
Constructor Detail
-
DbStandardHistorySupport
public DbStandardHistorySupport()
-
-
Method Detail
-
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 interfaceDbHistorySupport
-
getBindCount
public int getBindCount()
Return 1 as the bind count (not 2 for effective start and effective end columns).- Specified by:
getBindCount
in interfaceDbHistorySupport
-
getAsOfPredicate
public String getAsOfPredicate(String tableAlias, String sysPeriod)
Return null - not used for sql2011 based history.- Specified by:
getAsOfPredicate
in interfaceDbHistorySupport
- Parameters:
tableAlias
- The table alias this predicate is added forsysPeriod
- The name of the 'sys_period' column used for effective date time range.- Returns:
- The predicate containing a single ? bind parameter which will be bound to the 'as at' timestamp value
-
-