Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.history
Class AsOfSCNClause

java.lang.Object
  extended by org.eclipse.persistence.history.AsOfClause
      extended by org.eclipse.persistence.history.AsOfSCNClause

All Implemented Interfaces:
java.io.Serializable

public class AsOfSCNClause
extends AsOfClause

Purpose:Wraps an immutable value for a past time, represented as a database system change number.

This should be specified with an Oracle platform supporting flashback, and the value will be written to the SQL FROM clause:

SELECT ... FROM EMPLOYEE AS OF SCN (value) t0, ...

Since:
OracleAS TopLink 10g (10.0.3)
Author:
Stephen McRitchie
See Also:
AsOfClause, OraclePlatform.getSystemChangeNumberQuery(), Serialized Form

Field Summary

 

Fields inherited from class org.eclipse.persistence.history.AsOfClause
NO_CLAUSE

 

Constructor Summary
AsOfSCNClause(Expression expression)
           
AsOfSCNClause(long systemChangeNumber)
           
AsOfSCNClause(java.lang.Long systemChangeNumber)
           
AsOfSCNClause(java.lang.Number systemChangeNumber)
           

 

Method Summary
 boolean isAsOfSCNClause()
          PUBLIC:
 void printSQL(org.eclipse.persistence.internal.expressions.ExpressionSQLPrinter printer)
          INTERNAL: Prints the as of clause for an expression inside of the FROM clause.

 

Methods inherited from class org.eclipse.persistence.history.AsOfClause
equals, getValue, isUniversal, toString

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

AsOfSCNClause

public AsOfSCNClause(java.lang.Number systemChangeNumber)

AsOfSCNClause

public AsOfSCNClause(java.lang.Long systemChangeNumber)

AsOfSCNClause

public AsOfSCNClause(long systemChangeNumber)

AsOfSCNClause

public AsOfSCNClause(Expression expression)

Method Detail

printSQL

public void printSQL(org.eclipse.persistence.internal.expressions.ExpressionSQLPrinter printer)
INTERNAL: Prints the as of clause for an expression inside of the FROM clause.
Overrides:
printSQL in class AsOfClause

isAsOfSCNClause

public boolean isAsOfSCNClause()
PUBLIC:
Overrides:
isAsOfSCNClause in class AsOfClause
See Also:
AsOfSCNClause

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.