|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.beasys.commerce.ebusiness.util.DefaultScrollableModel
@Deprecated public class DefaultScrollableModel
This is the default implementation of the
scrollable model interface. It should serve most
requirements for a scrollable model.
It keeps all the primary keys used to get any
value objects and caches a number of pages of
value objects.
It uses a PageRetriever each time there is a page
fault (i.e. a requested page is not cached in)
to get the associated value objects.
ScrollableModel,
ScrollableModelPageRetriever,
Serialized Form| Field Summary | |
|---|---|
protected int |
cacheSize
Deprecated See BEA Commerce product offering |
protected int |
count
Deprecated See BEA Commerce product offering |
protected int |
currentFirstIndex
Deprecated See BEA Commerce product offering |
protected int |
currentLastIndex
Deprecated See BEA Commerce product offering |
protected Object[] |
currentPrimaryKeys
Deprecated See BEA Commerce product offering |
protected Object[] |
currentValues
Deprecated See BEA Commerce product offering |
static int |
DEFAULT_NB_PAGES
Deprecated See BEA Commerce product offering |
static int |
DEFAULT_PAGE_SIZE
Deprecated See BEA Commerce product offering |
protected int |
nbPages
Deprecated See BEA Commerce product offering |
protected ScrollableModelPageRetriever |
pageRetriever
Deprecated See BEA Commerce product offering |
protected int |
pageSize
Deprecated See BEA Commerce product offering |
protected Object[] |
primaryKeys
Deprecated See BEA Commerce product offering |
protected Class |
valueClass
Deprecated See BEA Commerce product offering |
| Constructor Summary | |
|---|---|
DefaultScrollableModel(Object[] primaryKeys,
int nbPages,
int pageSize,
ScrollableModelPageRetriever pageRetriever)
Deprecated See BEA Commerce product offering |
|
DefaultScrollableModel(Object[] primaryKeys,
ScrollableModelPageRetriever pageRetriever)
Deprecated See BEA Commerce product offering |
|
| Method Summary | |
|---|---|
int |
getCount()
Deprecated See BEA Commerce product offering |
Class |
getModelClass()
Deprecated See BEA Commerce product offering |
int |
getNbPages()
Deprecated See BEA Commerce product offering |
Object[] |
getPage(int pageIndex)
Deprecated See BEA Commerce product offering |
int |
getPageSize()
Deprecated See BEA Commerce product offering |
Object |
getValueAt(int valueIndex)
Deprecated See BEA Commerce product offering |
void |
setValueAt(Serializable value,
int valueIndex)
Deprecated See BEA Commerce product offering |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PAGE_SIZE
public static final int DEFAULT_NB_PAGES
protected int count
protected Object[] primaryKeys
protected Class valueClass
protected Object[] currentValues
protected int currentFirstIndex
protected int currentLastIndex
protected int pageSize
protected int nbPages
protected int cacheSize
protected Object[] currentPrimaryKeys
protected ScrollableModelPageRetriever pageRetriever
| Constructor Detail |
|---|
public DefaultScrollableModel(Object[] primaryKeys,
int nbPages,
int pageSize,
ScrollableModelPageRetriever pageRetriever)
primaryKeys, - an array of pks over the managed objectsnbPages, - the number of pages in the cache (not overall!)pageSize, - the size of a pagepageRetriever - the page fault resolver
public DefaultScrollableModel(Object[] primaryKeys,
ScrollableModelPageRetriever pageRetriever)
primaryKeys, - an array of pks over the managed objectspageRetriever - the page fault resolver| Method Detail |
|---|
public int getCount()
getCount in interface ScrollableModelpublic int getNbPages()
getNbPages in interface ScrollableModelpublic int getPageSize()
getPageSize in interface ScrollableModelpublic Class getModelClass()
getModelClass in interface ScrollableModelpublic Object getValueAt(int valueIndex)
getValueAt in interface ScrollableModelvalueIndex, - the index for the value to retrieve
public Object[] getPage(int pageIndex)
getPage in interface ScrollableModelpageIndex, - the index in the list of pages
public void setValueAt(Serializable value,
int valueIndex)
setValueAt in interface ScrollableModelvalue, - the 'value object' at a location in the listvalueIndex, - the location of the value object in the list
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||