jet.connect
Interface Record

All Superinterfaces:
jet.util.DbRecordable

public interface Record
extends jet.util.DbRecordable

This interface provides the method which is used to access database record.


Method Summary
 DbValue getCell(DbColDesc desc)
          Gets a cell by the column description.
 DbValue getCell(int i)
          Gets a cell at the index.
 DbValue getCell(java.lang.String name)
          Gets a cell by the cell name.
 int getRecordIndex()
          Gets the index of the record.
 DbValue[] getValueArray()
          Gets all values that belong to the record by DbValue array.
 int indexOfCell(java.lang.String columnName)
           
 void refresh(boolean bWithoutGroup)
          Refreshes data in this record accoring to the data in the buffer.
 void refresh(DbColDesc desc)
          Refreshes data in this record accoring to the data in the buffer.
 void refresh(int colIndex)
          Refreshes data in this record accoring to the data in the buffer.
 void refresh(java.lang.String name)
          Refreshes data in this record accoring to the data in the buffer.
 void setRecordIndex(int index)
          Sets the index of the record.
 int size()
          Returns the number of record cells.
 void update()
          Updates data in the buffer according to the data in this record.
 void update(DbColDesc desc)
          Updates data in the buffer according to the data in this record.
 void update(int colIndex)
          Updates data in the buffer according to the data in this record.
 void update(java.lang.String name)
          Updates data in the buffer according to the data in this record.
 
Methods inherited from interface jet.util.DbRecordable
getValue, getValue
 

Method Detail

setRecordIndex

void setRecordIndex(int index)
Sets the index of the record.


getRecordIndex

int getRecordIndex()
Gets the index of the record.


getCell

DbValue getCell(int i)
Gets a cell at the index.


getCell

DbValue getCell(DbColDesc desc)
Gets a cell by the column description.


getValueArray

DbValue[] getValueArray()
Gets all values that belong to the record by DbValue array.


getCell

DbValue getCell(java.lang.String name)
Gets a cell by the cell name.


size

int size()
Returns the number of record cells.


indexOfCell

int indexOfCell(java.lang.String columnName)
Parameters:
columnName -
Returns:

refresh

void refresh(boolean bWithoutGroup)
Refreshes data in this record accoring to the data in the buffer.

Parameters:
bWithoutGroup - false if the group level column is to be refreshed. true if the group level column isn't to be refreshed.

refresh

void refresh(int colIndex)
Refreshes data in this record accoring to the data in the buffer.

Parameters:
colIndex - The data column index that will be refreshed.

refresh

void refresh(java.lang.String name)
Refreshes data in this record accoring to the data in the buffer.

Parameters:
name - The data column name that will be refreshed.

refresh

void refresh(DbColDesc desc)
Refreshes data in this record accoring to the data in the buffer.

Parameters:
desc - the data column description object that will be refreshed.

update

void update()
Updates data in the buffer according to the data in this record.


update

void update(int colIndex)
Updates data in the buffer according to the data in this record.

Parameters:
colIndex - The data column index that will be updated.

update

void update(java.lang.String name)
Updates data in the buffer according to the data in this record.

Parameters:
name - the data column name that will be updated.

update

void update(DbColDesc desc)
Updates data in the buffer according to the data in this record.

Parameters:
desc - The data column description object that will be updated.