BO
- public class DataProvider<BO extends EntityWithSurrogateKey> extends Object implements org.apache.wicket.markup.repeater.data.IDataProvider<BO>
Constructor and Description |
---|
DataProvider(DaoForEntityWithSurrogateKey<BO> dao) |
Modifier and Type | Method and Description |
---|---|
void |
detach()
Drops references to the allocated data structures.
|
Iterator<BO> |
iterator(int first,
int count)
Returns an iterator over the sub-collection of the represented
data starting at the first-th entity and ending at the
(first+count)-th entity.
|
org.apache.wicket.model.IModel<BO> |
model(BO object)
Returns the given BO encapsulated into a lodable-detachable
model.
|
int |
size()
Returns the size of the represented collection.
|
public DataProvider(DaoForEntityWithSurrogateKey<BO> dao)
dao
- public void detach()
detach
in interface org.apache.wicket.model.IDetachable
public Iterator<BO> iterator(int first, int count)
iterator
in interface org.apache.wicket.markup.repeater.data.IDataProvider<BO extends EntityWithSurrogateKey>
first
- count
- public int size()
size
in interface org.apache.wicket.markup.repeater.data.IDataProvider<BO extends EntityWithSurrogateKey>
public org.apache.wicket.model.IModel<BO> model(BO object)
model
in interface org.apache.wicket.markup.repeater.data.IDataProvider<BO extends EntityWithSurrogateKey>
object
- Copyright © 2013. All Rights Reserved.