public class DLIInteractionSpec
extends com.ibm.ims.db.cci.InteractionSpecImpl
DLInteractionSpec is used by an Interaction
to execute the specified function on an IMS database.| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE |
static String |
DELETE |
static String |
RETRIEVE |
static String |
UPDATE |
| Constructor and Description |
|---|
DLIInteractionSpec()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFetchSize()
Retrieves the number of result set rows that is the default
fetch size for
DLIResultSet objects generated from this interaction. |
String |
getFunctionName()
Retrieves the function to be performed in this interaction by name.
|
int |
getFunctionType()
Retrieves the function to be performed in this interaction by type.
|
String |
getPCBName()
Returns the PCB name the interaction will use when executed.
|
String |
getSSAList()
Returns the segment search argument list the interaction will use when executed.
|
void |
setFetchSize(int rows)
Gives the DLI driver a hint as to the number of rows that should
be fetched from the database when more rows are needed.
|
void |
setFunctionName(String functionName)
Sets the function to be performed in this interaction by function name.
|
void |
setPCBName(String pcbName)
Sets the name of the PCB the interaction will use when executed.
|
void |
setSSAList(String ssaList)
Sets the segment search argument list to be used with the DL/I query when the interaction is executed.
|
getExecutionTimeout, getFetchDirection, getInteractionVerb, getMaxFieldSize, getResultSetConcurrency, getResultSetType, setExecutionTimeout, setFetchDirection, setInteractionVerb, setMaxFieldSize, setResultSetConcurrency, setResultSetTypepublic static final String CREATE
public static final String RETRIEVE
public static final String UPDATE
public static final String DELETE
public void setSSAList(String ssaList)
The following code example shows how to set the SSA qualification statement string to return the last patient admitted to all wards with more than five doctors and less than three nurses in hospital "ALEXANDRIA". The command *L means "last occurance".
String query = "Hospital(HospName=ALEXANDRIA) Ward(Doccount>5 | Nurcount<3) Patient *L"; iSpec.setSSAList(query);
ssaList - a String set with the SSA qualification statementpublic void setPCBName(String pcbName)
pcbName - the PCB namepublic String getSSAList()
String format.public String getPCBName()
public String getFunctionName()
String valuepublic void setFunctionName(String functionName) throws javax.resource.ResourceException
functionName - Valid values are "CREATE", "RETREIVE", "UPDATE", or "DELETE".javax.resource.ResourceExceptionpublic int getFunctionType()
int constant value for the function (FUNC_CREATE,
FUNC_RETRIEVE, FUNC_UPDATE, or FUNC_DELETE)public void setFetchSize(int rows)
setFetchSize in class com.ibm.ims.db.cci.InteractionSpecImplrows - the number of rows to fetchpublic int getFetchSize()
DLIResultSet objects generated from this interaction.getFetchSize in class com.ibm.ims.db.cci.InteractionSpecImpl(c) Copyright IBM Corporation 2008, 2017.