fedora.server.storage.lowlevel
Class DBPathRegistry

java.lang.Object
  extended by fedora.server.storage.lowlevel.PathRegistry
      extended by fedora.server.storage.lowlevel.DBPathRegistry

public class DBPathRegistry
extends PathRegistry

Version:
$Id: DBPathRegistry.java 5218 2006-11-20 05:10:11Z cwilper $
Author:
wdn5e@virginia.edu

Field Summary
 
Fields inherited from class fedora.server.storage.lowlevel.PathRegistry
AUDIT_FILES, ERROR_REPORT, FULL_REPORT, NO_REPORT, REBUILD, registryName, REPORT_FILES, storeBases
 
Constructor Summary
DBPathRegistry(java.util.Map configuration)
           
 
Method Summary
 void auditFiles()
           
 void executeSql(java.lang.String sql)
           
 java.lang.String get(java.lang.String pid)
           
protected  java.util.Enumeration keys()
           
 void put(java.lang.String pid, java.lang.String path)
           
 void rebuild()
           
 void remove(java.lang.String pid)
           
 
Methods inherited from class fedora.server.storage.lowlevel.PathRegistry
auditRegistry, getRegistryName, stringNull, traverseFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBPathRegistry

public DBPathRegistry(java.util.Map configuration)
Method Detail

get

public java.lang.String get(java.lang.String pid)
                     throws ObjectNotInLowlevelStorageException,
                            LowlevelStorageInconsistencyException,
                            LowlevelStorageException
Specified by:
get in class PathRegistry
Throws:
ObjectNotInLowlevelStorageException
LowlevelStorageInconsistencyException
LowlevelStorageException

executeSql

public void executeSql(java.lang.String sql)
                throws ObjectNotInLowlevelStorageException,
                       LowlevelStorageInconsistencyException,
                       LowlevelStorageException
Throws:
ObjectNotInLowlevelStorageException
LowlevelStorageInconsistencyException
LowlevelStorageException

put

public void put(java.lang.String pid,
                java.lang.String path)
         throws ObjectNotInLowlevelStorageException,
                LowlevelStorageInconsistencyException,
                LowlevelStorageException
Specified by:
put in class PathRegistry
Throws:
ObjectNotInLowlevelStorageException
LowlevelStorageInconsistencyException
LowlevelStorageException

remove

public void remove(java.lang.String pid)
            throws ObjectNotInLowlevelStorageException,
                   LowlevelStorageInconsistencyException,
                   LowlevelStorageException
Specified by:
remove in class PathRegistry
Throws:
ObjectNotInLowlevelStorageException
LowlevelStorageInconsistencyException
LowlevelStorageException

rebuild

public void rebuild()
             throws LowlevelStorageException
Specified by:
rebuild in class PathRegistry
Throws:
LowlevelStorageException

auditFiles

public void auditFiles()
                throws LowlevelStorageException
Specified by:
auditFiles in class PathRegistry
Throws:
LowlevelStorageException

keys

protected java.util.Enumeration keys()
                              throws LowlevelStorageException,
                                     LowlevelStorageInconsistencyException
Specified by:
keys in class PathRegistry
Throws:
LowlevelStorageException
LowlevelStorageInconsistencyException