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 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
detach
in interface IModel<T>
public Class<T> getObjectClass()
IObjectClassAwareModel
getObjectClass
in interface IObjectClassAwareModel<T>
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.