org.compass.core.converter.mapping
Interface ResourceMappingConverter

All Superinterfaces:
Converter
All Known Implementing Classes:
ClassMappingConverter, RawResourceMappingConverter, XmlObjectMappingConverter

public interface ResourceMappingConverter
extends Converter

A converter associated with a ResourceMapping implementation. Allows to marhsall/unmarshall just ids as well.

Author:
kimchy

Method Summary
 boolean marshallIds(Resource idResource, Object id, ResourceMapping resourceMapping, MarshallingContext context)
          Marshalls teh given Object id into the given resource.
 Object[] unmarshallIds(Object id, ResourceMapping resourceMapping, MarshallingContext context)
          Unamrshalls the given id into its id properties values.
 
Methods inherited from interface org.compass.core.converter.Converter
marshall, unmarshall
 

Method Detail

marshallIds

boolean marshallIds(Resource idResource,
                    Object id,
                    ResourceMapping resourceMapping,
                    MarshallingContext context)
                    throws ConversionException
Marshalls teh given Object id into the given resource. Returns true if anything was was stored in the resource.

Throws:
ConversionException

unmarshallIds

Object[] unmarshallIds(Object id,
                       ResourceMapping resourceMapping,
                       MarshallingContext context)
                       throws ConversionException
Unamrshalls the given id into its id properties values.

Throws:
ConversionException


Copyright (c) 2004-2008 The Compass Project.