Skip Headers
Oracle TopLink Developer's Guide
10g Release 3 (10.1.3)
B13593-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Historical Client Sessions

By default, a session represents a view of the most current version of objects, and when you execute a query in that session, it returns the most current version of selected objects.

If your data source maintains past versions of objects, you can configure TopLink to access this historical data so that you can express read queries conditional on how your objects are changing over time. You can also so the following:

In addition, you can express query selection criteria as either of the following:

For more information, see the following:

Historical Client Session Limitations

The HistoryPolicy provides a very flexible means of accommodating a wide variety of historical schemas. However, be aware of the following restrictions:

  • You cannot use the HistoryPolicy, if your design combines both current and historical data in a single schema.

  • You cannot use historical sessions, nor historical queries, with EJB entity beans.

  • TopLink assumes that the current version of an object corresponds to the row in the historical table whose row end field is NULL.

  • You cannot directly map the start and end fields of a history table because they do not exist in the regular schema.

  • You cannot query on ranges of historical objects, only as of a specific point in time.