public abstract class StatefulResource extends GeneralResource implements Serializable
| Constructor and Description |
|---|
StatefulResource() |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getCreated() |
Calendar |
getLastUpdated() |
abstract void |
onClose() |
abstract void |
onDestroy() |
abstract void |
onLoad() |
void |
setCreated(Calendar created) |
void |
setLastUpdated(Calendar lastUpdated) |
String |
toJSON() |
String |
toJSON(Boolean pretty) |
String |
toXML() |
String |
toXML(Boolean pretty) |
getResourceID, setResourceIDpublic Calendar getCreated()
public void setCreated(Calendar created)
public Calendar getLastUpdated()
public void setLastUpdated(Calendar lastUpdated)
public String toJSON()
toJSON in class GeneralResourcepublic String toJSON(Boolean pretty)
toJSON in class GeneralResourcepublic String toXML() throws JAXBException
toXML in class GeneralResourceJAXBExceptionpublic String toXML(Boolean pretty) throws JAXBException
toXML in class GeneralResourceJAXBExceptionpublic abstract void onLoad()
throws StatefulResourceException
StatefulResourceExceptionpublic abstract void onClose()
throws StatefulResourceException
StatefulResourceExceptionpublic abstract void onDestroy()
throws StatefulResourceException
StatefulResourceExceptionCopyright © 2017. All Rights Reserved.