|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The DataProvider interface for objects which provides the data and the transaction.
| Method Summary | |
void |
filterData(java.lang.String filterCriteria)
Fiters the data with specified criteria |
int |
find(java.lang.String condition,
int startIndex,
int endIndex)
Finds the record which satisfied the condition between startIndex and end Index, and return the index of the searched record |
int |
findNext()
Returns the index of the record which satisfied the condition after invoking the find() |
java.util.Vector |
firstRecord()
Moves to the first record and returns it |
int |
getColumnCount()
Returns the total number of columns |
int |
getColumnIndex(java.lang.String colName)
Returns the index of the column colName |
java.util.Vector |
getColumnNames()
Returns the column names |
java.lang.String[] |
getColumnsArray()
Returns the column names |
int |
getColumnType(int colIndex)
Returns the type of the column at the specified index |
Computable |
getComputable()
Gets the Computable object which is used for filtering, searching and other computation operation |
int |
getCurrentIndex()
Returns the current index |
java.util.Vector |
getCurrentRecord()
Returns the current record |
java.util.Vector |
getData()
Fetches the data |
java.util.Vector |
getDataAt(int position)
Returns the record at the specified position |
java.lang.Object |
getDataAt(int rowPosition,
int columnPosition)
Returns the data value at the specified rowPosition and sepecified columnPosition |
int |
getDataCount()
Returns the total number of records |
int |
getFetchSize()
Gets the total number of records that can be fetched by getData() method call |
java.lang.String |
getFilterCriteria()
Gets the criteria for filtering the data |
int |
getSkippedRows()
Gets the total number of rows to be skipped while retrieving |
java.util.Vector |
getSortColumns()
Returns the two dimensional vector containing the sort column name and its sorting order as each element |
java.lang.String |
getSortCriteria()
Gets the criteria for sorting the data |
boolean |
isAppendDataOnFetchNext()
Returns whether the next fetched data is appended or replaced to the existing data |
boolean |
isFetchNext()
Determines whether fetching the next rows or not |
boolean |
isFilterState()
Gets the filtering enability |
java.util.Vector |
lastRecord()
Moves to the last record and returns it |
boolean |
nextData()
If more data can be fetched, it fetches and return true, otherwise return false |
java.util.Vector |
nextRecord()
Moves to the next record and returns it |
java.util.Vector |
previousRecord()
Moves to the previous record and returns it |
void |
rankData(int groupIndex,
java.util.Vector groupBands)
Generate rank data based on given group information |
void |
refreshData()
Refreshes the fetched data. |
void |
retrieve()
Retrives the data |
java.util.Vector |
scrollToRow(int index)
Moves to the record at the specified index and returns it |
void |
setAppendDataOnFetchNext(boolean b)
Sets whether the next fetched data is appended or replaced to the existing data |
void |
setFetchSize(int size)
Sets the total number of records that can be fetched by getData() method call |
void |
setFilterCriteria(java.lang.String filter)
Sets the criteria for filtering the data, the criteria is any expression (arithmetical/database related), |
void |
setFilterState(boolean filterState)
Sets the filtering enability |
void |
setSkippedRows(int n)
Sets the total number of rows to be skipped while retrieving |
void |
setSortCriteria(java.lang.String sortCriteria)
Sets the criteria for sorting the data, the criteria includes the column names and the its sorting order, for example col1:true,col2:false,col3:true |
void |
sortData(int[] colIndex)
|
void |
sortData(int[] colIndex,
boolean[] ordering)
|
void |
sortData(int[] colIndex,
boolean[] ordering,
int startIndex,
int endIndex)
Sorts the data for specified columns at column indices with specified sorting order and range of the records |
void |
sortData(int[] colIndex,
int startIndex,
int endIndex)
|
void |
sortData(java.lang.String[] colName)
|
void |
sortData(java.lang.String[] colName,
boolean[] ordering)
|
void |
sortData(java.lang.String[] colName,
boolean[] ordering,
int startIndex,
int endIndex)
Sorts the data for specified columns with specified sorting order and range of the records |
void |
sortData(java.lang.String[] colName,
int startIndex,
int endIndex)
|
| Method Detail |
public java.util.Vector firstRecord()
public java.util.Vector lastRecord()
public java.util.Vector nextRecord()
public java.util.Vector previousRecord()
public java.util.Vector scrollToRow(int index)
index - the record index to be scrolled
public void refreshData()
public boolean nextData()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Vector getData()
public java.util.Vector getDataAt(int position)
public java.lang.Object getDataAt(int rowPosition,
int columnPosition)
rowPosition - the position of the rowcolumnPosition - the position of the column
public int getDataCount()
public int getColumnCount()
public java.util.Vector getColumnNames()
public java.lang.String[] getColumnsArray()
public int getColumnIndex(java.lang.String colName)
colName - the name of the column
public int getColumnType(int colIndex)
colIndex - the index of the column
public int getCurrentIndex()
public java.util.Vector getCurrentRecord()
public void retrieve()
throws java.sql.SQLException
java.sql.SQLExceptionpublic Computable getComputable()
public void setAppendDataOnFetchNext(boolean b)
b - true to append the next fetched data, false to replacepublic boolean isAppendDataOnFetchNext()
public void setSkippedRows(int n)
n - the number of rows to be skipped while retrievingpublic int getSkippedRows()
public void setFetchSize(int size)
size - the total number of records that can be fetchedpublic int getFetchSize()
public boolean isFetchNext()
public void setFilterState(boolean filterState)
filterState - true, if the filtering is enabledpublic boolean isFilterState()
public void setFilterCriteria(java.lang.String filter)
filter - the filter criteriapublic java.lang.String getFilterCriteria()
public void filterData(java.lang.String filterCriteria)
filterCriteria - the criteria to be processed to filter the data
public void rankData(int groupIndex,
java.util.Vector groupBands)
groupIndex - the group indexgroupBands - the group informationpublic void setSortCriteria(java.lang.String sortCriteria)
sortCriteria - the sort criteriapublic java.lang.String getSortCriteria()
public java.util.Vector getSortColumns()
public void sortData(int[] colIndex)
public void sortData(java.lang.String[] colName)
public void sortData(int[] colIndex,
boolean[] ordering)
public void sortData(java.lang.String[] colName,
boolean[] ordering)
public void sortData(int[] colIndex,
int startIndex,
int endIndex)
public void sortData(java.lang.String[] colName,
int startIndex,
int endIndex)
public void sortData(int[] colIndex,
boolean[] ordering,
int startIndex,
int endIndex)
colIndex - the indices of the columnsordering - the sorting criteria for related columns, default all truestartIndex - the index of the record from which the sorting is startedendIndex - the index of the record upto which the sorting is done
public void sortData(java.lang.String[] colName,
boolean[] ordering,
int startIndex,
int endIndex)
colName - the names of the columnsordering - the sorting criteria for related columns, default all truestartIndex - the index of the record from which the sorting is startedendIndex - the index of the record upto which the sorting is done
public int find(java.lang.String condition,
int startIndex,
int endIndex)
condition - the seraching criteriastartIndex - the index of the record from which the searching is startedendIndex - the index of the record upto which the searching is done
public int findNext()
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||