|
||||||||||
| 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.slf4j.Logger |
log
|
protected MappingDescriptor |
mappingDescriptor
|
protected Collection |
rootClassDescriptors
|
| Constructor Summary | |
|---|---|
AbstractMapperImpl()
|
|
| Method Summary | |
|---|---|
void |
buildMapper()
|
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 |
protected String |
getErrorMessage(List errors)
|
protected List |
solveReferences(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 List |
validateDescriptors(List errors,
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.slf4j.Logger log
protected DescriptorReader descriptorReader
protected MappingDescriptor mappingDescriptor
protected Collection rootClassDescriptors
| Constructor Detail |
|---|
public AbstractMapperImpl()
| Method Detail |
|---|
public void buildMapper()
protected List solveReferences(List errors)
errors -
protected List validateDescriptors(List errors,
Collection classDescriptors)
errors - all errors found during the validation processclassDescriptors - the ancestor classdescriptors
protected String getErrorMessage(List errors)
public ClassDescriptor getClassDescriptorByClass(Class clazz)
Mapper
getClassDescriptorByClass in interface Mapperclazz - The java bean class
Mapper.getClassDescriptorByClass(java.lang.Class)public ClassDescriptor getClassDescriptorByNodeType(String jcrNodeType)
Mapper
getClassDescriptorByNodeType in interface MapperjcrNodeType - the jcr node type
Mapper.getClassDescriptorByNodeType(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||