public abstract class StatefulResource extends Object implements Serializable
| Constructor and Description |
|---|
StatefulResource() |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getCreated() |
Calendar |
getLastUpdated() |
String |
getResourceID() |
abstract void |
onClose() |
abstract void |
onDestroy() |
abstract void |
onLoad() |
void |
setCreated(Calendar created) |
void |
setLastUpdated(Calendar lastUpdated) |
void |
setResourceID(String resourceID) |
String |
toJSON() |
String |
toJSON(Boolean pretty) |
String |
toXML() |
String |
toXML(Boolean pretty) |
public final String getResourceID()
public void setResourceID(String resourceID)
public Calendar getCreated()
public void setCreated(Calendar created)
public Calendar getLastUpdated()
public void setLastUpdated(Calendar lastUpdated)
public String toJSON()
public String toXML() throws JAXBException
JAXBExceptionpublic String toXML(Boolean pretty) throws JAXBException
JAXBExceptionpublic abstract void onLoad()
throws StatefulResourceException
StatefulResourceExceptionpublic abstract void onClose()
throws StatefulResourceException
StatefulResourceExceptionpublic abstract void onDestroy()
throws StatefulResourceException
StatefulResourceExceptionCopyright © 2014. All Rights Reserved.