public interface HostSession
Modifier and Type | Field and Description |
---|---|
static int |
ANY_COLUMN
Specifies any column for those methods that allow it as a column value.
|
static int |
ANY_ROW
Specifies any row for those methods that allow it as a row value.
|
static int |
CURRENT_COLUMN
Specifies the current column for those methods that allow it as a column
value.
|
static int |
CURRENT_ROW
Specifies the current row for those methods that allow it as a row
value.
|
static int |
DESIGN_TOOL_AND_SERVER
context parameter for the defaultValue(java.lang.String, java.lang.String, int) method which
specifies a value to be used only when using both the Design Tool and Server. |
static int |
DESIGN_TOOL_ONLY
context parameter for the defaultValue(java.lang.String, java.lang.String, int) method which
specifies a value to be used only when using the Design Tool. |
static int |
DONT_WAIT_FOR_ECHO
echoType which means not to wait for the data
written to the terminal to be echoed. |
static int |
LINEAR_REGION
regionType parameter for the waitForUpdate(int, int, int, int, int, boolean, int) method which
specifies a linear region. |
static int |
RECTANGULAR_REGION
regionType parameter for the waitForUpdate(int, int, int, int, int, boolean, int) method which
specifies a rectangular region. |
static int |
SCROLL_END
movement parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's End operation. |
static int |
SCROLL_HOME
movement parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Home operation. |
static int |
SCROLL_LINE_DOWN
movement parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Line Down operation. |
static int |
SCROLL_LINE_UP
movement parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Line Up operation. |
static int |
SCROLL_PAGE_DOWN
movement parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Page Up operation. |
static int |
SCROLL_PAGE_UP
movement parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Page Down operation. |
static int |
SYNC_TO_HOST
index parameter for the setCurrentRecordIndex(int)
method which specifies to set the current index to the current host
record. |
static int |
WAIT_FOR_CURSOR_AUTOTAB
echoType which means to wait until the cursor
reaches the next tabstop. |
static int |
WAIT_FOR_CURSOR_MOVE
echoType which means to wait after writing only
until the cursor moves. |
static int |
WAIT_FOR_ECHO_BEHIND_CURSOR
echoType which means to wait until the data
written appears behind the cursor. |
static int |
WAIT_FOR_ECHO_SAME_NUMBER
echoType which means to wait for the same number of
characters which were written are echoed. |
static int |
WAIT_FOR_ECHO_TAB_OR_BEHIND_CURSOR
echoType which means to wait for the same data to
be echoed or for the cursor to appear at the next tabstop. |
Modifier and Type | Method and Description |
---|---|
void |
checkOperationConditions()
Verifies that operation conditions, as defined in the model, are
satisfied.
|
void |
defaultValue(java.lang.String attribute,
java.lang.String value,
int context)
Transmits a value to an attribute when unmodified.
|
void |
executeCommandList(CommandList list)
Executes the specified command list.
|
void |
executeOperation(java.lang.String operation)
Performs an operation on the current entity.
|
ProcedureRecordSet |
executeSQLStatement(java.lang.String sqlStatement)
Executes an SQL statement on a table defined in the model.
|
ProcedureRecordSet |
executeTableProcedure(java.lang.String tableName,
java.lang.String procedureName,
java.util.Map dataInputValues,
java.util.Map filterValues,
boolean filterIsCaseSensitive,
java.util.List outputColumnNames,
int maxRows)
Performs a procedure on a table defined in the model.
|
ModelRecordSet |
fetchRecords(int maxRows,
java.util.List fields,
java.lang.String filterExpression)
Fetches up to the maximum number of rows specified from the current
recordset starting with the next record.
|
java.lang.String |
getAttribute(java.lang.String attribute)
Reads the specified attribute on the current entity and returns
the value.
|
java.lang.String |
getAttributeAtCursor()
Gets the name of the attribute at the current cursor position.
|
AttributeMetaData |
getAttributeMetaData(java.lang.String entity,
java.lang.String attribute)
Gets the metadata for the specified attribute.
|
TerminalRegion |
getAttributeRegion(java.lang.String attribute)
Gets the location and contents of the specified attribute.
|
java.util.Map |
getAttributeRegions(java.util.List attributes)
Gets the location and contents of the specified attributes.
|
java.util.Map |
getAttributes()
Reads all the attributes on the current entity and returns their
values.
|
java.util.Map |
getAttributes(java.util.List attributes)
Reads the specified attributes on the current entity and returns
their values.
|
ColumnMetaData |
getColumnMetaData(java.lang.String table,
java.lang.String column)
Gets the metadata for the specified column in a table.
|
java.lang.String |
getCurrentEntity()
Gets the current entity (screen) of the legacy application.
|
ModelRecord |
getCurrentRecord()
Fetches the current record in the current recordset.
|
int |
getCurrentRecordIndex()
Gets the index of the current record in the current recordset.
|
java.lang.String |
getCurrentRecordSet()
Gets the name of the current recordset.
|
CursorPosition |
getCursorPosition()
Gets the current position of the cursor on the terminal screen.
|
java.util.List |
getEntityAttributes(java.lang.String entity)
Gets the names of all attributes on the specified entity.
|
java.lang.String |
getEntityDescription(java.lang.String entity)
Gets the description for an entity.
|
java.util.List |
getEntityOperations(java.lang.String entity)
Gets the names of all operations on the specified entity.
|
java.util.List |
getEntityRecordSets(java.lang.String entity)
Gets the names of all recordsets on the specified entity.
|
FieldMetaData |
getFieldMetaData(java.lang.String entity,
java.lang.String recordset,
java.lang.String field)
Gets the metadata for the specified recordset field.
|
TerminalRegion |
getFieldRegion(java.lang.String field)
Gets the location and contents of the specified field in the current
record of the current recordset.
|
java.util.Map |
getFieldRegions(java.util.List fields)
Gets the location and contents of the specified fields in the current
record of the current recordset.
|
java.lang.String |
getHomeEntity()
Gets the name of the home entity for the model.
|
LinearTerminalRegion |
getLinearTerminalRegion(int offset,
int length)
Gets the contents of a linear region of the terminal screen.
|
java.util.List |
getModelEntities()
Gets the names of all entities in the model.
|
java.lang.String |
getModelVariable(java.lang.String variable)
Gets the value of a model variable.
|
java.util.List |
getModelVariableNames()
Gets the names of all variables in the model.
|
java.util.Map |
getModelVariables()
Gets the values of all model variables.
|
OperationMetaData |
getOperationMetaData(java.lang.String entity,
java.lang.String operation)
Gets the metadata for the specified operation.
|
TerminalRegion |
getPatternRegion(java.lang.String pattern)
Gets the location and contents of the specified pattern.
|
java.util.Map |
getPatternRegions(java.util.List patterns)
Gets the location and contents of the specified patterns.
|
ProcedureMetaData |
getProcedureMetaData(java.lang.String table,
java.lang.String procedure)
Gets the metadata for the specified procedure in a table.
|
TerminalRegion |
getRecordRegion(java.lang.String recordset)
Gets the location and contents of the current record in the
specified recordset.
|
RecordSetMetaData |
getRecordSetMetaData(java.lang.String entity,
java.lang.String recordset)
Gets the metadata for the specified recordset.
|
TerminalRegion |
getRecordSetRegion(java.lang.String recordset)
Gets the location and contents of the specified recordset.
|
RectangularTerminalRegion |
getRectangularTerminalRegion(int topRow,
int leftColumn,
int numRows,
int numColumns)
Gets the contents of a rectangular region of the terminal screen.
|
java.lang.String |
getStringAtCursor(int length)
Gets a string from a linear region of the terminal screen starting at
the current cursor position.
|
java.lang.String |
getStringAtLocation(int topRow,
int leftColumn,
int numRows,
int numColumns)
Gets a string from a rectangular region of the terminal screen
starting at the given row and column.
|
java.lang.String |
getStringAtOffset(int offset,
int length)
Gets a string from a linear region of the terminal screen starting
at the given offset.
|
java.util.List |
getTableColumns(java.lang.String table)
Gets the names of all columns in the specified table.
|
java.lang.String |
getTableDescription(java.lang.String table)
Gets the description for a table.
|
java.util.List |
getTableNames()
Gets the names of all tables in the model.
|
java.util.List |
getTableProcedures(java.lang.String table)
Gets the names of all procedures in the specified table.
|
RectangularTerminalRegion |
getTerminalScreen()
Gets the size and contents of the terminal screen.
|
ScreenSize |
getTerminalScreenSize()
Gets the size of the terminal screen without the contents.
|
VariableMetaData |
getVariableMetaData(java.lang.String variable)
Gets the metadata for the specified variable.
|
void |
insertRecord(java.util.Map record)
Inserts a record into the current recordset.
|
void |
insertRecords(java.util.List records)
Inserts multiple records into the current recordset.
|
void |
moveCurrentRecordIndex(int movement)
Moves the current record index to a new position in the current
recordset.
|
void |
moveCursor(int row,
int column)
Sets the position of the cursor using row-column coordinates.
|
void |
navigate(java.lang.String entity)
Equivalent to calling the
setCurrentEntity(java.lang.String) method. |
ModelRecord |
nextRecord(java.lang.String filterExpression)
Finds and return a record in the current recordset using a filter
expression starting with the record following the current record.
|
void |
readFromMappedAttribute(java.lang.String attribute)
Reads an attribute on the current entity and stores its value into the
variable mapped to that attribute.
|
void |
readVariableFromAttribute(java.lang.String attribute,
java.lang.String variable)
Reads an attribute on the current entity and stores its contents in a
variable.
|
void |
readVariableFromField(java.lang.String recordset,
java.lang.String field,
java.lang.String variable)
Reads a field from the current record and stores its contents in a
variable.
|
void |
readVariableFromLocation(java.lang.String variable,
int row,
int column,
int length)
Reads data directly from the terminal and stores it in a variable.
|
void |
readVariableFromTerminal(java.lang.String variable,
int length)
Reads terminal data at the current cursor position and stores it in a
variable.
|
void |
resetRecordSet(java.lang.String recordset)
Resets the state of a recordset on the current entity.
|
void |
selectCurrentRecord()
Performs the model-defined selection operation for the current
recordset.
|
boolean |
selectRecordByFilter(java.lang.String filterExpression)
Finds a record in the current recordset using a filter expression and
performs the model-defined selection operation.
|
boolean |
selectRecordByIndex(int index)
Sets the current record in the current recordset by index and then
performs the model-defined selection operation.
|
void |
setAttribute(java.lang.String attribute,
java.lang.String value)
Writes a value to the specified attribute on the current entity.
|
void |
setAttributeDelayed(java.lang.String entity,
java.lang.String attribute,
java.lang.String value)
Queues a value to be written to the specified attribute on the specified
entity.
|
void |
setAttributes(java.util.Map attributes)
Writes values to the specified attributes on the current entity.
|
void |
setAttributesDelayed(java.lang.String entity,
java.util.Map attributes)
Queues values to be written to the specified attributes on the specified
entity.
|
void |
setCurrentEntity(java.lang.String entity)
Sets the current entity.
|
boolean |
setCurrentRecordIndex(int index)
Sets the current record in the current recordset by index.
|
void |
setCurrentRecordSet(java.lang.String recordset)
Sets the current recordset by name.
|
void |
setModelVariable(java.lang.String variable,
java.lang.String value)
Sets the value of a variable.
|
void |
setModelVariables(java.util.Map variables)
Sets the values of one or more variables.
|
void |
shiftCursor(int vertical,
int horizontal)
Moves the cursor relative to its current position.
|
void |
transmit(java.lang.String string)
Writes a string to the terminal at the current cursor position using
DONT_WAIT_FOR_ECHO . |
void |
transmit(java.lang.String string,
int echoType)
Writes a string to the terminal at the current cursor position.
|
void |
transmitTerminalKey(int key)
Sends a non-alphanumeric terminal key (for example, a Program Function
key or a 3270 AID key) to the host.
|
void |
transmitToAttribute(java.lang.String attribute,
java.lang.String value)
Writes a string to an attribute on the current entity.
|
void |
transmitToField(java.lang.String recordset,
java.lang.String field,
java.lang.String value)
Writes a string to a field in the current record in the current
recordset.
|
void |
transmitToLocation(java.lang.String string,
int row,
int column)
Transmits a string to the terminal at the specified screen location
using
DONT_WAIT_FOR_ECHO . |
void |
transmitToLocation(java.lang.String string,
int row,
int column,
int echoType)
Transmits a string to the terminal at the specified screen location.
|
void |
transmitToOffset(java.lang.String string,
int offset)
Transmits a string to the terminal at the specified offset using
DONT_WAIT_FOR_ECHO . |
void |
transmitToOffset(java.lang.String string,
int offset,
int echoType)
Transmits a string to the terminal at the specified offset.
|
void |
updateAttribute(java.lang.String attribute)
Writes the current entity's cached attribute data for the specified
attribute.
|
void |
updateAttributes()
Writes the current entity's cached attribute data for all attributes.
|
void |
updateAttributes(java.util.Collection attributes)
Writes the current entity's cached attribute data for the specified
attributes.
|
void |
updateCurrentRecord(java.util.Map record)
Updates the field values of the current record in the current recordset.
|
boolean |
updateRecordByFilter(java.util.Map record,
java.lang.String filterExpression)
Finds a record in the current recordset using a filter expression and
updates its field values.
|
boolean |
updateRecordByIndex(java.util.Map record,
int index)
Updates the field values of the record at the specified index.
|
int |
updateRecords(java.util.Map record,
java.lang.String filterExpression)
Finds records in the current recordset using a filter expression and
update their field values.
|
void |
updateRecordSetField(java.lang.String recordset,
java.lang.String field)
Writes the cached field data for the specified field in the
recordset.
|
void |
updateRecordSetFields(java.lang.String recordset)
Writes the cached field data for all fields in the recordset.
|
void |
updateRecordSetFields(java.lang.String recordset,
java.util.Collection fields)
Writes the cached field data for the specified fields in the
recordset.
|
void |
wait(int duration)
Waits for the specified number of seconds.
|
void |
waitForCommString(java.lang.String string,
int timeout)
Waits until the given string is received from the host.
|
void |
waitForCommString(java.lang.String string,
int timeout,
int count)
Waits until the given string is received from the host a specific
number of times.
|
void |
waitForCondition(java.lang.String entity,
java.lang.String condition,
int timeout)
Waits for an expression to become true for the specified entity.
|
void |
waitForCursorAtAttribute(java.lang.String entity,
java.lang.String attribute,
int timeout)
Waits until the cursor is positioned within an attribute.
|
void |
waitForCursorAtLocation(int row,
int column,
int timeout)
Waits until the cursor is at the specified location.
|
void |
waitForCursorAtRecordSetField(java.lang.String entity,
java.lang.String recordset,
java.lang.String field,
int timeout)
Waits until the cursor is positioned within a recordset field.
|
void |
waitForCursorAtTerminalField(int row,
int column,
int timeout)
Waits until the cursor is within the terminal field at the specified
location.
|
void |
waitForCursorNotAtLocation(int row,
int column,
int timeout)
Waits until the cursor is not at the specified location.
|
void |
waitForCursorNotAtTerminalField(int row,
int column,
int timeout)
Waits until the cursor is not within the terminal field at the
specified location.
|
void |
waitForDisplayString(java.lang.String string,
int row,
int column,
boolean relative,
int timeout)
Waits for the presence of a string starting at a particular terminal
screen row and column.
|
java.lang.String |
waitForEntities(java.util.List entities,
int timeout)
Waits until one of the specified entities is recognized.
|
void |
waitForEntity(java.lang.String entity,
int timeout)
Waits until specified entity is recognized.
|
void |
waitForHostData(int timeout)
Processes any pending data received from the host.
|
void |
waitForHostSilence(int duration,
int timeout)
Waits until data communication with the host is silent for the specified
duration.
|
void |
waitForKeyboardEnabled(int duration,
int timeout)
Waits for the keyboard to be enabled for the specified duration
of time.
|
void |
waitForMultipleEvents(java.lang.String expression,
int timeout)
Waits until the specified sequence of event expressions are satisfied.
|
void |
waitForNewHostScreen(int timeout)
Processes any pending data from the host.
|
void |
waitForUpdate(int topRow,
int leftColumn,
int bottomRow,
int rightColumn,
int regionType,
boolean relative,
int timeout)
Waits for the host to update a specified region on the terminal screen.
|
void |
waitMS(int duration)
Waits for the specified number of milliseconds.
|
void |
writeToMappedAttribute(java.lang.String attribute)
Writes to an attribute from its mapped variable.
|
void |
writeVariableToAttribute(java.lang.String attribute,
java.lang.String variable)
Writes the contents of a variable to an attribute.
|
void |
writeVariableToField(java.lang.String recordset,
java.lang.String field,
java.lang.String variable)
Writes the contents of a variable to a field in the current record of a
recordset defined on the current entity.
|
void |
writeVariableToLocation(java.lang.String variable,
int row,
int column,
int maxLength,
boolean erase,
int echoType)
Writes the contents of a variable to the terminal at a specified location.
|
void |
writeVariableToTerminal(java.lang.String variable,
int maxLength,
boolean erase,
int echoType)
Writes the contents of a variable to the terminal at the current cursor
position.
|
static final int DONT_WAIT_FOR_ECHO
echoType
which means not to wait for the data
written to the terminal to be echoed.static final int WAIT_FOR_CURSOR_MOVE
echoType
which means to wait after writing only
until the cursor moves.static final int WAIT_FOR_CURSOR_AUTOTAB
echoType
which means to wait until the cursor
reaches the next tabstop.static final int WAIT_FOR_ECHO_BEHIND_CURSOR
echoType
which means to wait until the data
written appears behind the cursor.static final int WAIT_FOR_ECHO_SAME_NUMBER
echoType
which means to wait for the same number of
characters which were written are echoed. The characters need
not be the same, which is useful for things like password fields.static final int WAIT_FOR_ECHO_TAB_OR_BEHIND_CURSOR
echoType
which means to wait for the same data to
be echoed or for the cursor to appear at the next tabstop.static final int LINEAR_REGION
regionType
parameter for the waitForUpdate(int, int, int, int, int, boolean, int)
method which
specifies a linear region.static final int RECTANGULAR_REGION
regionType
parameter for the waitForUpdate(int, int, int, int, int, boolean, int)
method which
specifies a rectangular region.static final int DESIGN_TOOL_ONLY
context
parameter for the defaultValue(java.lang.String, java.lang.String, int)
method which
specifies a value to be used only when using the Design Tool.static final int DESIGN_TOOL_AND_SERVER
context
parameter for the defaultValue(java.lang.String, java.lang.String, int)
method which
specifies a value to be used only when using both the Design Tool and Server.static final int SCROLL_HOME
movement
parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Home operation.static final int SCROLL_END
movement
parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's End operation.static final int SCROLL_LINE_UP
movement
parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Line Up operation.static final int SCROLL_LINE_DOWN
movement
parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Line Down operation.static final int SCROLL_PAGE_UP
movement
parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Page Down operation.static final int SCROLL_PAGE_DOWN
movement
parameter for the moveCurrentRecordIndex(int)
method which specifies to execute the recordset's Page Up operation.static final int SYNC_TO_HOST
index
parameter for the setCurrentRecordIndex(int)
method which specifies to set the current index to the current host
record.static final int ANY_ROW
static final int ANY_COLUMN
static final int CURRENT_ROW
static final int CURRENT_COLUMN
void checkOperationConditions() throws ApptrieveException
This method is identical to the CheckOperationConditions command.
ApptrieveException
void defaultValue(java.lang.String attribute, java.lang.String value, int context) throws ApptrieveException
AttributeEventHandler.writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent)
event handler assuming
the model is not configured to cache attribute writes. This method
will not, however, trigger the EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
event handler.
This method is identical to the DefaultValue command.
attribute
- name of attribute to be modifiedvalue
- the value to be transmittedcontext
- selects when the command will be executed:
DESIGN_TOOL_ONLY
- perform only in the design toolDESIGN_TOOL_AND_SERVER
- perform in both the design tool and serverApptrieveException
void moveCursor(int row, int column) throws ApptrieveException
This method is identical to the MoveCursor command.
row
- one-based vertical position of the cursor
(CURRENT_ROW
means the current cursor row).column
- one-based horizontal position of the cursor
(CURRENT_COLUMN
means the current cursor column).ApptrieveException
void navigate(java.lang.String entity) throws ApptrieveException
setCurrentEntity(java.lang.String)
method.
This method is identical to the Navigate command.
entity
- name of the entityApptrieveException
void readFromMappedAttribute(java.lang.String attribute) throws ApptrieveException
This method is identical to the ReadFromMappedAttr command.
attribute
- name of mapped attribute (on current entity) to readApptrieveException
void readVariableFromAttribute(java.lang.String attribute, java.lang.String variable) throws ApptrieveException
This method is identical to the ReadVarFromAttr command.
attribute
- name of attribute on current entity to be readvariable
- name of variable to be updatedApptrieveException
void readVariableFromField(java.lang.String recordset, java.lang.String field, java.lang.String variable) throws ApptrieveException
This method is identical to the ReadVarFromRecordSetField command.
recordset
- name of recordset on current entity containing field to be readfield
- name of field to be readvariable
- name of variable to be updatedApptrieveException
void readVariableFromLocation(java.lang.String variable, int row, int column, int length) throws ApptrieveException
This method is identical to the ReadVarFromLocation command.
variable
- name of variable to be updatedrow
- the one-based row of the location to be readcolumn
- the one-based column of the location to be readlength
- the number of characters to be readApptrieveException
void readVariableFromTerminal(java.lang.String variable, int length) throws ApptrieveException
This method is identical to the ReadVarFromTerminal command.
variable
- name of variable to be updatedlength
- the number of characters to be readApptrieveException
void resetRecordSet(java.lang.String recordset) throws ApptrieveException
This method is identical to the ResetRecordset command.
recordset
- name of recordset to be resetApptrieveException
void shiftCursor(int vertical, int horizontal) throws ApptrieveException
This method is identical to the ShiftCursor command.
vertical
- offset of the cursor (CURRENT_ROW
means the
current cursor row).horizontal
- offset of the cursor (CURRENT_COLUMN
means
the current cursor column).ApptrieveException
void transmit(java.lang.String string) throws ApptrieveException
DONT_WAIT_FOR_ECHO
.
This method is identical to the TransmitANSI command with the rcDontWaitForEcho parameter.
string
- the string to transmitApptrieveException
void transmit(java.lang.String string, int echoType) throws ApptrieveException
DONT_WAIT_FOR_ECHO
WAIT_FOR_CURSOR_MOVE
WAIT_FOR_CURSOR_AUTOTAB
WAIT_FOR_ECHO_BEHIND_CURSOR
WAIT_FOR_ECHO_SAME_NUMBER
WAIT_FOR_ECHO_TAB_OR_BEHIND_CURSOR
This method is identical to the TransmitANSI command.
string
- the string to transmitechoType
- specifies if VHI should wait for the characters to be
echoed before returning. This parameter only has an effect on character
mode hosts.ApptrieveException
void transmitTerminalKey(int key) throws ApptrieveException
AppConnAidKey
.
This method is identical to the TransmitTerminalKey command.
key
- the AppConnAidKey constant for the terminal keyApptrieveException
void transmitToAttribute(java.lang.String attribute, java.lang.String value) throws ApptrieveException
AttributeEventHandler.writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent)
event handler assuming
the model is not configured to cache attribute writes. This method
will not, however, trigger the EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
event handler.
This method is identical to the TransmitToAttr command.
attribute
- the attribute to be writtenvalue
- the value to writeApptrieveException
void transmitToField(java.lang.String recordset, java.lang.String field, java.lang.String value) throws ApptrieveException
FieldEventHandler.writeField(com.wrq.vhi.script.api.WriteFieldEvent)
event handler assuming the model is not configured to cache field writes.
This method will not, however, trigger the RecordSetEventHandler.updateRecord(com.wrq.vhi.script.api.UpdateRecordEvent)
event handler.
This method is identical to the TransmitToField command.
recordset
- the field's recordsetfield
- the field in the recordset to be writtenvalue
- the value to writeApptrieveException
void transmitToLocation(java.lang.String string, int row, int column) throws ApptrieveException
DONT_WAIT_FOR_ECHO
.
This method is identical to the TransmitToLocation command with the rcDontWaitForEcho parameter.
string
- the string to transmitrow
- the row number of the starting location for insertioncolumn
- the column number of the starting location for insertionApptrieveException
void transmitToLocation(java.lang.String string, int row, int column, int echoType) throws ApptrieveException
This method is identical to the TransmitToLocation command.
string
- the string to transmitrow
- the row number of the starting location for insertion
(CURRENT_ROW
means the current cursor row).column
- the column number of the starting location for insertion
(CURRENT_COLUMN
means the current cursor column).echoType
- specifies if VHI should wait for the characters to be
echoed before returning. This parameter only has an effect on character
mode hosts. See transmit(java.lang.String)
for the list of valid echo types.ApptrieveException
void transmitToOffset(java.lang.String string, int offset) throws ApptrieveException
DONT_WAIT_FOR_ECHO
.
This method is identical to the TransmitToOffset command with the rcDontWaitForEcho parameter.
string
- the string to transmitoffset
- character from the start of the screen bufferApptrieveException
void transmitToOffset(java.lang.String string, int offset, int echoType) throws ApptrieveException
This method is identical to the TransmitToOffset command.
string
- the string to transmitoffset
- character from the start of the screen bufferechoType
- specifies if VHI should wait for the characters to be
echoed before returning. This parameter only has an effect on character
mode hosts. See transmit(java.lang.String)
for the list of valid echo types.ApptrieveException
void updateAttribute(java.lang.String attribute) throws ApptrieveException
AttributeEventHandler.writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent)
event handler. This
method will not, however, trigger the EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
event handler.
This method is identical to the UpdateAttribute command.
attribute
- name of the attribute to updateApptrieveException
void updateAttributes(java.util.Collection attributes) throws ApptrieveException
EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
event handler.attributes
- Collection of attribute names to updateApptrieveException
void updateAttributes() throws ApptrieveException
EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
event handler.
This method is identical to the UpdateAttributes command.
ApptrieveException
void updateRecordSetField(java.lang.String recordset, java.lang.String field) throws ApptrieveException
FieldEventHandler.writeField(com.wrq.vhi.script.api.WriteFieldEvent)
event handler. This method
will not, however, trigger the RecordSetEventHandler.updateRecord(com.wrq.vhi.script.api.UpdateRecordEvent)
event handler.
This method is identical to the UpdateRecordSetField command.
recordset
- name of recordset on current entityfield
- name of the field to updateApptrieveException
void updateRecordSetFields(java.lang.String recordset, java.util.Collection fields) throws ApptrieveException
RecordSetEventHandler.updateRecord(com.wrq.vhi.script.api.UpdateRecordEvent)
event handler.recordset
- name of recordset on current entityfields
- collection of attribute names to updateApptrieveException
void updateRecordSetFields(java.lang.String recordset) throws ApptrieveException
RecordSetEventHandler.updateRecord(com.wrq.vhi.script.api.UpdateRecordEvent)
event handler.
This method is identical to the UpdateRecordSetFields command.
recordset
- name of recordset on current entityApptrieveException
void wait(int duration) throws ApptrieveException
This method is identical to the Wait command.
duration
- the amount of time to wait in secondsApptrieveException
void waitMS(int duration) throws ApptrieveException
This method is identical to the WaitMS command.
duration
- the amount of time to wait in millisecondsApptrieveException
void waitForCommString(java.lang.String string, int timeout) throws ApptrieveException
This method is identical to the WaitForCommString command.
string
- the string to wait fortimeout
- the maximum time to wait in secondsApptrieveException
void waitForCommString(java.lang.String string, int timeout, int count) throws ApptrieveException
This method is identical to the WaitForCommString command.
string
- the string to wait fortimeout
- the maximum time to wait in secondscount
- the number of times the string must be foundApptrieveException
void waitForDisplayString(java.lang.String string, int row, int column, boolean relative, int timeout) throws ApptrieveException
This method is identical to the WaitForDisplayString command.
string
- the string to wait forrow
- if relative is true, offset to cursor row; if relative is false, the one-based screen row (ANY_ROW
matches any row)column
- if relative is true, offset to cursor column; if relative is false, the one-based screen column (ANY_COLUMN
matches any column)relative
- looks for the string relative to the cursor if truetimeout
- the maximum time to wait in secondsApptrieveException
void waitForCursorAtLocation(int row, int column, int timeout) throws ApptrieveException
This method is identical to the WaitForCursorAtLocation command.
row
- the one-based screen row (ANY_ROW
matches any row)column
- the one-based screen column (ANY_COLUMN
matches any column)timeout
- the maximum time to wait in secondsApptrieveException
void waitForCursorNotAtLocation(int row, int column, int timeout) throws ApptrieveException
This method is identical to the WaitForCursorNotAtLocation command.
row
- the one-based screen row (ANY_ROW
matches any row)column
- the one-based screen column (ANY_COLUMN
matches any column)timeout
- the maximum time to wait in secondsApptrieveException
void waitForCursorAtTerminalField(int row, int column, int timeout) throws ApptrieveException
This method is identical to the WaitForCursorAtTerminalField command.
row
- the one-based screen row (ANY_ROW
matches any row)column
- the one-based screen column (ANY_COLUMN
matches any column)timeout
- the maximum time to wait in secondsApptrieveException
void waitForCursorNotAtTerminalField(int row, int column, int timeout) throws ApptrieveException
This method is identical to the WaitForCursorNotAtTerminalField command.
row
- the one-based screen row (ANY_ROW
matches any row)column
- the one-based screen column (ANY_COLUMN
matches any column)timeout
- the maximum time to wait in secondsApptrieveException
void waitForKeyboardEnabled(int duration, int timeout) throws ApptrieveException
This method is identical to the WaitForKeyboardEnabled command.
duration
- the duration in seconds that the keyboard must remain
enabled before returning.timeout
- the maximum time to wait in secondsApptrieveException
void waitForNewHostScreen(int timeout) throws ApptrieveException
This method is identical to the WaitForNewHostScreen command.
timeout
- the maximum time to wait in secondsApptrieveException
waitForHostData(int)
void waitForHostSilence(int duration, int timeout) throws ApptrieveException
This method is identical to the WaitForHostSilence command.
duration
- the duration in seconds that the communication must
be silent before returningtimeout
- the maximum time to wait in secondsApptrieveException
void waitForMultipleEvents(java.lang.String expression, int timeout) throws ApptrieveException
The expression is composed of a sequence of event statements separated by semicolons. The syntax for the expression is as follows:
expression: <event_sequence> event_sequence: <event_statement> <event_sequence> ; <event_statement> event_statement: <event_statement> OR <event_statement> <event_statement> AND <event_statement> <event_statement> THEN <event_statement> NOT <event_statement> ( <event_statement> ) <event>
VHI will wait for each event statement to be satisfied before moving on to the next event statement. This method returns once all event statements have been satisfied in the order specified. If all the event statements are not satisfied within the specified timeout, an ApptrieveException will be thrown.
Note that AND and OR do not imply event sequencing. Events are processed in the order that they are received from the host. If the event sequence is critical, use the THEN operator, which requires the expression on the left to be satisfied before the expression on the right is considered, or use the semicolon statement separator, which has a similar effect.
This method is identical to the WaitForMultipleEvents command.
expression
- the expression of events to wait fortimeout
- the maximum time to wait in secondsApptrieveException
void waitForUpdate(int topRow, int leftColumn, int bottomRow, int rightColumn, int regionType, boolean relative, int timeout) throws ApptrieveException
This method is identical to the WaitForUpdate command.
topRow
- the top row of the region to watchleftColumn
- the left column of the region to watchbottomRow
- the bottom row of the region to watchrightColumn
- the right column of the region to watchregionType
- the type of region to use: LINEAR_REGION
or RECTANGULAR_REGION
.relative
- true if the region is relative to the cursor positiontimeout
- the maximum time to wait in secondsApptrieveException
void waitForCondition(java.lang.String entity, java.lang.String condition, int timeout) throws ApptrieveException
This method is identical to the WaitForCondition command.
entity
- the name of the entity to use as the context for the expression.condition
- the expression to wait fortimeout
- the maximum time to wait in secondsApptrieveException
void waitForCursorAtAttribute(java.lang.String entity, java.lang.String attribute, int timeout) throws ApptrieveException
This method is identical to the WaitForCursorAtAttribute command.
entity
- the name of the entity on which the attribute is definedattribute
- the name of the attributetimeout
- the maximum time to wait in secondsApptrieveException
void waitForCursorAtRecordSetField(java.lang.String entity, java.lang.String recordset, java.lang.String field, int timeout) throws ApptrieveException
This method is identical to the WaitForCursorAtRecordSetField command.
entity
- the name of the entity on which the recordset is definedrecordset
- the name of the recordset on which the field is definedfield
- the name of the field that can terminate the waittimeout
- the maximum time to wait in secondsApptrieveException
void writeToMappedAttribute(java.lang.String attribute) throws ApptrieveException
AttributeEventHandler.writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent)
event handler
assuming the model is not configured to cache attribute writes. This
method will not, however, trigger the EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
event handler.
This method is identical to the WriteToMappedAttr command.
attribute
- name of mapped attribute to be writtenApptrieveException
void writeVariableToAttribute(java.lang.String attribute, java.lang.String variable) throws ApptrieveException
AttributeEventHandler.writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent)
event handler
assuming the model is not configured to cache attribute writes. This
method will not, however, trigger the EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
event handler.
This method is identical to the WriteVarToAttr command.
attribute
- name of attribute to be written tovariable
- name of variable containing value to be writtenApptrieveException
void writeVariableToField(java.lang.String recordset, java.lang.String field, java.lang.String variable) throws ApptrieveException
FieldEventHandler.writeField(com.wrq.vhi.script.api.WriteFieldEvent)
event handler assuming the model is
not configured to cache field writes. This method will not, however,
trigger the RecordSetEventHandler.updateRecord(com.wrq.vhi.script.api.UpdateRecordEvent)
event handler.
This method is identical to the WriteVarToField command.
recordset
- name of recordset on current entity containing the field
to be written tofield
- name of field to be written tovariable
- name of variable containing value to be writtenApptrieveException
void writeVariableToTerminal(java.lang.String variable, int maxLength, boolean erase, int echoType) throws ApptrieveException
This method is identical to the WriteVarToTerminal command.
variable
- name of variable to be read.maxLength
- the maximum number of characters to writeerase
- if true
and if the length of the string
contained in variable
is less than maxLength
,
pad the value written with spaces until maxLength
characters have been written.echoType
- type of wait for echo to perform. See transmit(java.lang.String)
for values.ApptrieveException
void writeVariableToLocation(java.lang.String variable, int row, int column, int maxLength, boolean erase, int echoType) throws ApptrieveException
This method is identical to the WriteVarToLocation command.
variable
- name variable containing value to be writtenrow
- the row of the location to be written tocolumn
- the starting column of the location to be written tomaxLength
- the maximum number of characters to writeerase
- if true
and if the length of the string
contained in variable
is less than maxLength
,
pad the value written with spaces until maxLength
characters have been written.echoType
- type of wait for echo to perform. See transmit(java.lang.String)
for values.ApptrieveException
void executeCommandList(CommandList list) throws ApptrieveException
A command list can be constructed as follows:
CommandList list = new CommandList();
list.add(new WaitForDisplayString("prompt> ", 5, 0, -8, true));
list.add(new Transmit("run"));
list
- the command list to execute.ApptrieveException
java.lang.String getStringAtCursor(int length) throws ApptrieveException
length
- the length of the stringApptrieveException
java.lang.String getStringAtOffset(int offset, int length) throws ApptrieveException
offset
- the offset from the start of the screenlength
- the length of the stringApptrieveException
java.lang.String getStringAtLocation(int topRow, int leftColumn, int numRows, int numColumns) throws ApptrieveException
topRow
- the starting row on the screenleftColumn
- the starting column on the screennumRows
- the number of rows to get relative to the starting rownumColumns
- the number of columns to get relative to the starting columnApptrieveException
CursorPosition getCursorPosition() throws ApptrieveException
ApptrieveException
LinearTerminalRegion getLinearTerminalRegion(int offset, int length) throws ApptrieveException
offset
- the zero-based offsetlength
- the lengthApptrieveException
RectangularTerminalRegion getRectangularTerminalRegion(int topRow, int leftColumn, int numRows, int numColumns) throws ApptrieveException
topRow
- the one-based screen rowleftColumn
- the one-based screen columnnumRows
- the number of rows to get relative to topRow
numColumns
- the number of columns to get relative to leftColumn
ApptrieveException
ScreenSize getTerminalScreenSize() throws ApptrieveException
ApptrieveException
RectangularTerminalRegion getTerminalScreen() throws ApptrieveException
ApptrieveException
void waitForHostData(int timeout) throws ApptrieveException
timeout
- the maximum time to wait in secondsApptrieveException
- if a Host Integrator server error occurswaitForNewHostScreen(int)
void waitForEntity(java.lang.String entity, int timeout) throws ApptrieveException
entity
- the name of the entity to wait fortimeout
- the maximum time to wait in secondsApptrieveException
java.lang.String waitForEntities(java.util.List entities, int timeout) throws ApptrieveException
entities
- array of entity names for which to waittimeout
- the maximum time to wait in secondsApptrieveException
- if a Host Integrator server error occursjava.lang.String getHomeEntity() throws ApptrieveException
ApptrieveException
java.util.List getModelEntities() throws ApptrieveException
ApptrieveException
java.lang.String getEntityDescription(java.lang.String entity) throws ApptrieveException
entity
- the name of the entityApptrieveException
java.lang.String getCurrentEntity() throws ApptrieveException
ApptrieveException
void setCurrentEntity(java.lang.String entity) throws ApptrieveException
entity
- name of the entityApptrieveException
TerminalRegion getPatternRegion(java.lang.String pattern) throws ApptrieveException
pattern
- a pattern on the current entityApptrieveException
java.util.Map getPatternRegions(java.util.List patterns) throws ApptrieveException
patterns
- a list of patterns on the current entityApptrieveException
java.util.List getEntityAttributes(java.lang.String entity) throws ApptrieveException
entity
- name of the entityApptrieveException
AttributeMetaData getAttributeMetaData(java.lang.String entity, java.lang.String attribute) throws ApptrieveException
entity
- name of the entityattribute
- name of the attribute on the entityApptrieveException
java.lang.String getAttributeAtCursor() throws ApptrieveException
ApptrieveException
TerminalRegion getAttributeRegion(java.lang.String attribute) throws ApptrieveException
attribute
- an attribute on the current entityApptrieveException
java.util.Map getAttributeRegions(java.util.List attributes) throws ApptrieveException
attributes
- a list of attributes on the current entityApptrieveException
java.lang.String getAttribute(java.lang.String attribute) throws ApptrieveException
AttributeEventHandler.readAttribute(com.wrq.vhi.script.api.ReadAttributeEvent)
event handler if defined.attribute
- an attribute on the current entityApptrieveException
java.util.Map getAttributes() throws ApptrieveException
AttributeEventHandler.readAttribute(com.wrq.vhi.script.api.ReadAttributeEvent)
event handler for each attribute if defined.ApptrieveException
java.util.Map getAttributes(java.util.List attributes) throws ApptrieveException
AttributeEventHandler.readAttribute(com.wrq.vhi.script.api.ReadAttributeEvent)
event handler for each attribute if defined.attributes
- a list of attributes on the current entityApptrieveException
void setAttribute(java.lang.String attribute, java.lang.String value) throws ApptrieveException
EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
and
AttributeEventHandler.writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent)
event handlers if defined.attribute
- an attribute on the current entityvalue
- the value to writeApptrieveException
void setAttributes(java.util.Map attributes) throws ApptrieveException
EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
and
AttributeEventHandler.writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent)
event handlers if defined.attributes
- a map of attribute names to valuesApptrieveException
void setAttributeDelayed(java.lang.String entity, java.lang.String attribute, java.lang.String value) throws ApptrieveException
EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
and AttributeEventHandler.writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent)
event handlers will be
triggered if defined.entity
- the entity nameattribute
- an attribute on the specified entityvalue
- the value to writeApptrieveException
void setAttributesDelayed(java.lang.String entity, java.util.Map attributes) throws ApptrieveException
EntityEventHandler.writeAttributes(com.wrq.vhi.script.api.WriteAttributesEvent)
and AttributeEventHandler.writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent)
event handlers will be
triggered if defined.entity
- the entity nameattributes
- a map of attribute names to valuesApptrieveException
java.util.List getEntityOperations(java.lang.String entity) throws ApptrieveException
entity
- name of the entityApptrieveException
OperationMetaData getOperationMetaData(java.lang.String entity, java.lang.String operation) throws ApptrieveException
entity
- name of the entityoperation
- name of the operation on the entityApptrieveException
void executeOperation(java.lang.String operation) throws ApptrieveException
OperationEventHandler.executeOperation(com.wrq.vhi.script.api.ExecuteOperationEvent)
event handler if
defined.operation
- the operation nameApptrieveException
java.util.List getEntityRecordSets(java.lang.String entity) throws ApptrieveException
entity
- name of the entityApptrieveException
RecordSetMetaData getRecordSetMetaData(java.lang.String entity, java.lang.String recordset) throws ApptrieveException
entity
- name of the entityrecordset
- name of the recordset on the entityApptrieveException
FieldMetaData getFieldMetaData(java.lang.String entity, java.lang.String recordset, java.lang.String field) throws ApptrieveException
entity
- name of the entityrecordset
- name of the recordset on the entityfield
- name of the field on the recordsetApptrieveException
java.lang.String getCurrentRecordSet() throws ApptrieveException
ApptrieveException
void setCurrentRecordSet(java.lang.String recordset) throws ApptrieveException
recordset
- the name of the recordset to make currentApptrieveException
ModelRecordSet fetchRecords(int maxRows, java.util.List fields, java.lang.String filterExpression) throws ApptrieveException
Filter Expression Syntax:
expression: <expression> OR <expression> <expression> AND <expression> NOT <expression> ( <expression> ) <value_expression> = <value_expression> <value_expression> =* <value_expression> <value_expression> != <value_expression> <value_expression> < <value_expression> <value_expression> > <value_expression> <value_expression> <= <value_expression> <value_expression> >= <value_expression> value_expression: <value_expression> + <value_expression> <value_expression> - <value_expression> <value_expression> * <value_expression> <value_expression> / <value_expression> <variable_reference> <attribute_reference> <field_reference> <constant> variable_reference: Variables.<variable_name> field_reference: <recordset_name>.<field_name> attribute_reference: <attribute_name> constant: " <string> " <number>
Filter Expression Examples:
patients.LastName <> "smith" All recordset fields in the patients recordset that are not "smith." NOT (patients.LastName = "smith") All recordset fields in the patients recordset that are not "smith." (SearchResults.LastName = "smith") and (SearchResults.FirstName = "Steven") All records in the SearchResults recordset with the last name "smith" and first name "Steven." AccountNumbers.Accounts >= 10000 and AccountNumbers.Accounts <= 20000 All fields in the AccountNumbers recordset greater than or equal to 10000 and less than or equal to 20000. (AccountNumbers.AcctNum >= variables.MinAccount) and (AccountNumbers.AcctNum <= variables.MaxAccount) AcctNum field in the AccountNumbers recordset greater than or equal to variable MinAccount and less than or equal to variable MaxAccount
maxRows
- the maximum number of rows to fetchfields
- list of the field names to fetch or null for allfilterExpression
- an expression that qualifies the records to fetchApptrieveException
int getCurrentRecordIndex() throws ApptrieveException
ApptrieveException
boolean setCurrentRecordIndex(int index) throws ApptrieveException
index
- the index of the record to make current or SYNC_TO_HOST
to make the current host record currentApptrieveException
ModelRecord nextRecord(java.lang.String filterExpression) throws ApptrieveException
See fetchRecords(int, java.util.List, java.lang.String)
for filter expression syntax.
filterExpression
- an expression that qualifies the record to findApptrieveException
void moveCurrentRecordIndex(int movement) throws ApptrieveException
movement
- the type of movement to performApptrieveException
ModelRecord getCurrentRecord() throws ApptrieveException
ApptrieveException
void selectCurrentRecord() throws ApptrieveException
ApptrieveException
boolean selectRecordByFilter(java.lang.String filterExpression) throws ApptrieveException
See fetchRecords(int, java.util.List, java.lang.String)
for filter expression syntax.
filterExpression
- an expression that qualifies the record to selectApptrieveException
boolean selectRecordByIndex(int index) throws ApptrieveException
index
- the index of the record to selectApptrieveException
void insertRecord(java.util.Map record) throws ApptrieveException
RecordSetEventHandler.insertRecord(com.wrq.vhi.script.api.InsertRecordEvent)
event handler if
defined, otherwise the model-defined insertion method will be used.record
- a map of field names to valuesApptrieveException
void insertRecords(java.util.List records) throws ApptrieveException
RecordSetEventHandler.insertRecord(com.wrq.vhi.script.api.InsertRecordEvent)
event handler
for each record if defined, otherwise the model-defined insertion method
will be used.records
- a list of java.util.Map objects, one for each record
to insert into the entity. Each map should contain a set of field name
and value pairs.ApptrieveException
void updateCurrentRecord(java.util.Map record) throws ApptrieveException
RecordSetEventHandler.updateRecord(com.wrq.vhi.script.api.UpdateRecordEvent)
event handler for each record if defined, otherwise the model-defined
update method will be used.record
- a map of field names to valuesApptrieveException
boolean updateRecordByFilter(java.util.Map record, java.lang.String filterExpression) throws ApptrieveException
This method will trigger the RecordSetEventHandler.updateRecord(com.wrq.vhi.script.api.UpdateRecordEvent)
event handler for the record found, otherwise the model-defined update
method will be used.
See fetchRecords(int, java.util.List, java.lang.String)
for filter expression syntax.
record
- a map of field names to valuesfilterExpression
- an expression that qualifies the record to updateApptrieveException
boolean updateRecordByIndex(java.util.Map record, int index) throws ApptrieveException
RecordSetEventHandler.updateRecord(com.wrq.vhi.script.api.UpdateRecordEvent)
event handler if defined, otherwise the model-defined update method
will be used.record
- a map of field names to valuesindex
- the index of the record to updateApptrieveException
int updateRecords(java.util.Map record, java.lang.String filterExpression) throws ApptrieveException
This method will trigger the RecordSetEventHandler.updateRecord(com.wrq.vhi.script.api.UpdateRecordEvent)
event handler for the record found, otherwise the model-defined update
method will be used.
See fetchRecords(int, java.util.List, java.lang.String)
for filter expression syntax.
record
- a map of field names to valuesfilterExpression
- an expression that qualifies which records to updateApptrieveException
TerminalRegion getRecordSetRegion(java.lang.String recordset) throws ApptrieveException
recordset
- a recordset on the current entityApptrieveException
TerminalRegion getRecordRegion(java.lang.String recordset) throws ApptrieveException
recordset
- recordset on the current entityApptrieveException
TerminalRegion getFieldRegion(java.lang.String field) throws ApptrieveException
field
- field in the current recordsetApptrieveException
java.util.Map getFieldRegions(java.util.List fields) throws ApptrieveException
fields
- a list of fields in the current recordsetApptrieveException
java.util.List getModelVariableNames() throws ApptrieveException
ApptrieveException
VariableMetaData getVariableMetaData(java.lang.String variable) throws ApptrieveException
variable
- name of the variableApptrieveException
java.lang.String getModelVariable(java.lang.String variable) throws ApptrieveException
getModelVariables()
.variable
- the model variable nameApptrieveException
java.util.Map getModelVariables() throws ApptrieveException
ApptrieveException
void setModelVariable(java.lang.String variable, java.lang.String value) throws ApptrieveException
variable
- the model variable namevalue
- the model variable valueApptrieveException
void setModelVariables(java.util.Map variables) throws ApptrieveException
variables
- a map of variable names to valuesApptrieveException
java.util.List getTableNames() throws ApptrieveException
ApptrieveException
java.lang.String getTableDescription(java.lang.String table) throws ApptrieveException
table
- name of the tableApptrieveException
java.util.List getTableProcedures(java.lang.String table) throws ApptrieveException
table
- name of the tableApptrieveException
ProcedureMetaData getProcedureMetaData(java.lang.String table, java.lang.String procedure) throws ApptrieveException
table
- name of the tableprocedure
- name of the procedure in the tableApptrieveException
java.util.List getTableColumns(java.lang.String table) throws ApptrieveException
table
- name of the tableApptrieveException
ColumnMetaData getColumnMetaData(java.lang.String table, java.lang.String column) throws ApptrieveException
table
- name of the tablecolumn
- name of the column in the tableApptrieveException
ProcedureRecordSet executeTableProcedure(java.lang.String tableName, java.lang.String procedureName, java.util.Map dataInputValues, java.util.Map filterValues, boolean filterIsCaseSensitive, java.util.List outputColumnNames, int maxRows) throws ApptrieveException
ProcedureEventHandler.executeProcedure(com.wrq.vhi.script.api.ExecuteProcedureEvent)
event handler
for the procedure if defined.tableName
- name of the tableprocedureName
- name of the procedure to performdataInputValues
- set of data input column name-value pairs to use
(not required for SELECT and DELETE procedures)filterValues
- set of filter column name-value pairs to use (not
required for INSERT procedures)filterIsCaseSensitive
- true means that filter comparisons are
case sensitiveoutputColumnNames
- list of the table's column names to return
as output (not required for UPDATE, INSERT or DELETE procedures)maxRows
- the maximum number of rows to returnApptrieveException
ProcedureRecordSet executeSQLStatement(java.lang.String sqlStatement) throws ApptrieveException
sqlStatement
- the SQL statement to executeApptrieveException