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 void
addDetail(ReferenceMappingDetail detail)
ReferenceMapping
clone()
java.lang.String
getCMPAttribute(java.lang.String propertyNameOfReferencedModel)
java.util.Collection
getCmpFields()
java.lang.String
getCmpTypeNameForReferencedModelProperty(java.lang.String property)
java.lang.String
getColumnForReferencedModelProperty(java.lang.String property)
Qualified column.java.util.Collection
getColumns()
ModelMapping
getContainer()
IConverter
getConverterForReferencedModelProperty(java.lang.String property)
java.util.Collection
getDetails()
java.lang.String
getReference()
java.lang.String
getReferencedTable()
boolean
hasColumnForReferencedModelProperty(java.lang.String property)
Column not qualified.boolean
hasConverter(java.lang.String property)
void
setContainer(ModelMapping container)
void
setReference(java.lang.String reference)
-
-
-
Method Detail
-
clone
public ReferenceMapping clone()
- Overrides:
clone
in 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, XavaException
Qualified 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)
-
-