|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.logging.AbstractLogger
org.apache.jackrabbit.spi.commons.logging.QValueFactoryLogger
public class QValueFactoryLogger
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)
Given the QPropertyDefinition of an autocreated
property, compute suitable values to be used in transient space until
the newly created node gets saved. |
QValue |
create(boolean value)
Create a new QValue with type PropertyType.BOOLEAN. |
QValue |
create(byte[] value)
Create a new QValue with type PropertyType.BINARY. |
QValue |
create(Calendar value)
Create a new QValue with type PropertyType.DATE. |
QValue |
create(double value)
Create a new QValue with type PropertyType.DOUBLE. |
QValue |
create(File value)
Create a new QValue with type PropertyType.BINARY. |
QValue |
create(InputStream value)
Creates a QValue that contains the given binary stream. |
QValue |
create(long value)
Create a new QValue with type PropertyType.LONG. |
QValue |
create(Name value)
Create a new QValue with type PropertyType.NAME. |
QValue |
create(Path value)
Create a new QValue with type PropertyType.PATH. |
QValue |
create(String value,
int type)
Create a new QValue using the given String representation
of the value and its 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 |
|---|
public QValueFactoryLogger(QValueFactory qValueFactory,
LogWriter writer)
qValueFactory which uses
writer for persisting log messages.
qValueFactory - writer - | Method Detail |
|---|
public QValueFactory getQValueFactory()
public QValue create(String value,
int type)
throws RepositoryException
QValueFactoryQValue using the given String representation
of the value and its type.
create in interface QValueFactoryvalue - String representation of the new QValue. Note,
that the given String must never be null.type - A valid type.
QValue.
ValueFormatException - If the given value cannot be
converted to the specified type.
RepositoryException - If another error occurs.QValue.getType()
public QValue create(Calendar value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.DATE.
create in interface QValueFactoryvalue - A non-null Calendar object acting as value
of the new QValue.
QValue.
RepositoryException
public QValue create(double value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.DOUBLE.
create in interface QValueFactoryvalue - A double containing the value
of the new QValue.
QValue.
RepositoryException
public QValue create(long value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.LONG.
create in interface QValueFactoryvalue - A long containing the value
of the new QValue.
QValue.
RepositoryException
public QValue create(boolean value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.BOOLEAN.
create in interface QValueFactoryvalue - A boolean containing the value
of the new QValue.
QValue.
RepositoryException
public QValue create(Name value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.NAME.
create in interface QValueFactoryvalue - A non-null Name.
QValue.
RepositoryException
public QValue create(Path value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.PATH.
create in interface QValueFactoryvalue - A non-null Path.
QValue.
RepositoryException
public QValue create(byte[] value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.BINARY.
create in interface QValueFactoryQValue.
RepositoryException
public QValue create(InputStream value)
throws RepositoryException,
IOException
QValueFactoryPropertyType.BINARY.
create in interface QValueFactoryvalue - binary stream
QValue.
RepositoryException - if the value could not be created
IOException - if the stream can not be consumed
public QValue create(File value)
throws RepositoryException,
IOException
QValueFactoryQValue with type PropertyType.BINARY.
create in interface QValueFactoryQValue.
IOException
RepositoryException
public QValue[] computeAutoValues(QPropertyDefinition propertyDefinition)
throws RepositoryException
QValueFactoryQPropertyDefinition of an autocreated
property, compute suitable values to be used in transient space until
the newly created node gets saved.
computeAutoValues in interface QValueFactorypropertyDefinition - definition of property for which values should be created
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||