|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.datasource.Store
Provides storage and retrieval for DataTableData. Maps between bookmarks and row indexes.
Field Summary | |
protected Vector |
idxToBookmarkMap
|
protected Hashtable |
rowCache
|
Constructor Summary | |
Store()
|
Method Summary | |
void |
addRow(long bookmark,
Object row)
Add a row. |
void |
addRow(long bookmark,
Object row,
int ordinal)
Insert a row. |
void |
clear()
Clear all rows. |
long |
getBookmark(int ordinal)
Return the bookmark of the row at ordinal. |
int |
getIndex(long bookmark)
Get index. |
Object |
getRow(long bookmark)
Given a bookmark, return the row |
int |
getRowCount()
Return the number of rows in this store |
void |
removeRow(long bookmark)
Remove a row. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Vector idxToBookmarkMap
protected Hashtable rowCache
Constructor Detail |
public Store()
Method Detail |
public int getRowCount()
getRowCount
in interface StoreModel
public Object getRow(long bookmark)
getRow
in interface StoreModel
bookmark
- the long which uniquely identifies a row
public void addRow(long bookmark, Object row)
addRow
in interface StoreModel
public void addRow(long bookmark, Object row, int ordinal)
addRow
in interface StoreModel
public void removeRow(long bookmark)
removeRow
in interface StoreModel
bookmark
- the long bookmark of the row to be removedpublic int getIndex(long bookmark)
getIndex
in interface StoreModel
bookmark
- a long which uniquely identifies a row
public long getBookmark(int ordinal)
getBookmark
in interface StoreModel
public void clear()
clear
in interface StoreModel
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |