com.ibm.dse.appl.ej.server
Class EJQueryServerOperation

java.lang.Object
  |
  +--com.ibm.dse.base.DSEOperation
        |
        +--com.ibm.dse.base.DSEServerOperation
              |
              +--com.ibm.dse.appl.ej.server.EJQueryServerOperation

public class EJQueryServerOperation
extends DSEServerOperation

The EJQueryServerOp class is invoked to execute the EJ Query server operation. All its behavior is included in the set of operations steps defined inside the operation definition. See the SGML operations file for the server workstation.

See Also:
Serialized Form

Fields inherited from class com.ibm.dse.base.DSEOperation
aOperationRepliedListener, externalizer
 
Constructor Summary
EJQueryServerOperation()
          This constructor creates a EJQueryServerOperation object
EJQueryServerOperation(java.lang.String anOperationName)
          This constructor creates a EJQueryServerOperation object
EJQueryServerOperation(java.lang.String anOperationName, Context aParentContext)
          This constructor creates a EJQueryServerOperation object
EJQueryServerOperation(java.lang.String anOperationName, java.lang.String aParentContext)
          This constructor creates a EJQueryServerOperation object
 
Method Summary
 void execute()
          Execute the EJ Query Server Operation and and start the query
protected  void query(java.lang.String SQL, Context opContext, HashtableIndexedCollectionFormat queryResultFormat)
          Query the EJ table with a given SQL.
 
Methods inherited from class com.ibm.dse.base.DSEServerOperation
getCSReplyFormat, getCSRequestFormat, getOriginWorkstation, runInSession, setCSReplyFormat, setCSRequestFormat, setOriginWorkstation, updateContext
 
Methods inherited from class com.ibm.dse.base.DSEOperation
addElement, addOperationRepliedListener, chainTo, chainToContextNamed, chainToCurrentContext, close, externalizer, fireHandleOperationRepliedEvent, getApplicationId, getContext, getContextByType, getContextName, getContextNamed, getElementAt, getExternalizer, getFormat, getFormats, getHostReceiveFormat, getHostSendFormat, getInstanceOfOperationStep, getKeyedCollection, getName, getOperationStep, getOperationStepRC, getOperationSteps, getParent, getSelfDefinedOpTagInputStream, getService, getServiceByType, getSessionId, getSgmlSelfDefinedOpFileName, getType, getValueAt, hasServices, initializeFormatFrom, initializeFrom, initializeKeyedCollectionValueFrom, initializeOpStep, initializeOpStepsFrom, isCacheable, isChained, isContext, occurrencesNamed, prune, readExternal, readExternal, readObject, reinitialize, removeAt, removeExternal, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setExternalizer, setHostReceiveFormat, setHostSendFormat, setKeyedCollection, setName, setSessionId, setType, setValueAt, toString, toStrings, toTags, unchain, writeExternal, writeExternal, xValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EJQueryServerOperation

public EJQueryServerOperation()
This constructor creates a EJQueryServerOperation object

EJQueryServerOperation

public EJQueryServerOperation(java.lang.String anOperationName)
                       throws java.io.IOException
This constructor creates a EJQueryServerOperation object
Parameters:
anOperationName - String, an operation name
Throws:
java.io.IOException - throws when problem reading sgml files
See Also:
IOException

EJQueryServerOperation

public EJQueryServerOperation(java.lang.String anOperationName,
                              Context aParentContext)
                       throws java.io.IOException,
                              DSEInvalidRequestException
This constructor creates a EJQueryServerOperation object
Parameters:
anOperationName - String, an operation name
aParentContext - Context, a parent context
Throws:
java.io.IOException - throws when problem reading sgml files
DSEInvalidRequestException - throws when unable to locate related data in sgml files
See Also:
Context, IOException, DSEInvalidRequestException

EJQueryServerOperation

public EJQueryServerOperation(java.lang.String anOperationName,
                              java.lang.String aParentContext)
                       throws java.io.IOException,
                              DSEInvalidRequestException,
                              DSEObjectNotFoundException
This constructor creates a EJQueryServerOperation object
Parameters:
anOperationName - String, an operation name
aParentContext - Context, a parent context name
Throws:
java.io.IOException - throws when problem reading sgml files
DSEInvalidRequestException - throws when unable to locate related data in sgml files
DSEObjectNotFoundException - throws when parent context is not defined
See Also:
IOException, DSEInvalidRequestException, DSEObjectNotFoundException
Method Detail

execute

public void execute()
             throws java.lang.Exception
Execute the EJ Query Server Operation and and start the query
Overrides:
execute in class DSEServerOperation
Throws:
java.lang.Exception - throws when problem occurs in the operation

query

protected void query(java.lang.String SQL,
                     Context opContext,
                     HashtableIndexedCollectionFormat queryResultFormat)
              throws DSEException
Query the EJ table with a given SQL. Query result will be stored in the context
Parameters:
SQL - String, a SQL statement, where clause only
opContext - Context, an operation context
format - HashtableIndexedCollectionFormat, a formater
Throws:
DSEException - throws when problem occured
See Also:
Context