org.jboss.ejb.txtimer
Class TimedObjectId

java.lang.Object
  extended byorg.jboss.ejb.txtimer.TimedObjectId
All Implemented Interfaces:
java.io.Serializable

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

The combined TimedObjectId consists of a String that identifies the "class" of the TimedObject and optionally an instance primary key object.

When the TimedObject is an EJB deployed on JBoss, the containerId is the JMX name of the component, and the instancePk is the entity's primary key. If the component is not an entity, the instancePk should be null.

Since:
09-Apr-2004
See Also:
Serialized Form

Constructor Summary
TimedObjectId(ObjectName (src)  timedObjectId)
          Construct a TimedObjectId
TimedObjectId(ObjectName (src)  containerId, java.lang.Object instancePk)
          Construct a combined TimedObjectId
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 ObjectName (src) getContainerId()
           
 java.lang.Object getInstancePk()
           
 int hashCode()
           
static TimedObjectId (src) parse(java.lang.String externalForm)
          Parse the timed object id from external form.
 java.lang.String toExternalForm()
          Returns the external representation of the TimedObjectId.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimedObjectId

public TimedObjectId(ObjectName (src)  containerId,
                     java.lang.Object instancePk)
Construct a combined TimedObjectId

Parameters:
containerId - The TimedObject identifier
instancePk - The TimedObject instance identifier, can be null

TimedObjectId

public TimedObjectId(ObjectName (src)  timedObjectId)
Construct a TimedObjectId

Parameters:
timedObjectId - The TimedObject identifier
Method Detail

getContainerId

public ObjectName (src)  getContainerId()

getInstancePk

public java.lang.Object getInstancePk()

parse

public static TimedObjectId (src)  parse(java.lang.String externalForm)
Parse the timed object id from external form. "[id=contatinerId,pk=instancePk]"


toExternalForm

public java.lang.String toExternalForm()
Returns the external representation of the TimedObjectId. "[id=contatinerId,pk=instancePk]"


hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()