public class PostgresHistorySupport extends DbViewHistorySupport
| Constructor and Description |
|---|
PostgresHistorySupport() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsOfPredicate(String asOfTableAlias,
String asOfSysPeriod)
Build and return the 'as of' predicate for a given table alias.
|
int |
getBindCount()
Return 1 as we are using the postgres range type and hence don't need 2 bind variables.
|
String |
getSysPeriodLower(String tableAlias,
String sysPeriod)
Return the lower bound column prepended with the table alias.
|
String |
getSysPeriodUpper(String tableAlias,
String sysPeriod)
Return the upper bound column prepended with the table alias.
|
getAsOfViewSuffix, getVersionsBetweenSuffix, isStandardsBasedpublic PostgresHistorySupport()
public int getBindCount()
getBindCount in interface DbHistorySupportgetBindCount in class DbViewHistorySupportpublic String getAsOfPredicate(String asOfTableAlias, String asOfSysPeriod)
Each @History entity involved in the query has this predicate added using the related table alias.
getAsOfPredicate in interface DbHistorySupportgetAsOfPredicate in class DbViewHistorySupportasOfTableAlias - The table alias this predicate is added forasOfSysPeriod - The name of the 'sys_period' column used for effective date time range.public String getSysPeriodLower(String tableAlias, String sysPeriod)
DbViewHistorySupportgetSysPeriodLower in interface DbHistorySupportgetSysPeriodLower in class DbViewHistorySupporttableAlias - the table aliassysPeriod - the name of the sys_period columnpublic String getSysPeriodUpper(String tableAlias, String sysPeriod)
DbViewHistorySupportgetSysPeriodUpper in interface DbHistorySupportgetSysPeriodUpper in class DbViewHistorySupporttableAlias - the table aliassysPeriod - the name of the sys_period columnCopyright © 2019. All rights reserved.