|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.sql.SQLPeerDatum
DataRecord
@Deprecated public abstract class SQLPeerDatum
This is the base class from which all classes that reflect data from the SQL backing store are derived. It extends ManagedReferenceHolder for Project Darkstar support, and as a result, also implements Serializable.
Field Summary | |
---|---|
private static long |
serialVersionUID
Deprecated. The serialization UID for this class. |
Constructor Summary | |
---|---|
SQLPeerDatum()
Deprecated. |
Method Summary | ||
---|---|---|
void |
changed()
Deprecated. Indicate that some of the contents of this datum have changed, and that the database and/or object caches may need to be updated. |
|
int |
compareTo(Object o)
Deprecated. This is an overriding method. |
|
protected
|
findInCache()
Deprecated. Find the object in the cache, if possible. |
|
abstract void |
flush()
Deprecated. |
|
static SQLPeerDatum |
get(Class<? extends SQLPeerDatum> klass,
org.json.JSONObject object)
Deprecated. This method should return an SQLPeerDatum-derived object based upon its class and a serialized JSON form. |
|
private String |
getCacheGlobalID()
Deprecated. Get the globally-unique ID for this object, including the canonical class name, for the cache. |
|
protected abstract String |
getCacheUniqueID()
Deprecated. |
|
protected void |
saveInCache()
Deprecated. Store the local object into the cache |
|
void |
set(org.json.JSONObject jso)
Deprecated. |
|
protected abstract void |
set(ResultSet rs)
Deprecated. |
|
org.json.JSONObject |
toJSON()
Deprecated. This is the default SQLPeerDatum implementation of toJSON. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public SQLPeerDatum()
Method Detail |
---|
public static SQLPeerDatum get(Class<? extends SQLPeerDatum> klass, org.json.JSONObject object)
This method is unimplemented, and will throw an Error.
klass
- The class of object to be gottenobject
- The JSON form of that object's data
public void changed()
public int compareTo(Object o)
compareTo
in interface Comparable<Object>
Comparable.compareTo(java.lang.Object)
protected <T extends SQLPeerDatum> SQLPeerDatum findInCache() throws NotFoundException
T
- type
NotFoundException
- if it's not foundpublic abstract void flush()
private String getCacheGlobalID()
protected abstract String getCacheUniqueID()
protected void saveInCache()
public void set(org.json.JSONObject jso)
jso
- The JSON data to be used to set the value of this
objectprotected abstract void set(ResultSet rs) throws SQLException
rs
- The result of an SQL query, with the cursor already
pointed at the row describing this specific instance of
the object.
SQLException
- if the database fails somehowpublic org.json.JSONObject toJSON()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |