Class Hierarchy        Index

Interface COM.cloudscape.types.DatabaseInstant

public interface DatabaseInstant
extends Serializable
Copyright © 1997-1999, Cloudscape, Inc. All rights reserved.

This interface is used in the column SYS.SYSSYNCINSTANTS.INSTANT.

A DatabaseInstant is a quantity which the database associates with events to collate them.

Assume a database associates a DatabaseInstant to an event E1. We call this I(E1). Also assume the same Database associates a DatabaseInstant to a second event E2. We call this I(E2). By definition

  1. If I(E1) < I(E2) event E1 occurred before event E2
  2. If I(E2) = I(E2) event E1 is the same event as E2
  3. If I(E1) > I(E2) event E1 occurred after event E2

It is not meaningful to compare a DatabaseInstant from one database with a DatabaseInstant from another. The result of such a comparison is undefined. Because a database may construct, store and compare huge numbers of DatabaseInstants, this interface does not require an implementation to notice when a caller compares a DatabaseInstants from different databases.

Any implementation of this interface must implement value equality, thus implementing equals() and hashCode() methods.


Variable Index

 o CLASS_NAME

Method Index

 o lessThan(DatabaseInstant)
Return true if this DatabaseInstant is before another DatabaseInstant from the same database.

Variables

 o CLASS_NAME
 public static final String CLASS_NAME

Methods

 o lessThan
 public abstract boolean lessThan(DatabaseInstant other)
Return true if this DatabaseInstant is before another DatabaseInstant from the same database.

Parameters:
other - a DatabaseInstant from the same database as this.
Returns:
the comparison result. If 'other' is from another database the result is undefined.

  Class Hierarchy        Index