org.isam.exehda.services.ox
Class OXHandle

java.lang.Object
  |
  +--org.isam.exehda.services.ox.OXHandle
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HomeOXHandle, InvalidOXHandle, MasterOXHandle, ProxyOXHandle

public class OXHandle
extends java.lang.Object
implements java.io.Serializable

Author:
frainer
See Also:
Serialized Form

Field Summary
(package private)  java.util.Hashtable attributes
           
(package private)  java.lang.String code
           
(package private)  ObjectId oid
           
(package private)  HostId owner
           
 
Constructor Summary
OXHandle(ObjectId oid)
          Creates a new instance of OXHandle
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attr)
          Retrieves the value of the given attribute
 ObjectId getId()
          Returns the id of the OX which is handled by this OXHandle
 HostId getOwner()
          Recuperates and returns the host in which the OXHandle currently resides.
 java.lang.String getOwnershipCode()
          Retrieves de ownership code
 void setAttribute(java.lang.String attr, java.lang.Object val)
          Sets the value of the given attribute
 void setOwner(HostId owner)
          Sets the value of host that currently "owns" the OX to be called only by the OXManager
 void setOwnershipCode(java.lang.String code)
          Sets the value of the ownership code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oid

ObjectId oid

attributes

java.util.Hashtable attributes

code

java.lang.String code

owner

HostId owner
Constructor Detail

OXHandle

public OXHandle(ObjectId oid)
Creates a new instance of OXHandle

Method Detail

getId

public ObjectId getId()
Returns the id of the OX which is handled by this OXHandle

Returns:
the id of the ox

getAttribute

public java.lang.Object getAttribute(java.lang.String attr)
Retrieves the value of the given attribute

Parameters:
attr - a String indicating the attribute
Returns:
the value of the given attribute

setAttribute

public void setAttribute(java.lang.String attr,
                         java.lang.Object val)
Sets the value of the given attribute

Parameters:
attr - the attribute to be modified
val - the new value for the attribute
Returns:
void

setOwnershipCode

public void setOwnershipCode(java.lang.String code)
Sets the value of the ownership code

Parameters:
code - the new value for the ownership code
Returns:
void

getOwnershipCode

public java.lang.String getOwnershipCode()
Retrieves de ownership code

Returns:
a String representing the ownership code

getOwner

public HostId getOwner()
Recuperates and returns the host in which the OXHandle currently resides.

Returns:
a HostId

setOwner

public void setOwner(HostId owner)
Sets the value of host that currently "owns" the OX to be called only by the OXManager

Parameters:
owner - a HostId for the new owner value
Returns:
void