IBM WebSphere Application ServerTM
Release 7

com.ibm.task.api
Class QueryHelper

java.lang.Object
  extended by com.ibm.task.api.QueryHelper

public class QueryHelper
extends java.lang.Object

Helper class to support native SQL requests against the ProcessChoreographer database. This class provides methods that help to build native SQL select statements and to understand the results of the query.

Since:
6.1.2

Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
static OID toOID(byte[] id)
          Creates an OID object from its byte array representation.
static OID toOID(java.lang.String id)
          Creates an OID object from its string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Method Detail

toOID

public static final OID toOID(java.lang.String id)
                       throws IdWrongFormatException
Creates an OID object from its string representation.

Parameters:
id - The string representation of an object ID.
Returns:
An OID object such as a PIID, AIID, or TKIID.
Throws:
IdWrongFormatException - Thrown when the passed byte array is null or not a valid string representation of an object ID.

toOID

public static final OID toOID(byte[] id)
                       throws IdWrongFormatException
Creates an OID object from its byte array representation. To create a byte array out of an OID, use the OID.toByteArray method.

Parameters:
id - The byte array representation of an object ID.
Returns:
An OID object such as a PIID, AIID, or TKIID.
Throws:
IdWrongFormatException - Thrown when the passed byte array is null or not a valid byte array representation of an object ID.

IBM WebSphere Application ServerTM
Release 7