org.apache.jackrabbit.ocm.manager.atomictypeconverter.impl
Class TimestampTypeConverterImpl

java.lang.Object
  extended by org.apache.jackrabbit.ocm.manager.atomictypeconverter.impl.TimestampTypeConverterImpl
All Implemented Interfaces:
AtomicTypeConverter

public class TimestampTypeConverterImpl
extends Object
implements AtomicTypeConverter

Timestamp Type Converter

Author:
Christophe Lombart, Alexandru Popescu

Constructor Summary
TimestampTypeConverterImpl()
           
 
Method Summary
 Object getObject(Value value)
          Convert a jcr property value into an object
 Value getValue(ValueFactory valueFactory, Object propValue)
          Convert an object into a JCR value.
 String getXPathQueryValue(ValueFactory valueFactory, Object object)
          Get the string converted value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampTypeConverterImpl

public TimestampTypeConverterImpl()
Method Detail

getValue

public Value getValue(ValueFactory valueFactory,
                      Object propValue)
Description copied from interface: AtomicTypeConverter
Convert an object into a JCR value.

Specified by:
getValue in interface AtomicTypeConverter
Parameters:
valueFactory - The JCR ValueFactory
propValue - The object to convert
Returns:
the corresponding JCR value
See Also:
org.apache.jackrabbit.ocm.manager.atomictypeconverter.AtomicTypeConverter#getValue(java.lang.Object)

getObject

public Object getObject(Value value)
Description copied from interface: AtomicTypeConverter
Convert a jcr property value into an object

Specified by:
getObject in interface AtomicTypeConverter
Parameters:
value - The JCR property value
Returns:
the corresponding object
See Also:
AtomicTypeConverter.getObject(javax.jcr.Value)

getXPathQueryValue

public String getXPathQueryValue(ValueFactory valueFactory,
                                 Object object)
Description copied from interface: AtomicTypeConverter
Get the string converted value. This is mainly used to build xpath expressions

Specified by:
getXPathQueryValue in interface AtomicTypeConverter
Parameters:
valueFactory - The JCR ValueFactory
object - The object value
Returns:
The string converted value
See Also:
org.apache.jackrabbit.ocm.manager.atomictypeconverter.AtomicTypeConverter#getStringValue(java.lang.Object)


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