org.apache.jackrabbit.ocm.mapper
Interface Mapper

All Known Implementing Classes:
AbstractMapperImpl, AnnotationMapperImpl, DigesterMapperImpl

public interface Mapper

This component read the mapping file and gives an access to the ClassDescriptors (the mapping object model)

Author:
Lombart Christophe

Method Summary
 ClassDescriptor getClassDescriptorByClass(Class clazz)
          Get the mapping defition to be used for a specific java bean
 ClassDescriptor getClassDescriptorByNodeType(String jcrNodeType)
          Get the mapping defition to be used for a specific JCR node type
 

Method Detail

getClassDescriptorByClass

ClassDescriptor getClassDescriptorByClass(Class clazz)
Get the mapping defition to be used for a specific java bean

Parameters:
clazz - The java bean class
Returns:
The mapping class found for the desired java bean class

getClassDescriptorByNodeType

ClassDescriptor getClassDescriptorByNodeType(String jcrNodeType)
Get the mapping defition to be used for a specific JCR node type

Parameters:
jcrNodeType - the jcr node type
Returns:
The mapping class found for the desired java bean class


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