|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.model.LoadableDetachableModel<Contact>
wicket.contrib.phonebook.web.DetachableContactModel
public class DetachableContactModel
Detachable, read-only Contact model. Ensures that memory used to load the contact details is immediately freed rather than held in the session. Typically used by List-type pages, where multiple elements are loaded at a time.
| Constructor Summary | |
|---|---|
DetachableContactModel(Contact contact,
ContactDao dao)
Constructor |
|
| Method Summary | |
|---|---|
protected Contact |
load()
Loads the contact from the database |
| Methods inherited from class org.apache.wicket.model.LoadableDetachableModel |
|---|
detach, getObject, isAttached, onAttach, onDetach, setObject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DetachableContactModel(Contact contact,
ContactDao dao)
contact - dao - | Method Detail |
|---|
protected Contact load()
load in class org.apache.wicket.model.LoadableDetachableModel<Contact>wicket.model.LoadableDetachableModel#load()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||