com.crystaldecisions.sdk.occa.report.data
Class Record

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by com.crystaldecisions.sdk.occa.report.lib.ClonableList
                  extended by com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector
                      extended by com.crystaldecisions.sdk.occa.report.data.Record
All Implemented Interfaces:
IClone, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class Record
extends ReportSDKVector
implements IClone

This object defines a record from a database.

See Also:
Serialized Form

Constructor Summary
Record()
           
Record(Record src)
           
 
Method Summary
 void add(int index, java.lang.Object value)
          Inserts the specified element at the specified position in this collection.
 boolean add(java.lang.Object value)
          Appends the specified element to the end of this collection.
 void addValue(int index, java.lang.Object value)
           Adds a value to the record.
 java.lang.Object createMember(java.lang.String eleName, org.xml.sax.Attributes attrs, XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
           For internal use only.
 void endElement(java.lang.String eleName, java.util.Map objState)
           For internal use only.
 java.lang.Object getValue(int index)
           Returns a value from the record.
 void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
           For internal use only.
 void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt)
           For internal use only.
 void save(XMLWriter writer, XMLSerializationContext ctxt)
           For internal use only.
 void saveContents(XMLWriter writer, XMLSerializationContext ctxt)
           For internal use only.
 void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
           For internal use only.
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector
addElement, addNullElement, elementAt, insertElementAt, removeAllElements
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ClonableList
clone, copyTo, copyTo, findIndexOf, hasContent
 
Methods inherited from class java.util.ArrayList
addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Record

public Record(Record src)

Record

public Record()
Method Detail

addValue

public void addValue(int index,
                     java.lang.Object value)

Adds a value to the record.

NOTE: It is not recommended that you use this method to add a value to a record that has been returned from or is managed by the RowsetController. Doing so may lead to erroneous results on a future data fetch. For more information on how data is filtered, grouped, and sorted when it is retrieved from the database, see "Navigating grouped data through the Totaller" in the Report Application Server Java SDK Guide which can be accessed through the "Reference Guide" link on the Overview page.

Parameters:
index - The index where the value should be added.
value - The value you want to add.

add

public boolean add(java.lang.Object value)
Description copied from class: ReportSDKVector
Appends the specified element to the end of this collection.

Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.List
Overrides:
add in class ReportSDKVector
Parameters:
value - element to be added into the collection.
Returns:
true if this collection changed as a result of the call.

add

public void add(int index,
                java.lang.Object value)
Description copied from class: ReportSDKVector
Inserts the specified element at the specified position in this collection. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Specified by:
add in interface java.util.List
Overrides:
add in class ReportSDKVector
Parameters:
index - index at which the specified element is to be inserted.
value - element to be inserted.

createMember

public java.lang.Object createMember(java.lang.String eleName,
                                     org.xml.sax.Attributes attrs,
                                     XMLSerializationContext ctxt,
                                     java.util.Map objState,
                                     boolean[] bLoaded)

For internal use only.

Overrides:
createMember in class ClonableList

endElement

public void endElement(java.lang.String eleName,
                       java.util.Map objState)

For internal use only.

Overrides:
endElement in class ClonableList

getValue

public java.lang.Object getValue(int index)

Returns a value from the record.

Parameters:
index - The index of the desired record.
Returns:
The Object at the specified index.

readElement

public void readElement(java.lang.String eleName,
                        java.lang.String sVal,
                        org.xml.sax.Attributes attrs,
                        java.util.Map objState)

For internal use only.

Overrides:
readElement in class ClonableList

save

public void save(XMLWriter writer,
                 XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Overrides:
save in class ClonableList
Throws:
java.io.IOException

save

public void save(XMLWriter writer,
                 java.lang.String sTag,
                 XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Overrides:
save in class ClonableList
Throws:
java.io.IOException

saveContents

public void saveContents(XMLWriter writer,
                         XMLSerializationContext ctxt)
                  throws java.io.IOException

For internal use only.

Overrides:
saveContents in class ClonableList
Throws:
java.io.IOException

startElement

public void startElement(java.lang.String eleName,
                         java.util.Map objState,
                         org.xml.sax.Attributes attrs)

For internal use only.

Overrides:
startElement in class ClonableList