org.jboss.ejb.txtimer
Class TimerHandleImpl

java.lang.Object
  extended byorg.jboss.ejb.txtimer.TimerHandleImpl
All Implemented Interfaces:
java.io.Serializable, TimerHandle (src)

public class TimerHandleImpl
extends java.lang.Object
implements TimerHandle (src)

An implementation of the TimerHandle

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

Field Summary
static java.lang.String DATE_PATTERN
          The date pattern used by this handle
 
Method Summary
 boolean equals(java.lang.Object obj)
          Return true if objectId, createDate, periode are equal
 java.util.Date getFirstTime()
           
 java.io.Serializable getInfo()
           
 long getPeriode()
           
 TimedObjectId (src) getTimedObjectId()
           
 Timer (src) getTimer()
          Obtain a reference to the txtimer represented by this handle.
 java.lang.String getTimerId()
           
 int hashCode()
          Hash code based on objectId, createDate, periode
static TimerHandleImpl (src) parse(java.lang.String externalForm)
          Parse the handle from external form.
 java.lang.String toExternalForm()
          Returns the external representation of the handle.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DATE_PATTERN

public static final java.lang.String DATE_PATTERN
The date pattern used by this handle

See Also:
Constant Field Values (src)
Method Detail

parse

public static TimerHandleImpl (src)  parse(java.lang.String externalForm)
Parse the handle from external form. "[toid=timedObjectId,first=firstTime,periode=periode]"


toExternalForm

public java.lang.String toExternalForm()
Returns the external representation of the handle. "[toid=timedObjectId,first=firstTime,periode=periode]"


getTimerId

public java.lang.String getTimerId()

getTimedObjectId

public TimedObjectId (src)  getTimedObjectId()

getFirstTime

public java.util.Date getFirstTime()

getPeriode

public long getPeriode()

getInfo

public java.io.Serializable getInfo()

getTimer

public Timer (src)  getTimer()
               throws java.lang.IllegalStateException,
                      NoSuchObjectLocalException (src) ,
                      EJBException (src) 
Obtain a reference to the txtimer represented by this handle.

Specified by:
getTimer in interface TimerHandle (src)
Returns:
Timer which this handle represents
Throws:
java.lang.IllegalStateException - If this method is invoked while the instance is in a state that does not allow access to this method.
NoSuchObjectLocalException (src) - If invoked on a txtimer that has expired or has been cancelled.
EJBException (src) - If this method could not complete due to a system-level failure.

equals

public boolean equals(java.lang.Object obj)
Return true if objectId, createDate, periode are equal


hashCode

public int hashCode()
Hash code based on objectId, createDate, periode


toString

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