|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.repository.model.ImmutableObjectModel
org.eaglei.repository.model.WritableObjectModel
public abstract class WritableObjectModel
Outline of all *writable* "Object Model" classes, in which instances can be added and changed. Object Models are Java objects that represent an instance or layer -- i.e. a body of properties on an instance -- in the RDF database. They exist to cache the information and make it easier to manipulate in Java. This class describes a common interface to be implemented by all object models.
ImmutableObjectModel| Field Summary | |
|---|---|
protected boolean |
dirty
flag saying the Java instance has been modified and needs to be uploaded to RDF database |
| Constructor Summary | |
|---|---|
WritableObjectModel()
|
|
| Method Summary | |
|---|---|
void |
commit(javax.servlet.http.HttpServletRequest request)
commit - commit any changes made to this object (and any others). |
void |
decacheInstance()
Invalidate local cache after changes. |
protected void |
setDirty(boolean truth)
Change the "dirty" flag to reflect when local change was made. |
void |
update(javax.servlet.http.HttpServletRequest request)
Copy local changes to the RDF database. |
| Methods inherited from class org.eaglei.repository.model.ImmutableObjectModel |
|---|
find, findAll, getLabel, getURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean dirty
| Constructor Detail |
|---|
public WritableObjectModel()
| Method Detail |
|---|
public void update(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - the HTTP request object from the servlet
javax.servlet.ServletExceptionpublic void decacheInstance()
protected void setDirty(boolean truth)
truth - boolean value where true means there ARE local cahnges
public void commit(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
commit - commit any changes made to this object (and any others).
Note that this includes any other modifications made to RDF database.
request - a HttpServletRequest object.
javax.servlet.ServletException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||