|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.remedy.arsys.api.ARQualifierHelper
The ARQualifierHelper
class is the optimized way to get QualifierInfo.
All the previous getQualifier 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.getQualifier(getControlStructObject(), szQual);In this example, the generateFieldMaps() method generates a field mapping and the getQualifier() method parses a string and returns an object.
Constructor Summary | |
ARQualifierHelper()
Constructor |
Method Summary | |
void |
clear()
Release all variable object references. |
java.lang.Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
protected void |
finalize()
Clears up all variable object references if it is called, even through there is no guarantee to be called. |
void |
generateFieldMaps(Field[] localFieldArray,
long vuiId,
java.lang.String historyTag,
Field[] remoteFieldArray)
Generates the field maps for qualification parser. |
Field |
getLocalField(java.lang.String token)
Returns the local field for token. |
java.util.HashMap |
getLocalFieldIdMap()
Returns the field Id HashMap. |
java.util.HashMap |
getLocalFieldLabelMap()
Returns the hashmap for the field label. |
QualifierInfo |
getQualifier(ARServerUser ctx,
java.lang.String queryString)
Parses string and returns vuiId object. |
Field |
getRemoteField(java.lang.String token)
Returns the remote field for token. |
java.util.HashMap |
getRemoteFieldIdMap()
Returns the field ID HashMap. |
java.util.HashMap |
getRemoteFieldNameMap()
Returns the HashMap for the field name. |
long |
getVuiId()
Returns the vuiId. |
void |
setLocalFieldIdMap(java.util.Map fldidmap)
Allows the field ID HashMap to be set. |
void |
setLocalFieldLabelMap(java.util.Map fldmap,
long vuiId)
Allows the fieldlabel HashMap to be set. |
void |
setRemoteFieldIdMap(java.util.Map fldidmap)
Allows the field ID HashMap to be set. |
void |
setRemoteFieldNameMap(java.util.Map fldmap)
Allows the fieldname HashMap to be set. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ARQualifierHelper()
Method Detail |
public QualifierInfo getQualifier(ARServerUser ctx, java.lang.String queryString) throws ARException
ARException
public void generateFieldMaps(Field[] localFieldArray, long vuiId, java.lang.String historyTag, Field[] remoteFieldArray)
public long getVuiId()
public java.util.HashMap getLocalFieldLabelMap()
public void setLocalFieldLabelMap(java.util.Map fldmap, long vuiId)
public java.util.HashMap getRemoteFieldNameMap()
public void setRemoteFieldNameMap(java.util.Map fldmap)
public java.util.HashMap getLocalFieldIdMap()
public void setLocalFieldIdMap(java.util.Map fldidmap)
public java.util.HashMap getRemoteFieldIdMap()
public void setRemoteFieldIdMap(java.util.Map fldidmap)
public Field getLocalField(java.lang.String token)
public Field getRemoteField(java.lang.String token)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void clear()
protected void finalize() throws java.lang.Throwable
finalize
method calls clear().
Client should call this in their finally block when done with this object.
java.lang.Throwable
|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |