org.openorb.pss.connector.database
Class DatabasePID

java.lang.Object
  extended by org.openorb.pss.connector.database.DatabasePID
All Implemented Interfaces:
PID

public class DatabasePID
extends java.lang.Object
implements PID

This class is a PID implementation for database persistence.

Author:
Jerome Daniel

Constructor Summary
DatabasePID(byte[] catalog, byte[] index)
          Constructor
DatabasePID(byte[] catalog, long index, org.omg.PortableInterceptor.ORBInitInfo info)
          Constructor
DatabasePID(byte[] pid, org.omg.PortableInterceptor.ORBInitInfo info)
          Constructor
DatabasePID(long catalog, long index, org.omg.PortableInterceptor.ORBInitInfo info)
          Constructor
 
Method Summary
 java.lang.String catalog_value_str()
          This operations return the CATALOG PID value as a string.
 byte[] catalog_value()
          This operations return the CATALOG PID value.
 boolean is_same_catalog(byte[] value)
          Return TRUE if the parameter has the same catalog pid value
 boolean is_same_short(byte[] value)
          Return TRUE if the parameter has the same short pid value
 boolean is_same(byte[] value)
          Return TRUE if the parameter has the same pid value
 boolean is_same(PID pid)
          Return TRUE if the parameter has the same pid value
 java.lang.String short_value_str()
          This operation returns the SHORT PID value as a string.
 byte[] short_value()
          This operation returns the SHORT PID value.
 java.lang.String value_str()
          This operation returns the PID value as a string.
 byte[] value()
          This operation returns the PID value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabasePID

public DatabasePID(long catalog,
                   long index,
                   org.omg.PortableInterceptor.ORBInitInfo info)
Constructor


DatabasePID

public DatabasePID(byte[] catalog,
                   long index,
                   org.omg.PortableInterceptor.ORBInitInfo info)
Constructor


DatabasePID

public DatabasePID(byte[] catalog,
                   byte[] index)
Constructor


DatabasePID

public DatabasePID(byte[] pid,
                   org.omg.PortableInterceptor.ORBInitInfo info)
Constructor

Method Detail

value

public byte[] value()
This operation returns the PID value.

Specified by:
value in interface PID

short_value

public byte[] short_value()
This operation returns the SHORT PID value.

Specified by:
short_value in interface PID

catalog_value

public byte[] catalog_value()
This operations return the CATALOG PID value.

Specified by:
catalog_value in interface PID

is_same

public boolean is_same(byte[] value)
Return TRUE if the parameter has the same pid value

Specified by:
is_same in interface PID

is_same_short

public boolean is_same_short(byte[] value)
Return TRUE if the parameter has the same short pid value

Specified by:
is_same_short in interface PID

is_same_catalog

public boolean is_same_catalog(byte[] value)
Return TRUE if the parameter has the same catalog pid value

Specified by:
is_same_catalog in interface PID

value_str

public java.lang.String value_str()
This operation returns the PID value as a string.

Specified by:
value_str in interface PID

short_value_str

public java.lang.String short_value_str()
This operation returns the SHORT PID value as a string.

Specified by:
short_value_str in interface PID

catalog_value_str

public java.lang.String catalog_value_str()
This operations return the CATALOG PID value as a string.

Specified by:
catalog_value_str in interface PID

is_same

public boolean is_same(PID pid)
Return TRUE if the parameter has the same pid value

Specified by:
is_same in interface PID