org.apache.portals.graffito.jcr.persistence.collectionconverter.impl
Class MultiValueCollectionConverterImpl

java.lang.Object
  extended by org.apache.portals.graffito.jcr.persistence.collectionconverter.impl.AbstractCollectionConverterImpl
      extended by org.apache.portals.graffito.jcr.persistence.collectionconverter.impl.MultiValueCollectionConverterImpl
All Implemented Interfaces:
CollectionConverter

public class MultiValueCollectionConverterImpl
extends AbstractCollectionConverterImpl

Collection Mapping/convertion implementation used for multi values properties This collection mapping strategy maps a collection into a JCR multi value property

Author:
Christophe Lombart, Alexandru Popescu

Field Summary
 
Fields inherited from class org.apache.portals.graffito.jcr.persistence.collectionconverter.impl.AbstractCollectionConverterImpl
atomicTypeConverters, mapper, objectConverter
 
Constructor Summary
MultiValueCollectionConverterImpl(java.util.Map atomicTypeConverters, ObjectConverter objectConverter, Mapper mapper)
          Constructor
 
Method Summary
protected  ManageableCollection doGetCollection(javax.jcr.Session session, javax.jcr.Node parentNode, CollectionDescriptor collectionDescriptor, java.lang.Class collectionFieldClass)
           
protected  void doInsertCollection(javax.jcr.Session session, javax.jcr.Node parentNode, CollectionDescriptor collectionDescriptor, ManageableCollection collection)
           
protected  boolean doIsNull(javax.jcr.Session session, javax.jcr.Node parentNode, CollectionDescriptor collectionDescriptor, java.lang.Class collectionFieldClass)
           
protected  void doUpdateCollection(javax.jcr.Session session, javax.jcr.Node parentNode, CollectionDescriptor collectionDescriptor, ManageableCollection collection)
           
 
Methods inherited from class org.apache.portals.graffito.jcr.persistence.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

MultiValueCollectionConverterImpl

public MultiValueCollectionConverterImpl(java.util.Map atomicTypeConverters,
                                         ObjectConverter objectConverter,
                                         Mapper mapper)
Constructor

Parameters:
atomicTypeConverters -
objectConverter -
mapper -
Method Detail

doInsertCollection

protected void doInsertCollection(javax.jcr.Session session,
                                  javax.jcr.Node parentNode,
                                  CollectionDescriptor collectionDescriptor,
                                  ManageableCollection collection)
                           throws javax.jcr.RepositoryException
Specified by:
doInsertCollection in class AbstractCollectionConverterImpl
Throws:
javax.jcr.RepositoryException
See Also:
AbstractCollectionConverterImpl.doInsertCollection(Session, Node, CollectionDescriptor, ManageableCollection)

doUpdateCollection

protected void doUpdateCollection(javax.jcr.Session session,
                                  javax.jcr.Node parentNode,
                                  CollectionDescriptor collectionDescriptor,
                                  ManageableCollection collection)
                           throws javax.jcr.RepositoryException
Specified by:
doUpdateCollection in class AbstractCollectionConverterImpl
Throws:
javax.jcr.RepositoryException
See Also:
AbstractCollectionConverterImpl.doUpdateCollection(Session, Node, CollectionDescriptor, ManageableCollection)

doGetCollection

protected ManageableCollection doGetCollection(javax.jcr.Session session,
                                               javax.jcr.Node parentNode,
                                               CollectionDescriptor collectionDescriptor,
                                               java.lang.Class collectionFieldClass)
                                        throws javax.jcr.RepositoryException
Specified by:
doGetCollection in class AbstractCollectionConverterImpl
Throws:
javax.jcr.RepositoryException
See Also:
AbstractCollectionConverterImpl.doGetCollection(Session, Node, CollectionDescriptor, Class)

doIsNull

protected boolean doIsNull(javax.jcr.Session session,
                           javax.jcr.Node parentNode,
                           CollectionDescriptor collectionDescriptor,
                           java.lang.Class collectionFieldClass)
                    throws javax.jcr.RepositoryException
Specified by:
doIsNull in class AbstractCollectionConverterImpl
Throws:
javax.jcr.RepositoryException
See Also:
AbstractCollectionConverterImpl.doIsNull(Session, Node, CollectionDescriptor, Class)


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