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, isStandardsBased
public PostgresHistorySupport()
public int getBindCount()
getBindCount
in interface DbHistorySupport
getBindCount
in class DbViewHistorySupport
public 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 DbHistorySupport
getAsOfPredicate
in class DbViewHistorySupport
asOfTableAlias
- 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)
DbViewHistorySupport
getSysPeriodLower
in interface DbHistorySupport
getSysPeriodLower
in class DbViewHistorySupport
tableAlias
- the table aliassysPeriod
- the name of the sys_period columnpublic String getSysPeriodUpper(String tableAlias, String sysPeriod)
DbViewHistorySupport
getSysPeriodUpper
in interface DbHistorySupport
getSysPeriodUpper
in class DbViewHistorySupport
tableAlias
- the table aliassysPeriod
- the name of the sys_period columnCopyright © 2019. All rights reserved.