|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.ocm.mapper.impl.AbstractMapperImpl
public abstract class AbstractMapperImpl
Abstract class for Mapper
Field Summary | |
---|---|
protected DescriptorReader |
descriptorReader
|
protected static org.apache.commons.logging.Log |
log
|
protected MappingDescriptor |
mappingDescriptor
|
protected java.util.Collection |
rootClassDescriptors
|
Constructor Summary | |
---|---|
AbstractMapperImpl()
|
Method Summary | |
---|---|
void |
buildMapper()
|
ClassDescriptor |
getClassDescriptorByClass(java.lang.Class clazz)
Get the mapping defition to be used for a specific java bean |
ClassDescriptor |
getClassDescriptorByNodeType(java.lang.String jcrNodeType)
Get the mapping defition to be used for a specific JCR node type |
protected java.lang.String |
getErrorMessage(java.util.List errors)
|
protected java.util.List |
solveReferences(java.util.List errors)
This method check class descriptor references (ancestor & implemented interfaces) : For each classdescriptor found, this method will check if the ancestor class and the implemented interfaces are also persistent or not. |
protected java.util.List |
validateDescriptors(java.util.List errors,
java.util.Collection classDescriptors)
Validate all class descriptors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
protected DescriptorReader descriptorReader
protected MappingDescriptor mappingDescriptor
protected java.util.Collection rootClassDescriptors
Constructor Detail |
---|
public AbstractMapperImpl()
Method Detail |
---|
public void buildMapper()
protected java.util.List solveReferences(java.util.List errors)
errors
-
protected java.util.List validateDescriptors(java.util.List errors, java.util.Collection classDescriptors)
errors
- all errors found during the validation processclassDescriptors
- the ancestor classdescriptors
protected java.lang.String getErrorMessage(java.util.List errors)
public ClassDescriptor getClassDescriptorByClass(java.lang.Class clazz)
Mapper
getClassDescriptorByClass
in interface Mapper
clazz
- The java bean class
Mapper.getClassDescriptorByClass(java.lang.Class)
public ClassDescriptor getClassDescriptorByNodeType(java.lang.String jcrNodeType)
Mapper
getClassDescriptorByNodeType
in interface Mapper
jcrNodeType
- the jcr node type
Mapper.getClassDescriptorByNodeType(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |