Oracle Containers for J2EE Job Scheduler Java API Reference
10g Release 3 (10.1.3)

B16026-01

oracle.ias.scheduler
Class Trigger

java.lang.Object
  extended byoracle.ias.scheduler.Trigger
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class Trigger
extends java.lang.Object
implements java.io.Externalizable

This class is used to specify the conditions by which the associated job is executed. A condition is expressed as a logical combination of operands where the operands are comprised of one or more notification names.

See Also:
Serialized Form

Field Summary
protected  java.lang.String m_condition
           
 
Constructor Summary
Trigger()
          Constructs an empty trigger.
Trigger(java.lang.String condition)
          Constructs a trigger with the condition expression specified.
 
Method Summary
 boolean equals(java.lang.Object v)
          Indicates whether some object is "equal to" this one.
 java.lang.String getCondition()
          Gets the condition expression for this trigger.
static int getVersion()
          Internal use only.
 int hashCode()
          Returns a hash code value for the schedule.
 void readExternal(java.io.ObjectInput in)
          Restores the contents of this object from the stream specified.
 void setCondition(java.lang.String condition)
          Sets the condition expression for this trigger.
 java.lang.String toString()
          Gets the string representation of this trigger.
 void writeExternal(java.io.ObjectOutput out)
          Saves the contents of this object to the stream specified.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_condition

protected java.lang.String m_condition
Constructor Detail

Trigger

public Trigger()
Constructs an empty trigger. For internal use only.


Trigger

public Trigger(java.lang.String condition)
        throws InvalidArgumentException
Constructs a trigger with the condition expression specified. The expression may be composed of a combination of one or more logical operators and notification names.

Throws:
InvalidArgumentException - if the expression specified is invalid.
See Also:
Notification
Method Detail

setCondition

public void setCondition(java.lang.String condition)
                  throws InvalidArgumentException
Sets the condition expression for this trigger. The expression may be composed of a combination of one or more logical operators and notification names.

Parameters:
condition - the condition expression for the trigger.
Throws:
InvalidArgumentException - if the expression specified is invalid.
See Also:
Notification

getCondition

public java.lang.String getCondition()
Gets the condition expression for this trigger.

Returns:
condition expression for this trigger.

toString

public java.lang.String toString()
Gets the string representation of this trigger.

Returns:
string representation of trigger

hashCode

public int hashCode()
Returns a hash code value for the schedule.


equals

public boolean equals(java.lang.Object v)
Indicates whether some object is "equal to" this one.


writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Saves the contents of this object to the stream specified.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Restores the contents of this object from the stream specified.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getVersion

public static int getVersion()
Internal use only.


Oracle Containers for J2EE Job Scheduler Java API Reference
10g Release 3 (10.1.3)

B16026-01

Copyright © 2006, Oracle. All rights reserved.