java.lang.Object
org.apache.wicket.model.util.GenericBaseModel<T>
- Type Parameters:
T
- type of model object
- All Implemented Interfaces:
Serializable
,IDetachable
,IModel<T>
,IObjectClassAwareModel<T>
,IClusterable
- Direct Known Subclasses:
CollectionModel
,ListModel
,MapModel
,SetModel
Base class for models that contain instances that do not appear to be serializable and cannot
thus use
Model
directly. Makes sure that the object set into the model can be
serialized.- Author:
- Timo Rantalaiho
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GenericBaseModel
public GenericBaseModel()
-
-
Method Details
-
getObject
Description copied from interface:IModel
Gets the model object. -
setObject
Set the model object. The contents must be serializable, as they are stored in the session -
createSerializableVersionOf
Creates a serializable version of the object. The object is usually a collection.- Parameters:
object
-- Returns:
- serializable version of
object
-
detach
Description copied from interface:IDetachable
Detaches model after use. This is generally used to null out transient references that can be re-attached later.- Specified by:
detach
in interfaceIDetachable
- Specified by:
detach
in interfaceIModel<T>
-
getObjectClass
Description copied from interface:IObjectClassAwareModel
Returns the class of model object- Specified by:
getObjectClass
in interfaceIObjectClassAwareModel<T>
- Returns:
- class of model object or null if the class couldn't be determined
-
toString
-
hashCode
-
equals
-