org.apache.jackrabbit.ocm.manager.collectionconverter.impl
Class BeanReferenceMapConverterImpl

java.lang.Object
  extended by org.apache.jackrabbit.ocm.manager.collectionconverter.impl.AbstractCollectionConverterImpl
      extended by org.apache.jackrabbit.ocm.manager.collectionconverter.impl.BeanReferenceMapConverterImpl
All Implemented Interfaces:
CollectionConverter

public class BeanReferenceMapConverterImpl
extends AbstractCollectionConverterImpl

Map converter used to map reference/uuid property by key into a java.util.Map.

This implementation takes for granted that the keys to the map are of type java.lang.String.

Further development will be required to fully support Map.

Author:
Vincent Giguere

Field Summary
 
Fields inherited from class org.apache.jackrabbit.ocm.manager.collectionconverter.impl.AbstractCollectionConverterImpl
atomicTypeConverters, mapper, objectConverter
 
Constructor Summary
BeanReferenceMapConverterImpl(Map atomicTypeConverters, ObjectConverter objectConverter, Mapper mapper)
          Constructor
 
Method Summary
protected  ManageableObjects doGetCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, Class collectionFieldClass)
           
protected  void doInsertCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, ManageableObjects objects)
           
protected  boolean doIsNull(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, Class collectionFieldClass)
           
protected  void doUpdateCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, ManageableObjects objects)
           
 
Methods inherited from class org.apache.jackrabbit.ocm.manager.collectionconverter.impl.AbstractCollectionConverterImpl
getCollection, getCollectionJcrName, insertCollection, isNull, updateCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanReferenceMapConverterImpl

public BeanReferenceMapConverterImpl(Map atomicTypeConverters,
                                     ObjectConverter objectConverter,
                                     Mapper mapper)
Constructor

Parameters:
atomicTypeConverters -
objectConverter -
mapper -
Method Detail

doInsertCollection

protected void doInsertCollection(Session session,
                                  Node parentNode,
                                  CollectionDescriptor collectionDescriptor,
                                  ManageableObjects objects)
                           throws RepositoryException
Specified by:
doInsertCollection in class AbstractCollectionConverterImpl
Throws:
RepositoryException

doUpdateCollection

protected void doUpdateCollection(Session session,
                                  Node parentNode,
                                  CollectionDescriptor collectionDescriptor,
                                  ManageableObjects objects)
                           throws RepositoryException
Specified by:
doUpdateCollection in class AbstractCollectionConverterImpl
Throws:
RepositoryException

doGetCollection

protected ManageableObjects doGetCollection(Session session,
                                            Node parentNode,
                                            CollectionDescriptor collectionDescriptor,
                                            Class collectionFieldClass)
                                     throws RepositoryException
Specified by:
doGetCollection in class AbstractCollectionConverterImpl
Throws:
RepositoryException
See Also:
AbstractCollectionConverterImpl.doGetCollection(javax.jcr.Session, javax.jcr.Node, org.apache.jackrabbit.ocm.mapper.model.CollectionDescriptor, Class)

doIsNull

protected boolean doIsNull(Session session,
                           Node parentNode,
                           CollectionDescriptor collectionDescriptor,
                           Class collectionFieldClass)
                    throws RepositoryException
Specified by:
doIsNull in class AbstractCollectionConverterImpl
Throws:
RepositoryException
See Also:
AbstractCollectionConverterImpl.doIsNull(javax.jcr.Session, javax.jcr.Node, org.apache.jackrabbit.ocm.mapper.model.CollectionDescriptor, Class)


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