org.apache.jackrabbit.core.state.bdb
Class BerkeleyDBPersistenceManager

java.lang.Object
  extended byorg.apache.jackrabbit.core.state.AbstractPersistenceManager
      extended byorg.apache.jackrabbit.core.state.bdb.BerkeleyDBPersistenceManager
All Implemented Interfaces:
BLOBStore, PersistenceManager

public class BerkeleyDBPersistenceManager
extends AbstractPersistenceManager
implements BLOBStore


Field Summary
protected static String ENCODING
           
 
Constructor Summary
BerkeleyDBPersistenceManager()
           
 
Method Summary
 void close()
           
protected  void destroy(NodeReferences refs)
           
protected  void destroy(NodeState state)
           
protected  void destroy(PropertyState state)
           
 boolean exists(NodeId id)
           
 boolean exists(NodeReferencesId targetId)
           
 boolean exists(PropertyId id)
           
 FileSystemResource get(String blobId)
           
 void init(PMContext context)
           
 NodeState load(NodeId id)
           
 NodeReferences load(NodeReferencesId id)
           
 PropertyState load(PropertyId id)
           
 String put(PropertyId id, int index, InputStream in, long size)
           
 boolean remove(String blobId)
           
 void store(ChangeLog changeLog)
           
protected  void store(NodeReferences refs)
           
protected  void store(NodeState state)
           
protected  void store(PropertyState state)
           
 
Methods inherited from class org.apache.jackrabbit.core.state.AbstractPersistenceManager
createNew, createNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING

protected static final String ENCODING
See Also:
Constant Field Values
Constructor Detail

BerkeleyDBPersistenceManager

public BerkeleyDBPersistenceManager()
Method Detail

init

public void init(PMContext context)
          throws Exception
Specified by:
init in interface PersistenceManager
Throws:
Exception

close

public void close()
           throws Exception
Specified by:
close in interface PersistenceManager
Throws:
Exception

load

public NodeState load(NodeId id)
               throws NoSuchItemStateException,
                      ItemStateException
Specified by:
load in interface PersistenceManager
Throws:
NoSuchItemStateException
ItemStateException

load

public PropertyState load(PropertyId id)
                   throws NoSuchItemStateException,
                          ItemStateException
Specified by:
load in interface PersistenceManager
Throws:
NoSuchItemStateException
ItemStateException

load

public NodeReferences load(NodeReferencesId id)
                    throws NoSuchItemStateException,
                           ItemStateException
Specified by:
load in interface PersistenceManager
Throws:
NoSuchItemStateException
ItemStateException

exists

public boolean exists(NodeId id)
               throws ItemStateException
Specified by:
exists in interface PersistenceManager
Throws:
ItemStateException

exists

public boolean exists(PropertyId id)
               throws ItemStateException
Specified by:
exists in interface PersistenceManager
Throws:
ItemStateException

exists

public boolean exists(NodeReferencesId targetId)
               throws ItemStateException
Specified by:
exists in interface PersistenceManager
Throws:
ItemStateException

store

public void store(ChangeLog changeLog)
           throws ItemStateException
Specified by:
store in interface PersistenceManager
Throws:
ItemStateException

store

protected void store(NodeState state)
              throws ItemStateException
Throws:
ItemStateException

store

protected void store(PropertyState state)
              throws ItemStateException
Throws:
ItemStateException

store

protected void store(NodeReferences refs)
              throws ItemStateException
Throws:
ItemStateException

destroy

protected void destroy(NodeState state)
                throws ItemStateException
Throws:
ItemStateException

destroy

protected void destroy(PropertyState state)
                throws ItemStateException
Throws:
ItemStateException

destroy

protected void destroy(NodeReferences refs)
                throws ItemStateException
Throws:
ItemStateException

get

public FileSystemResource get(String blobId)
                       throws Exception
Specified by:
get in interface BLOBStore
Throws:
Exception

put

public String put(PropertyId id,
                  int index,
                  InputStream in,
                  long size)
           throws Exception
Specified by:
put in interface BLOBStore
Throws:
Exception

remove

public boolean remove(String blobId)
               throws Exception
Specified by:
remove in interface BLOBStore
Throws:
Exception


Copyright © 2005 The Apache Software Foundation. All Rights Reserved.