Oracle Repository API and Model Reference Guide


Contents


API Methods


Element Definitions


Index  


oracle.repos.services
Class RID

java.lang.Object
  |
  +--oracle.repos.services.RID

public class RID
extends Object
implements RSIdentifier

This class acts as a wrapper for a Repository instance ID - it contains both the IRID and IVID components of a versioned object instance, expressed as range-safe oracle.repos.services.GID types.

See Also:
oracle.repos.services.GID

Field Summary
(package private)  oracle.repos.services.GID m_gidIRID
           
(package private)  oracle.repos.services.GID m_gidIVID
           

 

Constructor Summary
RID(oracle.repos.services.GID gidIRID, oracle.repos.services.GID gidIVID)
          Creates a RID instance from an IRID/IVID pair
RID(Number nIRID, Number nIVID)
          Utility constructor to create a new RID based on an IRID/IVID pair expressed as Numbers.
RID(String str)
          Utility constructor to create a new RID based on an IRID/IVID pair as a concatentated string (as returned by toString() method)
RID(String strIRID, String strIVID)
          Utility constructor to create a new RID based on an IRID/IVID pair expressed as strings.

 

Method Summary
 boolean equals(Object obj)
          Equality operator for RID values.
 oracle.repos.services.GID getIRID()
          Returns the IRID component of this object version instance ID
 oracle.repos.services.GID getIVID()
          Returns the IVID component of this object version instance ID
 int hashCode()
          Method added at the BM hacker team.
 boolean isNull()
           
 void resetIVID(oracle.repos.services.GID ivid)
           
 String toString()
          Express this RID value as a string.

 

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

 

Field Detail

m_gidIRID

oracle.repos.services.GID m_gidIRID

m_gidIVID

oracle.repos.services.GID m_gidIVID

 

Constructor Detail

RID

public RID(oracle.repos.services.GID gidIRID,
           oracle.repos.services.GID gidIVID)
Creates a RID instance from an IRID/IVID pair
Parameters:
gidIRID - the instance IRID
gidIVID - the instance IVID

RID

public RID(String strIRID,
           String strIVID)
    throws NumberFormatException
Utility constructor to create a new RID based on an IRID/IVID pair expressed as strings.
Parameters:
strIRID - the instance IRID string
strIVID - the instance IVID string
Throws:
NumberFormatException - thrown if either string is not a valid numeric GID representation.

RID

public RID(String str)
    throws NumberFormatException
Utility constructor to create a new RID based on an IRID/IVID pair as a concatentated string (as returned by toString() method)
Parameters:
the - string representation
Throws:
NumberFormatException - thrown if either string element is not a valid numeric GID representation.
java.lang.NoSuchElementException - thrown if the string is not correctly formatted.

RID

public RID(Number nIRID,
           Number nIVID)
Utility constructor to create a new RID based on an IRID/IVID pair expressed as Numbers.
Parameters:
nIRID - the instance IRID Number
nIVID - the instance IVID Number

 

Method Detail

getIRID

public oracle.repos.services.GID getIRID()
Returns the IRID component of this object version instance ID

getIVID

public oracle.repos.services.GID getIVID()
Returns the IVID component of this object version instance ID

toString

public String toString()
Express this RID value as a string. The string value is of the form GID:(IRID):(IVID). Strings of this format may be passed to the appropriate GID constructor.
Overrides:
toString in class Object

resetIVID

public void resetIVID(oracle.repos.services.GID ivid)

equals

public boolean equals(Object obj)
Equality operator for RID values.
Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if the numeric values of the IRID/IVID pair contained by this RID instance match a numeric pair specified by the reference value, otherwise false.

hashCode

public int hashCode()
Method added at the BM hacker team.
Overrides:
hashCode in class Object
Returns:
A valid hashCode baseed on both the IRID and the IVID

isNull

public boolean isNull()