org.apache.portals.graffito.jcr.persistence.atomictypeconverter
Interface AtomicTypeConverter

All Known Implementing Classes:
BinaryTypeConverterImpl, BooleanTypeConverterImpl, ByteArrayTypeConverterImpl, CalendarTypeConverterImpl, DoubleTypeConverterImpl, IntTypeConverterImpl, LongTypeConverterImpl, NullTypeConverterImpl, StringTypeConverterImpl, TimestampTypeConverterImpl, UtilDateTypeConverterImpl

public interface AtomicTypeConverter

AtomicTypeConverter interface. The Object converter used atomic type converters to map atomic fields to JCR Value objects. Amotic fields are primitive java types and their wrapper classes.

Author:
Christophe Lombart, Alexandru Popescu

Method Summary
 java.lang.Object getObject(javax.jcr.Value value)
          Convert a jcr property value into an object
 java.lang.String getStringValue(java.lang.Object object)
          Get the string converted value
 javax.jcr.Value getValue(javax.jcr.ValueFactory valueFactory, java.lang.Object object)
          Convert an object into a JCR value.
 

Method Detail

getValue

javax.jcr.Value getValue(javax.jcr.ValueFactory valueFactory,
                         java.lang.Object object)
Convert an object into a JCR value.

Parameters:
object - The object to convert
Returns:
the corresponding JCR value

getObject

java.lang.Object getObject(javax.jcr.Value value)
Convert a jcr property value into an object

Parameters:
value - The JCR property value
Returns:
the corresponding object

getStringValue

java.lang.String getStringValue(java.lang.Object object)
Get the string converted value

Parameters:
object - The object value
Returns:
The string converted value


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