java.lang.Object
io.ebean.config.dbplatform.DbViewHistorySupport
io.ebean.platform.postgres.PostgresHistorySupport
- All Implemented Interfaces:
DbHistorySupport
Postgres support for history features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsOfPredicate(String asOfTableAlias, String asOfSysPeriod) Build and return the 'as of' predicate for a given table alias.intReturn 1 as we are using the postgres range type and hence don't need 2 bind variables.getSysPeriodLower(String tableAlias, String sysPeriod) getSysPeriodUpper(String tableAlias, String sysPeriod) Methods inherited from class io.ebean.config.dbplatform.DbViewHistorySupport
getAsOfViewSuffix, getVersionsBetweenSuffix, isStandardsBased
-
Constructor Details
-
PostgresHistorySupport
public PostgresHistorySupport()
-
-
Method Details
-
getBindCount
public int getBindCount()Return 1 as we are using the postgres range type and hence don't need 2 bind variables.- Specified by:
getBindCountin interfaceDbHistorySupport- Overrides:
getBindCountin classDbViewHistorySupport
-
getAsOfPredicate
Build and return the 'as of' predicate for a given table alias.Each @History entity involved in the query has this predicate added using the related table alias.
- Specified by:
getAsOfPredicatein interfaceDbHistorySupport- Overrides:
getAsOfPredicatein classDbViewHistorySupport
-
getSysPeriodLower
- Specified by:
getSysPeriodLowerin interfaceDbHistorySupport- Overrides:
getSysPeriodLowerin classDbViewHistorySupport
-
getSysPeriodUpper
- Specified by:
getSysPeriodUpperin interfaceDbHistorySupport- Overrides:
getSysPeriodUpperin classDbViewHistorySupport
-