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

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

public class QValueFactoryLogger
extends AbstractLogger
implements QValueFactory

Log wrapper for a QValueFactory.


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
QValueFactoryLogger(QValueFactory qValueFactory, LogWriter writer)
          Create a new instance for the given qValueFactory which uses writer for persisting log messages.
 
Method Summary
 QValue[] computeAutoValues(QPropertyDefinition propertyDefinition)
           
 QValue create(boolean value)
           
 QValue create(byte[] value)
           
 QValue create(Calendar value)
           
 QValue create(double value)
           
 QValue create(File value)
           
 QValue create(InputStream value)
           
 QValue create(long value)
           
 QValue create(Name value)
           
 QValue create(Path value)
           
 QValue create(String value, int type)
           
 QValueFactory getQValueFactory()
           
 
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

QValueFactoryLogger

public QValueFactoryLogger(QValueFactory qValueFactory,
                           LogWriter writer)
Create a new instance for the given qValueFactory which uses writer for persisting log messages.

Parameters:
qValueFactory -
writer -
Method Detail

getQValueFactory

public QValueFactory getQValueFactory()
Returns:
the wrapped QValueFactory

create

public QValue create(String value,
                     int type)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException

create

public QValue create(Calendar value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException

create

public QValue create(double value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException

create

public QValue create(long value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException

create

public QValue create(boolean value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException

create

public QValue create(Name value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException

create

public QValue create(Path value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException

create

public QValue create(byte[] value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException

create

public QValue create(InputStream value)
              throws RepositoryException,
                     IOException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
IOException

create

public QValue create(File value)
              throws RepositoryException,
                     IOException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
IOException

computeAutoValues

public QValue[] computeAutoValues(QPropertyDefinition propertyDefinition)
                           throws RepositoryException
Specified by:
computeAutoValues in interface QValueFactory
Throws:
RepositoryException


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