org.eclipse.persistence.history

Class AsOfClause

    • Field Detail

      • NO_CLAUSE

        public static final AsOfClause NO_CLAUSE
    • Constructor Detail

      • AsOfClause

        public AsOfClause(Date date)
      • AsOfClause

        public AsOfClause(Timestamp timestamp)
      • AsOfClause

        public AsOfClause(Calendar calendar)
      • AsOfClause

        public AsOfClause(long time)
      • AsOfClause

        public AsOfClause(Long time)
      • AsOfClause

        public AsOfClause(Expression expression)
    • Method Detail

      • equals

        public boolean equals(Object object)
        INTERNAL: Return if the as of is equal to the other. Equality of asOf clauses is complex (with subclasses), so only use identity.
        Overrides:
        equals in class Object
      • 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.
      • getValue

        public Object getValue()
        PUBLIC: The past time represented by the receiver. Either a timestamp, a system change number, or an Expression.
      • isAsOfSCNClause

        public boolean isAsOfSCNClause()
        PUBLIC: Indicates that 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).

        See Also:
        AsOfSCNClause
      • isUniversal

        public boolean isUniversal()
        PUBLIC: Answers if this is a UniversalAsOfClause, one to be applied to the entire selection criteria.

        Used when a query is made as of a past time.

EclipseLink 2.3.2, "build v20111125-r10461" API Reference