DbStorage
Class PhysicalID

java.lang.Object
  extended bystorage.UnitAddress
      extended byDbStorage.DbUnitAddress
          extended byDbStorage.PhysicalID
All Implemented Interfaces:
ssdbms.ssd.ID

public class PhysicalID
extends DbUnitAddress
implements ssdbms.ssd.ID

This class represents an identifier for semistructured data, this identifier is actually a DbUnitAddress.


Field Summary
static PhysicalID NULL
          Represents a NULL (invalid) PhsicalID
 
Fields inherited from class DbStorage.DbUnitAddress
SIZE
 
Constructor Summary
PhysicalID()
           
 
Method Summary
 int compareTo(PhysicalID id)
          Compares two physical identifiers in a partial order.
 boolean equals(ssdbms.ssd.ID id)
          Checks if this physical identifier is equals to other one.
 boolean isNID()
          Checks if this identifier is a Not valid Identifier.
 java.lang.String toString()
          Returns the string representation of the ID.
 
Methods inherited from class DbStorage.DbUnitAddress
copyFrom, equals, getContent, getSpaceNumber, getUnitNumber, isNull, set, set, setNull
 
Methods inherited from class storage.UnitAddress
equals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final PhysicalID NULL
Represents a NULL (invalid) PhsicalID

Constructor Detail

PhysicalID

public PhysicalID()
Method Detail

equals

public boolean equals(ssdbms.ssd.ID id)
Checks if this physical identifier is equals to other one.

Specified by:
equals in interface ssdbms.ssd.ID
Parameters:
id - The physical identifier to compare.
Returns:
true if id represents the same identifier that this one, false otherwise.

isNID

public boolean isNID()
Checks if this identifier is a Not valid Identifier.

Specified by:
isNID in interface ssdbms.ssd.ID
Returns:
true If this identifier is invalid, false otherwise.

compareTo

public int compareTo(PhysicalID id)
Compares two physical identifiers in a partial order.

Parameters:
id - The physical identifier to compare.
Returns:
1 if this one if greater, 0 if is equal or 1- if is less.

toString

public java.lang.String toString()
Returns the string representation of the ID.

Specified by:
toString in interface ssdbms.ssd.ID