| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
  |
  +--com.ibm.cics.server.API
        |
        +--com.ibm.cics.server.Task
This class provides a set of methods and variables that correspond to a CICS task.
| Field Summary | |
|  java.io.PrintWriter | err | 
| static byte | FCI_START_NO_DATA | 
| static byte | FCI_START_WITH_DATA | 
| static byte | FCI_TASK_WITH_FACILITY | 
| static byte | FCI_TRIGGERED_NO_FACILITY | 
|  java.io.PrintWriter | out | 
| Method Summary | |
|  void | abend(java.lang.String abcode)Request a normal ABEND of the task. | 
|  void | commit()This method commits the currently active Unit Of Work. | 
|  void | disableTaskTrace()Not Implemented. | 
|  void | enableTaskTrace()Not Implemented. | 
|  void | forceAbend(java.lang.String abcode)Not Implemented. | 
|  byte | getFCI()Return the FCI for the task. | 
|  java.lang.Object | getPrincipalFacility()Return the principal facility for the task. | 
|  java.lang.String | getQNAME()Return the QNAME for the task. | 
|  java.lang.String | getSTARTCODE()Return the STARTCODE for the task. | 
| static Task | getTask()Return the task object representing the task as part of which the current thread is executing. | 
|  int | getTaskNumber()Return the task number. | 
|  java.lang.String | getTransactionName()Return the transaction name. | 
|  void | getTWA(TWAHolder holder)Obtain a copy of the Task Work Area (TWA). | 
|  java.lang.String | getUSERID()Return the USERID that is signed on to the task's principal facility. | 
|  void | retrieve(java.util.BitSet whatToRetrieve,
         RetrievedDataHolder holder)Retrieve any data specified when this task was started. | 
|  void | rollback()This method rolls back the currently active Unit Of Work. | 
|  void | setTWA(byte[] data)Update the contents of the TWA from an array of bytes. | 
| Methods inherited from class java.lang.Object | 
| equals, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
| Field Detail | 
public java.io.PrintWriter out
public java.io.PrintWriter err
public static final byte FCI_START_NO_DATA
public static final byte FCI_START_WITH_DATA
public static final byte FCI_TASK_WITH_FACILITY
public static final byte FCI_TRIGGERED_NO_FACILITY
| Method Detail | 
public void abend(java.lang.String abcode)
abcode - The ABEND code.
public void commit()
            throws InvalidRequestException,
                   RolledBackException
public void disableTaskTrace()
public void enableTaskTrace()
public void forceAbend(java.lang.String abcode)
abcode - The ABEND code.public byte getFCI()
public java.lang.Object getPrincipalFacility()
public java.lang.String getQNAME()
public java.lang.String getSTARTCODE()
public static Task getTask()
public int getTaskNumber()
public java.lang.String getTransactionName()
public void getTWA(TWAHolder holder)
holder - A holder for the TWA. If there is no TWA, a byte array of
 length 0 is placed in the holder.
public void setTWA(byte[] data)
            throws InvalidRequestException
data - the new data to be copied into the TWA.
public java.lang.String getUSERID()
                           throws InvalidRequestException
public void retrieve(java.util.BitSet whatToRetrieve,
                     RetrievedDataHolder holder)
              throws EndOfDataException,
                     InvalidRequestException,
                     InvalidRetrieveOptionException,
                     IOErrorException,
                     LengthErrorException,
                     RecordNotFoundException
whatToRetrieve - the RetrieveBits
 interface provides a set of constants that should be used to
 construct this java.util.BitSet.holder - for the RetrievedData.
public void rollback()
              throws InvalidRequestException
| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||