Package org.openxava.mapping
Class ReferenceMapping
- java.lang.Object
-
- org.openxava.mapping.ReferenceMapping
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ReferenceMapping extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReferenceMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDetail(ReferenceMappingDetail detail)ReferenceMappingclone()java.lang.StringgetCMPAttribute(java.lang.String propertyNameOfReferencedModel)java.util.CollectiongetCmpFields()java.lang.StringgetCmpTypeNameForReferencedModelProperty(java.lang.String property)java.lang.StringgetColumnForReferencedModelProperty(java.lang.String property)Qualified column.java.util.CollectiongetColumns()ModelMappinggetContainer()IConvertergetConverterForReferencedModelProperty(java.lang.String property)java.util.CollectiongetDetails()java.lang.StringgetReference()java.lang.StringgetReferencedTable()booleanhasColumnForReferencedModelProperty(java.lang.String property)Column not qualified.booleanhasConverter(java.lang.String property)voidsetContainer(ModelMapping container)voidsetReference(java.lang.String reference)
-
-
-
Method Detail
-
clone
public ReferenceMapping clone()
- Overrides:
clonein classjava.lang.Object
-
addDetail
public void addDetail(ReferenceMappingDetail detail)
-
getReferencedTable
public java.lang.String getReferencedTable() throws XavaException- Throws:
XavaException
-
getColumnForReferencedModelProperty
public java.lang.String getColumnForReferencedModelProperty(java.lang.String property) throws ElementNotFoundException, XavaExceptionQualified column.
-
getCmpTypeNameForReferencedModelProperty
public java.lang.String getCmpTypeNameForReferencedModelProperty(java.lang.String property) throws ElementNotFoundException, XavaException
-
getConverterForReferencedModelProperty
public IConverter getConverterForReferencedModelProperty(java.lang.String property) throws ElementNotFoundException, XavaException
-
hasColumnForReferencedModelProperty
public boolean hasColumnForReferencedModelProperty(java.lang.String property)
Column not qualified.
-
getDetails
public java.util.Collection getDetails()
- Returns:
- Not null.
-
getContainer
public ModelMapping getContainer()
-
setContainer
public void setContainer(ModelMapping container)
-
getReference
public java.lang.String getReference()
-
setReference
public void setReference(java.lang.String reference)
-
getColumns
public java.util.Collection getColumns() throws XavaException- Throws:
XavaException
-
getCMPAttribute
public java.lang.String getCMPAttribute(java.lang.String propertyNameOfReferencedModel) throws XavaException- Throws:
XavaException
-
getCmpFields
public java.util.Collection getCmpFields() throws XavaException- Throws:
XavaException
-
hasConverter
public boolean hasConverter(java.lang.String property)
-
-