com.wrq.apptrieve.appconn
Class AppConnModelRecord

java.lang.Object
  extended by com.wrq.apptrieve.appconn.AppConnRecord
      extended by com.wrq.apptrieve.appconn.AppConnModelRecord
All Implemented Interfaces:
java.io.Serializable

public class AppConnModelRecord
extends AppConnRecord

This class holds attribute values or a single row of recordset data.

See Also:
AppConnRecordSet, AppConnModel.getCurrentRecord(), AppConnModel.nextRecord(java.lang.String), AppConnModel.getAttributes(java.util.List), Serialized Form

Field Summary
 
Fields inherited from class com.wrq.apptrieve.appconn.AppConnRecord
doEngBundle, doLocBundle, elements, RECORD_TYPE_MODEL, RECORD_TYPE_TABLE, recordLocale, recordType
 
Constructor Summary
AppConnModelRecord()
          Constructor for internal use only.
 
Method Summary
 int getIndex()
          Gets the index number for this record.
 TerminalAttributes getTerminalAttributes(java.lang.String elementName)
          Gets the terminal attributes object for an element of this record.
 TerminalAttributes getTerminalAttributesByIndex(int elementIndex)
          Gets the terminal attributes object for an element of this record.
 
Methods inherited from class com.wrq.apptrieve.appconn.AppConnRecord
finalize, fromXMLString, get, getByIndex, getCount, getElementNames, getElements, getElementValues, getLocale, getRecordType, setLocale, toString, toXMLString, toXMLString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppConnModelRecord

public AppConnModelRecord()
Constructor for internal use only.

Method Detail

getIndex

public int getIndex()
Gets the index number for this record. This number is the index of the record in the host record set. The first record has an index of 1.

Returns:
int - the 1-based index number

getTerminalAttributes

public TerminalAttributes getTerminalAttributes(java.lang.String elementName)
Gets the terminal attributes object for an element of this record.

Parameters:
elementName - java.lang.String - the name of the element, either the attribute name or the field name
Returns:
TerminalAttributes - the terminal attributes object

getTerminalAttributesByIndex

public TerminalAttributes getTerminalAttributesByIndex(int elementIndex)
Gets the terminal attributes object for an element of this record. The first element in the record has an index of 0.

Parameters:
elementIndex - int - the 0-based index of an element in the record
Returns:
TerminalAttributes - the terminal attributes object