com.sciapp.treetable.db
Interface DatabaseTreeTableModel
- All Superinterfaces:
- TreeModel, TreeTableModel
- All Known Implementing Classes:
- AbstractDatabaseTreeTableModel, DefaultDatabaseTreeTableModel
public interface DatabaseTreeTableModel
- extends TreeTableModel
DatabaseTreeTableModel defines methods for retrieving data from an underlying database
for use with a treetable model.
Method Summary |
List |
fetchChildren(Object parent,
int from,
int to)
This method retrieves the data from the database for the children of parent
in the range from - to . |
int |
fetchGroupCount(Object node)
This method retrieves the aggregate values for the children of parent
in the range from - to , and assigns them on the treeModel. |
List |
fetchGroups(Object parent,
int from,
int to)
This method retrieves the group values from the database for the children of parent
in the range from - to . |
fetchChildren
List fetchChildren(Object parent,
int from,
int to)
- This method retrieves the data from the database for the children of
parent
in the range from - to
. The following condition must be true:
from >= to. The List returned must contain the row elements starting at from
.
However, the List may contain less elements than those specified in the range.
- Parameters:
parent
- the parent nodefrom
- the index of the first childto
- the index of the last child
- Returns:
- the retrieved group values as a List.
fetchGroupCount
int fetchGroupCount(Object node)
- This method retrieves the aggregate values for the children of
parent
in the range from - to
, and assigns them on the treeModel.
- Parameters:
node
- the node to consider
- Returns:
- the group count for
node
fetchGroups
List fetchGroups(Object parent,
int from,
int to)
- This method retrieves the group values from the database for the children of
parent
in the range from - to
. The following condition must be true:
from >= to. The List returned must contain the row elements starting at from
.
However, the List may contain less elements than those specified in the range.
- Parameters:
parent
- the parent nodefrom
- the index of the first childto
- the index of the last child
- Returns:
- the retrieved childrend of
parent
as a List.