|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.toplink.history.AsOfClause
public class AsOfClause
Purpose:Wraps an immutable value for a past time. A session, query, or expression can be as of a past time.
For Oracle 9R2 Flasback corresponds to the sub clause which appears between
the table and alias name in the FROM clause:
SELECT ... FROM EMPLOYEE AS OF TIMESTAMP (value) t0, ...
For generic historical schema support, a special criteria can be added to
the where clause for each table in a select:
((t0.ROW_START <= value) AND ((t0.END IS NULL) OR (t1.END > value)))
Responsibilities:
Expression.asOf(AsOfClause),
oracle.toplink.queryframework.ObjectLevelReadQuery#asOf(AsOfClause),
oracle.toplink.sessions.Session#acquireSessionAsOf(AsOfClause),
HistoryPolicy,
Serialized Form| Field Summary | |
|---|---|
static AsOfClause |
NO_CLAUSE
|
| Constructor Summary | |
|---|---|
AsOfClause(java.util.Calendar calendar)
|
|
AsOfClause(java.util.Date date)
|
|
AsOfClause(Expression expression)
|
|
AsOfClause(long time)
|
|
AsOfClause(java.lang.Long time)
|
|
AsOfClause(java.sql.Timestamp timestamp)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getValue()
The past time represented by the receiver. |
boolean |
isAsOfSCNClause()
Indicates that value is a system change number or an expression
evaluating to one. |
boolean |
isUniversal()
Answers if this is a UniversalAsOfClause, one to be applied to the entire selection criteria. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AsOfClause NO_CLAUSE
| Constructor Detail |
|---|
public AsOfClause(java.util.Date date)
public AsOfClause(java.sql.Timestamp timestamp)
public AsOfClause(java.util.Calendar calendar)
public AsOfClause(long time)
public AsOfClause(java.lang.Long time)
public AsOfClause(Expression expression)
| Method Detail |
|---|
public java.lang.Object getValue()
public boolean isAsOfSCNClause()
value is a system change number or an expression
evaluating to one.
In Oracle the value will have to be printed using the syntax AS OF SCN(value)
instead of AS OF TIMESTAMP(value).
AsOfSCNClausepublic boolean isUniversal()
Used when a query is made as of a past time.
public java.lang.String toString()
toString in class java.lang.Object
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||