java.lang.Object
io.ebean.config.dbplatform.DbStandardHistorySupport
- All Implemented Interfaces:
DbHistorySupport
SQL2011 based history support using 'as of timestamp' type clause appended as part of the the from or join clause.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAsOfPredicate
(String tableAlias, String sysPeriod) Return null - not used for sql2011 based history.int
Return 1 as the bind count (not 2 for effective start and effective end columns).boolean
Return true if the implementation is SQL2011 standards based.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.ebean.config.dbplatform.DbHistorySupport
getAsOfViewSuffix, getSysPeriodLower, getSysPeriodUpper, getVersionsBetweenSuffix
-
Constructor Details
-
DbStandardHistorySupport
public DbStandardHistorySupport()
-
-
Method Details
-
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
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
-