|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.RecordBatch
public class RecordBatch
This object stores a batch of records from the database. To navigate the records in the record batch you
must use a cursor created using
com.crystaldecisions.sdk.occa.report.application.RowsetController#createCursor(IGroupPath groupPath, IRowsetMetaData metaData)
.
When possible, use the IRecordBatch
interface to manipulate this object.
Constructor Summary | |
---|---|
RecordBatch()
|
|
RecordBatch(IRecordBatch src)
|
Method Summary | |
---|---|
java.lang.Object |
clone(boolean deepClone)
|
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
|
ICursor |
createCursor(CursorType cursorType,
int reserved)
Creates a cursor for this record batch. |
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
com.crystaldecisions.xml.serialization.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. |
void |
ensureCapacity(int maxCapacity)
Pre-allocates memory for the collection's array. |
int |
getFirstRecordKey()
Returns the key of the first record in the record batch. |
Record |
getRecord(int index)
Returns the record at the specified index. |
int |
getRecordCount()
Returns the number of records in the record batch. |
boolean |
hasContent(java.lang.Object srcRecordBatch)
|
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
removeAll()
Removes all records from this record batch. |
void |
save(com.crystaldecisions.xml.serialization.XMLWriter writer,
com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
For internal use only. |
void |
save(com.crystaldecisions.xml.serialization.XMLWriter writer,
java.lang.String sTag,
com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(com.crystaldecisions.xml.serialization.XMLWriter writer,
com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
For internal use only. |
void |
setFirstRecordKey(int firstRecordKey)
Sets the key of the first record in the record batch. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordBatch(IRecordBatch src)
public RecordBatch()
Method Detail |
---|
public java.lang.Object clone(boolean deepClone)
public void copyTo(java.lang.Object destObject, boolean deepCopy)
public ICursor createCursor(CursorType cursorType, int reserved)
IRecordBatch
Creates a cursor for this record batch.
createCursor
in interface IRecordBatch
cursorType
- The type of cursor to be created.reserved
- Reserved for future use.
public java.lang.Object createMember(java.lang.String eleName, org.xml.sax.Attributes attrs, com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
For internal use only.
public void endElement(java.lang.String eleName, java.util.Map objState)
For internal use only.
public void ensureCapacity(int maxCapacity)
IRecordBatch
Pre-allocates memory for the collection's array. Use this method if you know exactly how many items
you will be adding after calling this method; doing so will improve performance. This method does
not affect the RecordCount property until items have been added. If you call this method with
maxCapacity = 10
, the array for the collection will be increased to accommodate 10
items, but if you have not added any items, getRecordCount
will still return
zero.
ensureCapacity
in interface IRecordBatch
maxCapacity
- The size of the array.public int getFirstRecordKey()
IRecordBatch
Returns the key of the first record in the record batch.
getFirstRecordKey
in interface IRecordBatch
int
that specifies the key of the first record in the record batch.public Record getRecord(int index)
Returns the record at the specified index.
index
- The index of the desired record.
Record
object at the specified index.public int getRecordCount()
IRecordBatch
Returns the number of records in the record batch. Use the RowsetController's getRowsetBatchSize
method to specify the number of records in each batch in the rowset.
getRecordCount
in interface IRecordBatch
int
that specifies the number of records in the record batch.public boolean hasContent(java.lang.Object srcRecordBatch)
public void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
For internal use only.
public void removeAll()
IRecordBatch
Removes all records from this record batch.
removeAll
in interface IRecordBatch
public void save(com.crystaldecisions.xml.serialization.XMLWriter writer, com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void save(com.crystaldecisions.xml.serialization.XMLWriter writer, java.lang.String sTag, com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void saveContents(com.crystaldecisions.xml.serialization.XMLWriter writer, com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void setFirstRecordKey(int firstRecordKey)
IRecordBatch
Sets the key of the first record in the record batch.
setFirstRecordKey
in interface IRecordBatch
firstRecordKey
- An int
that specifies the key of the first record in the record
batch.public void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
For internal use only.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |