Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Interface AsposeDataTable


public interface AsposeDataTable

Represts the data table.It's used for smart marker.


Method Summary
 void beforeFirst()
          Moves the cursor to the front of this object, just before the first row.
 java.lang.Object get(int columnIndex)
          Returns the value of the designated column in the current row.
 java.lang.Object get(java.lang.String columnName)
          Returns the value of the designated column in the current row.
 java.lang.String[] getColumns()
          Gets the column's name.
 boolean next()
          Moves the cursor down one row from its current position.
 int size()
          Gets the size of the records.
 

Method Detail

getColumns

java.lang.String[] getColumns()
Gets the column's name. If this method is implemented, the value of the columns should be getted by column index, else, the value should be getted by the column name.

Returns:
the columns' name

size

int size()
Gets the size of the records. If you do not insert or shift rows/columns in your smart markers, it could not be implemented;

Returns:
the size of the records.

beforeFirst

void beforeFirst()
Moves the cursor to the front of this object, just before the first row. If the smarts of the table is not in the same row, we will iterate the row for serveral times.


get

java.lang.Object get(int columnIndex)
Returns the value of the designated column in the current row.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
Returns:
the value of the designated column in the current row.
See Also:
get(String)

get

java.lang.Object get(java.lang.String columnName)
Returns the value of the designated column in the current row. The return object type must be following type:
java.lang.Boolean

java.lang.Double

java.lang.Integer

java.lang.Long
java.lang.Short

java.lang.String

java.uti.Date

java.uti.Calendar
If the return type is other type , an illegal argument exception will be thrown when setting this return object to cell.

Parameters:
columnName - the property name of the POJO.
Returns:
the value of the designated column in the current row.

next

boolean next()
Moves the cursor down one row from its current position.

Returns:
if the new current row is valid; false if there are no more rows