|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.rr.element.RRElement
public abstract class RRElement
| Constructor Summary | |
|---|---|
RRElement()
|
|
| Method Summary | |
|---|---|
void |
delete(boolean deleteDetails)
|
void |
delete(boolean deleteDetails,
RRContext.WritePolicy policy)
|
boolean |
exists()
Checks if an RRElement exists using the default RRContext.ReadPolicy. |
boolean |
exists(RRContext.ReadPolicy policy)
|
boolean |
load(boolean loadDetails)
Loads an IRRElement using the default RRContext.ReadPolicy. |
boolean |
load(boolean loadDetails,
RRContext.ReadPolicy policy)
Loads an IRRElement using a specific RRContext.ReadPolicy |
void |
store(boolean storeDetails)
Stores an IRRElement using the default RRContext.WritePolicy. |
void |
store(boolean storeDetails,
RRContext.WritePolicy policy)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gr.uoa.di.madgik.rr.element.IRRElement |
|---|
delete, exists, getID, getISContext, getItem, isEqual, load, setDirty, setID, store |
| Constructor Detail |
|---|
public RRElement()
| Method Detail |
|---|
public boolean exists()
throws ResourceRegistryException
RRElement exists using the default RRContext.ReadPolicy.
The read policy used is selected as follows:
exists in interface IRRElementResourceRegistryException
public boolean exists(RRContext.ReadPolicy policy)
throws ResourceRegistryException
exists in interface IRRElementResourceRegistryException
public boolean load(boolean loadDetails)
throws ResourceRegistryException
IRRElement using the default RRContext.ReadPolicy.
The read policy used is selected as follows:
1.The item is retrieved from the local datastore if RRContext.ReadPolicy.REFRESH_AHEAD is available.
2.If RRContext.ReadPolicy.READ_THROUGH is available, an attempt to load the item from the local datastore is made first
by using RRContext.ReadPolicy.READ_LOCAL.
If the latter fails, the item is retrieved from the remote datastore using RRContext.ReadPolicy.READ_THROUGH
load in interface IRRElementloadDetails - true if the entire object graph should be loaded, false otherwise
ResourceRegistryException - An error has occurred
public boolean load(boolean loadDetails,
RRContext.ReadPolicy policy)
throws ResourceRegistryException
IRRElement using a specific RRContext.ReadPolicy
load in interface IRRElementloadDetails - true if the entire object graph should be loaded, false otherwisepolicy - the RRContext.ReadPolicy to be used
ResourceRegistryException - An error has occurred
public void store(boolean storeDetails)
throws ResourceRegistryException
IRRElement using the default RRContext.WritePolicy.
The write policy used is selected as follows:
1.If RRContext.WritePolicy.WRITE_BEHIND is available, the object is stored to the local datastore.
2.If RRContext.WritePolicy.WRITE_THROUGH is available, the object is stored directly to the remote datastore, through the
local datastore.
Note that this method does not provide the option to use the local datastore explicitly as a cache instead of the remote one.
If such kind of optimization ism
store in interface IRRElementstoreDetails - true if the entire object graph should be stored, false otherwise
ResourceRegistryException - if no RRContext.WritePolicy could be found
public void store(boolean storeDetails,
RRContext.WritePolicy policy)
throws ResourceRegistryException
store in interface IRRElementResourceRegistryException
public void delete(boolean deleteDetails)
throws ResourceRegistryException
delete in interface IRRElementResourceRegistryException
public void delete(boolean deleteDetails,
RRContext.WritePolicy policy)
throws ResourceRegistryException
delete in interface IRRElementResourceRegistryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||