|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.ARQualifierHelper
public class ARQualifierHelper
The ARQualifierHelper
class is the optimized way to get QualifierInfo. All the previous
parseQualification methods defined in the Proxy class scan the field list for a token to get the appropriate field
object. With ARQualifierHelper
, the JNI parser can call the getLocalField() or getRemoteField()
functions and get the Field object for a token. Since ARQualifierHelper
maintains the list of fields
as a HashMap, it can return the Field object in log(n) times, where n is the number of fields. The
generateFieldMaps() function generates the field label and field ID maps in a way appropriate for the JNI parser. If
the end application already has these field maps, it can set these field maps using the setFieldLabelMap() and and
setFieldIdMap() calls. The following Java code snippet is an example of how to use ARQualifierHelper to return field
objects:
ARQualifierHelper qualHelper = new ARQualifierHelper(); qualHelper.generateFieldMaps(fieldList, vuiId, remoteFieldList); qual = qualHelper.parseQualification(getControlStructObject(), szQual);In this example, the generateFieldMaps() method generates a field mapping and the parseQualification() method parses a string and returns an object.
Constructor Summary | |
---|---|
ARQualifierHelper()
Constructor |
Method Summary | |
---|---|
void |
clear()
Release all variable object references. |
Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
boolean |
equals(Object obj)
|
void |
generateFieldMaps(List<Field> localFieldList,
int vuiId,
String historyTag,
List<Field> remoteFieldList)
Generates the field maps for qualification parser. |
String |
getEnumAliasFromValue(String fldid,
int enumValue)
|
String |
getEnumValueFromAlias(String fldid,
String alias)
|
Field |
getField(String fieldStr)
Get the Field for the given field name |
Field |
getLocalField(String token)
Returns the local field for token. |
HashMap<String,Field> |
getLocalFieldIdMap()
Returns the field Id HashMap. |
HashMap<String,Field> |
getLocalFieldLabelMap()
Returns the hashmap for the field label. |
Field |
getRemoteField(String token)
Returns the remote field for token. |
HashMap<String,Field> |
getRemoteFieldIdMap()
Returns the field ID HashMap. |
HashMap<String,Field> |
getRemoteFieldNameMap()
Returns the HashMap for the field name. |
int |
getVuiId()
Returns the vuiId. |
int |
hashCode()
|
QualifierInfo |
parseQualification(String localeString,
String queryString)
|
QualifierInfo |
parseQualification(String localeString,
String queryString,
String timezone)
Parses the qualification string and returns the QualifierInfo object |
void |
setLocalFieldIdMap(Map<String,Field> fldidmap)
Allows the field ID HashMap to be set. |
void |
setLocalFieldLabelMap(Map<String,Field> fldmap,
int vuiId)
Allows the fieldlabel HashMap to be set. |
void |
setRemoteFieldIdMap(Map<String,Field> fldidmap)
Allows the field ID HashMap to be set. |
void |
setRemoteFieldNameMap(Map<String,Field> fldmap)
Allows the fieldname HashMap to be set. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ARQualifierHelper()
Method Detail |
---|
public QualifierInfo parseQualification(String localeString, String queryString) throws ARException
ARException
public QualifierInfo parseQualification(String localeString, String queryString, String timezone) throws ARException
localeString
- queryString
- timezone
-
QualifierInfo
ARException
public void generateFieldMaps(List<Field> localFieldList, int vuiId, String historyTag, List<Field> remoteFieldList)
public int getVuiId()
public HashMap<String,Field> getLocalFieldLabelMap()
public void setLocalFieldLabelMap(Map<String,Field> fldmap, int vuiId)
public HashMap<String,Field> getRemoteFieldNameMap()
public void setRemoteFieldNameMap(Map<String,Field> fldmap)
public HashMap<String,Field> getLocalFieldIdMap()
public void setLocalFieldIdMap(Map<String,Field> fldidmap)
public HashMap<String,Field> getRemoteFieldIdMap()
public void setRemoteFieldIdMap(Map<String,Field> fldidmap)
public Field getLocalField(String token)
public Field getRemoteField(String token)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String getEnumValueFromAlias(String fldid, String alias)
public String getEnumAliasFromValue(String fldid, int enumValue)
public void clear()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public Field getField(String fieldStr)
fieldStr
-
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |