org.apache.jackrabbit.spi.commons.logging
Class BatchLogger

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.logging.AbstractLogger
      extended by org.apache.jackrabbit.spi.commons.logging.BatchLogger
All Implemented Interfaces:
Batch

public class BatchLogger
extends AbstractLogger
implements Batch

Log wrapper for a Batch.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
AbstractLogger.Callable, AbstractLogger.SafeCallable
 
Field Summary
 
Fields inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
writer
 
Constructor Summary
BatchLogger(Batch batch, LogWriter writer)
          Create a new instance for the given batch which uses writer for persisting log messages.
 
Method Summary
 void addNode(NodeId parentId, Name nodeName, Name nodetypeName, String uuid)
           
 void addProperty(NodeId parentId, Name propertyName, QValue value)
           
 void addProperty(NodeId parentId, Name propertyName, QValue[] values)
           
 Batch getBatch()
           
 void move(NodeId srcNodeId, NodeId destParentNodeId, Name destName)
           
 void remove(ItemId itemId)
           
 void reorderNodes(NodeId parentId, NodeId srcNodeId, NodeId beforeNodeId)
           
 void setMixins(NodeId nodeId, Name[] mixinNodeTypeNames)
           
 void setPrimaryType(NodeId nodeId, Name primaryNodeTypeName)
           
 void setValue(PropertyId propertyId, QValue value)
           
 void setValue(PropertyId propertyId, QValue[] values)
           
 
Methods inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
execute, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchLogger

public BatchLogger(Batch batch,
                   LogWriter writer)
Create a new instance for the given batch which uses writer for persisting log messages.

Parameters:
batch -
writer -
Method Detail

getBatch

public Batch getBatch()
Returns:
the wrapped Batch

addNode

public void addNode(NodeId parentId,
                    Name nodeName,
                    Name nodetypeName,
                    String uuid)
             throws RepositoryException
Specified by:
addNode in interface Batch
Throws:
RepositoryException

addProperty

public void addProperty(NodeId parentId,
                        Name propertyName,
                        QValue value)
                 throws RepositoryException
Specified by:
addProperty in interface Batch
Throws:
RepositoryException

addProperty

public void addProperty(NodeId parentId,
                        Name propertyName,
                        QValue[] values)
                 throws RepositoryException
Specified by:
addProperty in interface Batch
Throws:
RepositoryException

setValue

public void setValue(PropertyId propertyId,
                     QValue value)
              throws RepositoryException
Specified by:
setValue in interface Batch
Throws:
RepositoryException

setValue

public void setValue(PropertyId propertyId,
                     QValue[] values)
              throws RepositoryException
Specified by:
setValue in interface Batch
Throws:
RepositoryException

remove

public void remove(ItemId itemId)
            throws RepositoryException
Specified by:
remove in interface Batch
Throws:
RepositoryException

reorderNodes

public void reorderNodes(NodeId parentId,
                         NodeId srcNodeId,
                         NodeId beforeNodeId)
                  throws RepositoryException
Specified by:
reorderNodes in interface Batch
Throws:
RepositoryException

setMixins

public void setMixins(NodeId nodeId,
                      Name[] mixinNodeTypeNames)
               throws RepositoryException
Specified by:
setMixins in interface Batch
Throws:
RepositoryException

setPrimaryType

public void setPrimaryType(NodeId nodeId,
                           Name primaryNodeTypeName)
                    throws RepositoryException
Specified by:
setPrimaryType in interface Batch
Throws:
RepositoryException

move

public void move(NodeId srcNodeId,
                 NodeId destParentNodeId,
                 Name destName)
          throws RepositoryException
Specified by:
move in interface Batch
Throws:
RepositoryException


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.