public class ContactDataProvider extends Object implements IDataProvider<Contact>
Constructor and Description |
---|
ContactDataProvider() |
Modifier and Type | Method and Description |
---|---|
protected ContactsDatabase |
getContactsDB() |
Iterator<Contact> |
iterator(long first,
long count)
retrieves contacts from database starting with index
first and ending with
first+count |
IModel<Contact> |
model(Contact object)
wraps retrieved contact pojo with a wicket model
|
long |
size()
returns total number of contacts in the database
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
detach
protected ContactsDatabase getContactsDB()
public Iterator<Contact> iterator(long first, long count)
first
and ending with
first+count
iterator
in interface IDataProvider<Contact>
first
- first row of datacount
- minimum number of elements to retrieveIDataProvider.iterator(long, long)
public long size()
size
in interface IDataProvider<Contact>
IDataProvider.size()
public IModel<Contact> model(Contact object)
model
in interface IDataProvider<Contact>
object
- the object that needs to be wrappedIDataProvider.model(java.lang.Object)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.