org.apache.wicket.examples.spring.common.web
Class ContactDetachableModel

java.lang.Object
  extended by org.apache.wicket.model.LoadableDetachableModel
      extended by org.apache.wicket.examples.spring.common.web.ContactDetachableModel
All Implemented Interfaces:
java.io.Serializable, IClusterable, IDetachable, IModel
Direct Known Subclasses:
ProxyModel

public abstract class ContactDetachableModel
extends LoadableDetachableModel

Base class for contact detachable models. This class implements all necessary logic except retrieval of the dao object, this way we can isolate that logic in our example implementations.

Author:
Igor Vaynberg (ivaynberg)
See Also:
Serialized Form

Constructor Summary
ContactDetachableModel(Contact contact)
           
 
Method Summary
protected abstract  ContactDao getContactDao()
           
protected  Contact load()
          Loads and returns the (temporary) model object.
 
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

ContactDetachableModel

public ContactDetachableModel(Contact contact)
Parameters:
contact -
Method Detail

getContactDao

protected abstract ContactDao getContactDao()

load

protected Contact load()
Description copied from class: LoadableDetachableModel
Loads and returns the (temporary) model object.

Specified by:
load in class LoadableDetachableModel
Returns:
the (temporary) model object


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.