|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.naregi.rns.RNSDBCache
public class RNSDBCache
A caching system for the implementations of RNSDB.
| Field Summary |
|---|
| Fields inherited from interface org.naregi.rns.RNSDB |
|---|
TYPE_DERBY, TYPE_FILE, TYPE_MEMORY, TYPE_XML |
| Constructor Summary | |
|---|---|
RNSDBCache(RNSDB db,
boolean forceCachedList)
|
|
| Method Summary | |
|---|---|
void |
commit()
Makes all changes made since the previous commit/rollback permanent. |
void |
createAndSetNewID()
Create a new directory and Set the new ID to this object. |
void |
createAndSetNewRootID()
Create the new root directory and Set the Root ID to this object. |
void |
destroy()
Delete this directory permanently. |
ACL |
getACL()
Get an ACL information of this directory. |
RNSDirectoryProperties |
getDirectoryProperties()
Get properties of this directory. |
RNSEntryData |
getEntryData(java.lang.String name)
Get an entry data (EPR and Metadata). |
java.lang.String |
getID()
Get the setID()ed ID. |
java.util.List<java.lang.String> |
getList()
Get this directory list. |
long |
getListSize()
Get the list size of this directory. |
java.lang.Object |
getLockAndStartTransaction()
Get a lock object and Start the transaction. |
java.lang.String |
getRootID()
Get the root directory ID of this implementation. |
void |
insertEntryData(java.lang.String name,
RNSEntryData ent)
Create a new entry and Insert a new entry data. |
void |
removeACL(short type,
java.lang.String[] names)
Remove the ACL of this directory. |
void |
removeEntryData(java.lang.String name)
Remove an entry. |
void |
rename(java.lang.String from,
java.lang.String to)
Change an entry name. |
void |
replaceMetadata(java.lang.String name,
org.apache.axis.message.MessageElement[] xmls)
Replace a Metadata of the entry. |
void |
rollback()
Undoes all changes made in the current transaction. |
void |
setAccessTime(java.util.Calendar t)
Set a time at which the RNS directory is last accessed. |
void |
setACL(ACL acl)
Replace an ACL information to this directory. |
void |
setCreateTime(java.util.Calendar t)
Set a time at which the RNS directory is created. |
void |
setDirectoryProperties(RNSDirectoryProperties props)
Set properties to this directory. |
boolean |
setID(java.lang.String id)
Initialize this object and Search an existing entry ID from this database. |
void |
setModificationTime(java.util.Calendar t)
Set a time at which the RNS directory is last modified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RNSDBCache(RNSDB db,
boolean forceCachedList)
| Method Detail |
|---|
public void createAndSetNewRootID()
throws java.lang.Exception
RNSDB
createAndSetNewRootID in interface RNSDBjava.lang.Exception
public void createAndSetNewID()
throws java.lang.Exception
RNSDB
createAndSetNewID in interface RNSDBjava.lang.Exception
public boolean setID(java.lang.String id)
throws java.lang.Exception
RNSDB
setID in interface RNSDBjava.lang.Exceptionpublic java.lang.String getID()
RNSDB
getID in interface RNSDBpublic java.lang.String getRootID()
RNSDB
getRootID in interface RNSDBpublic java.lang.Object getLockAndStartTransaction()
RNSDB
getLockAndStartTransaction in interface RNSDB
public void commit()
throws java.lang.Exception
RNSDB
commit in interface RNSDBjava.lang.Exceptionpublic void rollback()
RNSDB
rollback in interface RNSDB
public RNSDirectoryProperties getDirectoryProperties()
throws java.lang.Exception
RNSDB
getDirectoryProperties in interface RNSDBjava.lang.Exception
public void setDirectoryProperties(RNSDirectoryProperties props)
throws java.lang.Exception
RNSDB
setDirectoryProperties in interface RNSDBjava.lang.Exception
public void setCreateTime(java.util.Calendar t)
throws java.lang.Exception
RNSDB
setCreateTime in interface RNSDBt - a time at which the RNS resource is created.
java.lang.Exception
public void setAccessTime(java.util.Calendar t)
throws java.lang.Exception
RNSDB
setAccessTime in interface RNSDBt - a time at which the RNS directory is last accessed
java.lang.Exception
public void setModificationTime(java.util.Calendar t)
throws java.lang.Exception
RNSDB
setModificationTime in interface RNSDBt - a time at which the RNS directory is last modified
java.lang.Exception
public java.util.List<java.lang.String> getList()
throws java.lang.Exception
RNSDB
getList in interface RNSDBjava.lang.Exception
public long getListSize()
throws java.lang.Exception
RNSDB
getListSize in interface RNSDBjava.lang.Exception
public RNSEntryData getEntryData(java.lang.String name)
throws java.lang.Exception
RNSDB
getEntryData in interface RNSDBname - an entry name
java.lang.Exception
public void insertEntryData(java.lang.String name,
RNSEntryData ent)
throws java.lang.Exception
RNSDB
insertEntryData in interface RNSDBname - an entry nameent - the entry data (should not be null)
java.lang.Exception
public void rename(java.lang.String from,
java.lang.String to)
throws java.lang.Exception
RNSDB
rename in interface RNSDBfrom - old nameto - new name
java.lang.Exception
public void replaceMetadata(java.lang.String name,
org.apache.axis.message.MessageElement[] xmls)
throws java.lang.Exception
RNSDB
replaceMetadata in interface RNSDBname - an entry name.xmls - Metadata
java.lang.Exception
public void removeEntryData(java.lang.String name)
throws java.lang.Exception
RNSDB
removeEntryData in interface RNSDBname - a name to be removed.
java.lang.Exception
public void destroy()
throws java.lang.Exception
RNSDB
destroy in interface RNSDBjava.lang.Exception
public ACL getACL()
throws java.lang.Exception
RNSDB
getACL in interface RNSDBjava.lang.Exception
public void setACL(ACL acl)
throws java.lang.Exception
RNSDB
setACL in interface RNSDBacl - ACL
java.lang.Exception
public void removeACL(short type,
java.lang.String[] names)
throws java.lang.Exception
RNSDB
removeACL in interface RNSDBtype - ACL type (see ACL)names - if names is null, the entries of type are removed.
java.lang.Exception - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||