public interface AppConnModel
Using Filter Expressions
Some of the methods in the AppConn Java connector allow you to use filter expressions when fetching records from a recordset. The following is a description of the syntax you can use to build filter expressions:
condition_statement=condition_expression
You can use expressions on both the left and right sides of the condition statement. Be sure to enclose data in quotation marks.
Condition Expressions
Value Expressions A value expression can take any of the following:
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
Modifier and Type | Field and Description |
---|---|
static int |
ScrollEnd
Used by
moveCurrentRecordIndex(int) . |
static int |
ScrollHome
Used by
moveCurrentRecordIndex(int) . |
static int |
ScrollLineDown
Used by
moveCurrentRecordIndex(int) . |
static int |
ScrollLineUp
Used by
moveCurrentRecordIndex(int) . |
static int |
ScrollPageDown
Used by
moveCurrentRecordIndex(int) . |
static int |
ScrollPageUp
Used by
moveCurrentRecordIndex(int) . |
static int |
SyncToHost
Used by
setCurrentRecordIndex(int) . |
Modifier and Type | Method and Description |
---|---|
void |
enableTerminalAttributes(boolean enable)
Enables or disables the availability of terminal
attributes when retrieving attribute or field data from the Host Integrator
server.
|
AppConnRecordSet |
fetchRecords(int maxRows,
java.util.List fieldNames,
java.lang.String filterExpression)
Fetches up to max rows of data from the Host Integrator Server
for the current recordset of the current entity.
|
java.lang.String |
getAttributeAtCursor()
Gets the name of the attribute at the current
cursor position.
|
java.util.List |
getAttributeLocations(java.util.List attributeNames)
Gets a collection of ElementLocation objects for attributes of the current
entity.
|
AttributeMetaData |
getAttributeMetaData(java.lang.String entityName,
java.lang.String attributeName)
Gets metadata associated with an attribute.
|
AppConnModelRecord |
getAttributes(java.util.List attributeNames)
Gets the attributes of the current entity.
|
java.lang.String |
getCurrentEntity()
Gets the current entity (screen) of the legacy application.
|
AppConnModelRecord |
getCurrentRecord()
Fetches the current record in the current recordset.
|
int |
getCurrentRecordIndex()
Gets the index number of the current
record in the current recordset.
|
java.lang.String |
getCurrentRecordSetName()
Gets the name of the current recordset.
|
java.util.List |
getEntityAttributes(java.lang.String entityName)
Gets the attribute names of an entity in the Host Integrator model.
|
java.lang.String |
getEntityDescription(java.lang.String entityName)
Gets the description for an entity in the Host Integrator model.
|
java.util.List |
getEntityOperations(java.lang.String entityName)
Gets the operation names of an entity in the Host Integrator model.
|
java.util.List |
getEntityRecordSets(java.lang.String entityName)
Gets the names of the recordsets for an entity in the Host Integrator model.
|
java.util.List |
getFieldLocations(java.util.List fieldNames)
Gets a collection of ElementLocation objects for fields of the current
record in the current recordset of the current
entity.
|
FieldMetaData |
getFieldMetaData(java.lang.String entityName,
java.lang.String recordSetName,
java.lang.String fieldName)
Gets metadata associated with a recordset field.
|
java.lang.String |
getHomeEntityName()
Gets the name of the home entity for the Host Integrator model.
|
java.util.List |
getModelEntities()
Gets the entity names of the Host Integrator model.
|
java.util.List |
getModelVariableNames()
Gets the names of all model variables in the Host Integrator model.
|
java.util.Map |
getModelVariables()
Gets the values of model variables in the Host Integrator model.
|
OperationMetaData |
getOperationMetaData(java.lang.String entityName,
java.lang.String operationName)
Gets metadata associated with an operation.
|
java.util.List |
getPatternLocations(java.util.List patternNames)
Gets a collection of ElementLocation objects for patterns of the current
entity.
|
java.util.List |
getRecordSetLocations(java.util.List recordSetNames)
Gets a collection of ElementLocation objects for recordSets of the current
entity.
|
RecordSetMetaData |
getRecordSetMetaData(java.lang.String entityName,
java.lang.String recordSetName)
Gets metadata associated with a recordset.
|
VariableMetaData |
getVariableMetaData(java.lang.String variableName)
Gets metadata associated with a variable.
|
void |
insertRecord(java.util.Map record)
Performs the insert operation for the current recordset.
|
void |
insertRecords(java.util.List records)
Performs the insert operation for the current recordset multiple
times.
|
void |
moveCurrentRecordIndex(int movement)
Moves the current record index to a new position
in the current recordset.
|
AppConnModelRecord |
nextRecord(java.lang.String filterExpression)
Finds and return a record in the current recordset using a filter
expression.
|
void |
performEntityOperation(java.lang.String operationName)
Performs an operation on the current entity.
|
java.lang.String |
processString(java.lang.String inStr)
Calls the ProcessString event handler on the server.
|
void |
selectCurrentRecord()
Performs the selection operation
for the current recordset.
|
boolean |
selectRecordByFilter(java.lang.String filterExpression)
Finds a record in the current recordset using a filter
expression and perform its selection operation.
|
boolean |
selectRecordByIndex(int index)
Performs its selection operation on a record in the
current recordset.
|
void |
setAttributes(java.util.Map attributes)
Sets the attributes in the current entity.
|
void |
setAttributesDelayed(java.util.Map attributes,
java.lang.String entityName)
Sets the attributes of an entity.
|
void |
setCurrentEntity(java.lang.String entityName)
Sets the current entity.
|
boolean |
setCurrentRecordIndex(int index)
Changes the index number of the current record
in the current recordset.
|
void |
setCurrentRecordSetByName(java.lang.String recordSetName)
Sets the current recordset by name.
|
void |
setModelVariables(java.util.Map variables)
Sets the values of variables in the Host Integrator model.
|
void |
updateCurrentRecord(java.util.Map record)
Changes the values of the current record in the current recordset.
|
boolean |
updateRecordByFilter(java.util.Map record,
java.lang.String filterExpression)
Changes the values of a record in the current recordset.
|
boolean |
updateRecordByIndex(java.util.Map record,
int index)
Changes the values of a record in the current recordset.
|
int |
updateRecords(java.util.Map record,
java.lang.String filterExpression)
Changes the values of records in the current recordset.
|
void |
waitForCondition(int timeout,
java.lang.String expression,
java.lang.String entityName)
Waits for an expression to become true for an entity on the Host Integrator server.
|
void |
waitForEntityChange(java.lang.String entityName,
int timeout)
Deprecated.
Use of this method should be avoided, because it can sometimes result in a race condition.
|
static final int ScrollHome
moveCurrentRecordIndex(int)
.static final int ScrollEnd
moveCurrentRecordIndex(int)
.static final int ScrollLineUp
moveCurrentRecordIndex(int)
.static final int ScrollLineDown
moveCurrentRecordIndex(int)
.static final int ScrollPageUp
moveCurrentRecordIndex(int)
.static final int ScrollPageDown
moveCurrentRecordIndex(int)
.static final int SyncToHost
setCurrentRecordIndex(int)
.void enableTerminalAttributes(boolean enable)
Enables or disables the availability of terminal attributes when retrieving attribute or field data from the Host Integrator server. This method applies to subsequent getAttributes or fetchRecord method calls. Attributes are only retrieved if they are enabled at run-time with this method call and enabled in the model file for the entity or recordset.
enable
- boolean - Set to true to enable terminal attribute retrievalMetaDataOnlyException
- - if this is a metadata-only connectionAppConnRecordSet fetchRecords(int maxRows, java.util.List fieldNames, java.lang.String filterExpression) throws ApptrieveException
For fetchRecords, the current record is the last record included in returned set of records.
If attributeNames is null, fetchRecords will return all fields for each record.
maxRows
- int - The maximum number of rows that will be fetchfieldNames
- java.util.List - List of the field names to fetch from the entityfilterExpression
- java.lang.String - An expression that qualifies the records to fetchApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionjava.lang.String getAttributeAtCursor() throws ApptrieveException
Gets the name of the attribute at the current cursor position. Returns an empty string if the cursor is not currently within one of the defined entity attributes.
ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionAttributeMetaData getAttributeMetaData(java.lang.String entityName, java.lang.String attributeName) throws AppConnException, ApptrieveException
Gets metadata associated with an attribute.
entityName
- java.lang.String - Name of the entity in the Host Integrator modelattributeName
- java.lang.String - Name of the attribute of the entity in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursjava.util.List getAttributeLocations(java.util.List attributeNames) throws ApptrieveException
Gets a collection of ElementLocation objects for attributes of the current entity. If attributeNames is null, getAttributeLocations will return ElementLocation objects for all attributes of the entity.
attributeNames
- java.util.List - List of attribute names to
use in getting locationsApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionAppConnModelRecord getAttributes(java.util.List attributeNames) throws ApptrieveException
Gets the attributes of the current entity. If attributeNames is null, getAttributes will return all attributes of the entity that are not write-only.
attributeNames
- java.util.List - List of attribute names to
get from the entityApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionsetAttributes(java.util.Map)
,
setAttributesDelayed(java.util.Map, java.lang.String)
java.lang.String getCurrentEntity() throws ApptrieveException
Gets the current entity (screen) of the legacy application.
Reasons for failure include:
ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionsetCurrentEntity(java.lang.String)
AppConnModelRecord getCurrentRecord() throws ApptrieveException
Fetches the current record in the current recordset.
ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionnextRecord(java.lang.String)
,
setCurrentRecordIndex(int)
,
getCurrentRecordIndex()
int getCurrentRecordIndex() throws ApptrieveException
ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionsetCurrentRecordIndex(int)
,
getCurrentRecord()
java.lang.String getCurrentRecordSetName() throws ApptrieveException
ApptrieveException
- - if there is no current recordset forMetaDataOnlyException
- - if this is a metadata-only connection
the current entity or if a Host Integrator server error occurs.java.util.List getEntityAttributes(java.lang.String entityName) throws AppConnException, ApptrieveException
Gets the attribute names of an entity in the Host Integrator model.
Reasons for failure include:
entityName
- java.lang.String - Name of the entity in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursgetModelEntities()
java.lang.String getEntityDescription(java.lang.String entityName) throws AppConnException, ApptrieveException
Gets the description for an entity in the Host Integrator model.
entityName
- java.lang.String - Name of the entity in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursjava.util.List getEntityOperations(java.lang.String entityName) throws AppConnException, ApptrieveException
Gets the operation names of an entity in the Host Integrator model.
Reasons for failure include:
entityName
- java.lang.String - Name of the entity in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursgetModelEntities()
java.util.List getEntityRecordSets(java.lang.String entityName) throws AppConnException, ApptrieveException
Gets the names of the recordsets for an entity in the Host Integrator model.
Reasons for failure include:
entityName
- java.lang.String - Name of the entity in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursgetModelEntities()
FieldMetaData getFieldMetaData(java.lang.String entityName, java.lang.String recordSetName, java.lang.String fieldName) throws AppConnException, ApptrieveException
Gets metadata associated with a recordset field.
entityName
- java.lang.String - Name of the entity in the Host Integrator modelrecordSetName
- java.lang.String - Name of the recordset of the entity in the Host Integrator modelfieldName
- java.lang.String - Name of the field of the recordset in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursjava.util.List getFieldLocations(java.util.List fieldNames) throws ApptrieveException
Gets a collection of ElementLocation objects for fields of the current record in the current recordset of the current entity. If fieldNames is null, getFieldLocations will return ElementLocation objects for all fields of the current record in the current recordset.
Field objects are always considered to be "linear". The ElementLocation object regionType will always be returned as REGION_TYPE_LINEAR.
This method is guaranteed to work correctly only when a record in the recordset is selected. If no record is selected:
fieldNames
- java.util.List - List of field names to
use in getting locationsApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionjava.lang.String getHomeEntityName()
java.util.List getModelEntities() throws ApptrieveException
Reasons for failure include:
ApptrieveException
- - if a Host Integrator server error occursgetCurrentEntity()
java.util.List getModelVariableNames() throws ApptrieveException
Gets the names of all model variables in the Host Integrator model.
Reasons for failure include:
ApptrieveException
- - if a Host Integrator server error occursgetModelVariables()
,
setModelVariables(java.util.Map)
java.util.Map getModelVariables() throws ApptrieveException
Gets the values of model variables in the Host Integrator model.
Reasons for failure include:
ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionsetModelVariables(java.util.Map)
,
getModelVariableNames()
OperationMetaData getOperationMetaData(java.lang.String entityName, java.lang.String operationName) throws AppConnException, ApptrieveException
Gets metadata associated with an operation.
entityName
- java.lang.String - Name of the entity in the Host Integrator modeloperationName
- java.lang.String - Name of the attribute of the entity in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursjava.util.List getPatternLocations(java.util.List patternNames) throws ApptrieveException
Gets a collection of ElementLocation objects for patterns of the current entity. If patternNames is null, getPatternLocations will return ElementLocation objects for all patterns of the entity.
patternNames
- java.util.List - List of pattern names to
use in getting locationsApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionRecordSetMetaData getRecordSetMetaData(java.lang.String entityName, java.lang.String recordSetName) throws AppConnException, ApptrieveException
Gets metadata associated with a recordset.
entityName
- java.lang.String - Name of the entity in the Host Integrator modelrecordSetName
- java.lang.String - Name of the recordset of the entity in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursjava.util.List getRecordSetLocations(java.util.List recordSetNames) throws ApptrieveException
Gets a collection of ElementLocation objects for recordSets of the current entity. If recordSetNames is null, getRecordSetLocations will return ElementLocation objects for all recordSets of the entity.
recordSetNames
- java.util.List - List of recordset names to
use in getting locationsApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionVariableMetaData getVariableMetaData(java.lang.String variableName) throws AppConnException, ApptrieveException
Gets metadata associated with a variable.
variableName
- java.lang.String - Name of a variable in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursvoid insertRecord(java.util.Map record) throws AppConnException, ApptrieveException
Performs the insert operation for the current recordset.
record
- java.util.Map - A map containing
name-value pairs for the record elements to insertAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionvoid insertRecords(java.util.List records) throws AppConnException, ApptrieveException
Performs the insert operation for the current recordset multiple times.
This method sends the complete list of records to insert to the server at one time, making insertion of multiple records more efficient than the insertRecord method.records
- - a List of java.util.Map objects, one for record to
insert into the entity. Each map object contains a set of name-value pairs
for the record elementsAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectioninsertRecord(java.util.Map)
void moveCurrentRecordIndex(int movement) throws ApptrieveException
Moves the current record index to a new position in the current recordset.
The movementCode can be one of the following AppConnModel fields:
movement
- int - The type of movement to performApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionAppConnModelRecord nextRecord(java.lang.String filterExpression) throws ApptrieveException
AppConnModel
for filter expression syntax.
Searching starts with the record following the current record. If the current record is before the first record in the recordset, searching starts with the first record.
filterExpression
- java.lang.String - An expression that qualifies the record
to find. (null matches any record)ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionvoid performEntityOperation(java.lang.String operationName) throws AppConnException, ApptrieveException
Performs an operation on the current entity.
Reasons for failure include:
operationName
- java.lang.String - The operation nameAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionsetCurrentEntity(java.lang.String)
,
getCurrentEntity()
,
getEntityOperations(java.lang.String)
void selectCurrentRecord() throws ApptrieveException
Performs the selection operation for the current recordset.
ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionnextRecord(java.lang.String)
,
setCurrentRecordIndex(int)
,
selectRecordByFilter(java.lang.String)
,
selectRecordByIndex(int)
boolean selectRecordByFilter(java.lang.String filterExpression) throws ApptrieveException
Finds a record in the current recordset using a filter
expression and perform its selection operation.
See AppConnModel
for filter expression syntax.
Searching starts with the record following the current record. If the current record is before the first record in the recordset, searching starts with the first record.
filterExpression
- java.lang.String - An expression that qualifies the record
to find. (null matches any record)ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionselectCurrentRecord()
,
selectRecordByIndex(int)
boolean selectRecordByIndex(int index) throws ApptrieveException
Performs its selection operation on a record in the current recordset. The record to select is selected by the provided index number.
index
- int - The index of the record to selectApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionselectCurrentRecord()
,
selectRecordByFilter(java.lang.String)
void setAttributes(java.util.Map attributes) throws ApptrieveException
The map does not need to contain all of the attributes for the entity, but should contain all of the required attributes for the entity.
attributes
- java.util.Map - A map containing attributes (name/value pairs)ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionsetAttributesDelayed(java.util.Map, java.lang.String)
,
getAttributes(java.util.List)
void setAttributesDelayed(java.util.Map attributes, java.lang.String entityName) throws AppConnException, ApptrieveException
Sets the attributes of an entity.
The map contains attributes (name/value pairs) that are to be set in the entity. The map does not need to contain all of the attributes for the entity, but should contain all of the required attributes for the entity. If the entity is not specified then the current entity is used.
attributes
- java.util.Map - A map containing attributes (name/value pairs)entityName
- java.lang.String - Name of the entity in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionsetCurrentEntity(java.lang.String)
,
getCurrentEntity()
,
fetchRecords(int, java.util.List, java.lang.String)
,
setAttributes(java.util.Map)
void setCurrentEntity(java.lang.String entityName) throws AppConnException, ApptrieveException
Sets the current entity.
The legacy application will traverse to the screen that corresponds to that entity.
Reasons for failure include:
entityName
- java.lang.String - Name of the entity in the Host Integrator modelAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectiongetCurrentEntity()
boolean setCurrentRecordIndex(int index) throws ApptrieveException
Changes the index number of the current record in the current recordset.
To force the current record to be the current host record, use
the AppConnModel field SyncToHost
, which has a value of -1, as the index parameter.
index
- int - The index of the record to make currentApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectiongetCurrentRecordIndex()
,
getCurrentRecord()
void setCurrentRecordSetByName(java.lang.String recordSetName) throws AppConnException, ApptrieveException
Sets the current recordset by name.
recordSetName
- java.lang.String - The name of the recordset to make currentAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectiongetCurrentRecordSetName()
void setModelVariables(java.util.Map variables) throws ApptrieveException
Sets the values of variables in the Host Integrator model.
Reasons for failure include:
variables
- java.util.Map - A collection of name/value pairs for the variablesApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectiongetModelVariables()
,
getModelVariableNames()
void updateCurrentRecord(java.util.Map record) throws AppConnException, ApptrieveException
Changes the values of the current record in the current recordset.
record
- java.util.Map - A map containing
name-value pairs for the record elements to changeAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionupdateRecordByFilter(java.util.Map, java.lang.String)
,
updateRecordByIndex(java.util.Map, int)
,
updateRecords(java.util.Map, java.lang.String)
boolean updateRecordByFilter(java.util.Map record, java.lang.String filterExpression) throws AppConnException, ApptrieveException
Changes the values of a record in the current recordset. The
record to change is the first one after the current record
that satisfies the filter expression.
See AppConnModel
for filter expression syntax.
record
- java.util.Map - A map containing
name-value pairs for the record elements to changefilterExpression
- java.lang.String - An expression that qualifies the
record to update. (null matches any record)AppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionupdateCurrentRecord(java.util.Map)
,
updateRecordByIndex(java.util.Map, int)
,
updateRecords(java.util.Map, java.lang.String)
boolean updateRecordByIndex(java.util.Map record, int index) throws AppConnException, ApptrieveException
Changes the values of a record in the current recordset. The record to change is selected by the provided index number.
record
- java.util.Map - A map containing
name-value pairs for the record elements to changeindex
- int - The index of the record to updateAppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionupdateCurrentRecord(java.util.Map)
,
updateRecordByFilter(java.util.Map, java.lang.String)
,
updateRecords(java.util.Map, java.lang.String)
int updateRecords(java.util.Map record, java.lang.String filterExpression) throws AppConnException, ApptrieveException
Changes the values of records in the current recordset.
The records to change those after the current record
that satisfy the filter expression. All same set of changes are applied to
all records that satisfy the filterExpression.
See AppConnModel
for filter expression syntax.
To apply changes to all records in a recordset that match the filter, the current record must be before the first record of the recordset. This is the case upon navigating to the model entity that contains the recordset. If other methods have be executed that change the current record index, reposition to before the first record using setCurrentRecordIndex(), moveCurrentRecordIndex() or by navigating away from the current entity and then back again.
record
- java.util.Map - A map containing
name-value pairs for the record elements to changefilterExpression
- java.lang.String - An expression that qualifies the
records to update. (null matches all records)AppConnException
- - if there is a parameter errorApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionupdateCurrentRecord(java.util.Map)
,
updateRecordByFilter(java.util.Map, java.lang.String)
,
updateRecordByIndex(java.util.Map, int)
void waitForEntityChange(java.lang.String entityName, int timeout) throws ApptrieveException
Waits for the recognition of a new entity that is not 'entityName'.
If entityName is null or empty, the method returns upon recognition of any new entity. Exception occurs if timeout period elapses before the Host Integrator Server recognizes a new entity.
entityName
- java.lang.String - the name of the entity that cannot
satisfy the entity change condition, typically the entity
that was current when the method is called.timeout
- int - the timeout period in secondsApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionAppConnTerm.performAidKey(int)
void waitForCondition(int timeout, java.lang.String expression, java.lang.String entityName) throws ApptrieveException
Waits for an expression to become true for an entity on the Host Integrator server.
If the expression is empty or null, this method waits until the Host Integrator server has recognized the entity specified in the entityName parameter. If the entityName parameter is empty or null, the method waits until the expression is true for the current entity. An exception occurs if timeout period elapses before the expression becomes true.
timeout
- int - the timeout period in secondsexpression
- java.lang.String - the expression to wait forentityName
- java.lang.String - the name of the entity to use as
the context for the expression.ApptrieveException
- - if a Host Integrator server error occursMetaDataOnlyException
- - if this is a metadata-only connectionAppConnTerm.performAidKey(int)
java.lang.String processString(java.lang.String inStr) throws ApptrieveException
Calls the ProcessString event handler on the server.
inStr
- - String input to the ProcessString eventApptrieveException
- - if a Host Integrator server error occurs