org.fcrepo.server.storage.lowlevel
Class DBPathRegistry

java.lang.Object
  extended by org.fcrepo.server.storage.lowlevel.PathRegistry
      extended by org.fcrepo.server.storage.lowlevel.DBPathRegistry

public class DBPathRegistry
extends PathRegistry

Author:
Bill Niebel

Field Summary
 
Fields inherited from class org.fcrepo.server.storage.lowlevel.PathRegistry
AUDIT_FILES, ERROR_REPORT, FULL_REPORT, NO_REPORT, REBUILD, registryName, REPORT_FILES, storeBases
 
Constructor Summary
DBPathRegistry(Map<String,?> configuration)
           
 
Method Summary
 void auditFiles()
           
 void executeSql(String sql)
          Deprecated. 
 String get(String pid)
           
protected  Enumeration<String> keys()
           
 void put(String pid, String path)
           
 void rebuild()
           
 void remove(String pid)
           
 
Methods inherited from class org.fcrepo.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(Map<String,?> configuration)
Method Detail

get

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

executeSql

@Deprecated
public void executeSql(String sql)
                throws ObjectNotInLowlevelStorageException,
                       LowlevelStorageInconsistencyException,
                       LowlevelStorageException
Deprecated. 

Throws:
ObjectNotInLowlevelStorageException
LowlevelStorageInconsistencyException
LowlevelStorageException

put

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

remove

public void remove(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 Enumeration<String> keys()
                            throws LowlevelStorageException,
                                   LowlevelStorageInconsistencyException
Specified by:
keys in class PathRegistry
Throws:
LowlevelStorageException
LowlevelStorageInconsistencyException


Copyright © 2012 DuraSpace. All Rights Reserved.