T
- type of model objectpublic abstract class GenericBaseModel<T> extends Object implements IObjectClassAwareModel<T>
Model
directly. Makes sure that the object set into the model can be
serialized.Constructor and Description |
---|
GenericBaseModel() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createSerializableVersionOf(T object)
Creates a serializable version of the object.
|
void |
detach()
Detaches model after use.
|
boolean |
equals(Object obj) |
T |
getObject()
Gets the model object.
|
Class<T> |
getObjectClass()
Returns the class of model object
|
int |
hashCode() |
void |
setObject(T object)
Set the model object.
|
String |
toString() |
public T getObject()
IModel
getObject
in interface IModel<T>
IModel.getObject()
public void setObject(T object)
setObject
in interface IModel<T>
object
- the model objectIModel.setObject(Object)
protected abstract T createSerializableVersionOf(T object)
object
- object
public void detach()
IDetachable
detach
in interface IDetachable
IDetachable.detach()
public Class<T> getObjectClass()
IObjectClassAwareModel
getObjectClass
in interface IObjectClassAwareModel<T>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.