org.openxava.mapping
Class ReferenceMapping
java.lang.Object
org.openxava.mapping.ReferenceMapping
- All Implemented Interfaces:
- java.io.Serializable
public class ReferenceMapping
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReferenceMapping
public ReferenceMapping()
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.
- Throws:
ElementNotFoundException
XavaException
getCmpTypeNameForReferencedModelProperty
public java.lang.String getCmpTypeNameForReferencedModelProperty(java.lang.String property)
throws ElementNotFoundException,
XavaException
- Throws:
ElementNotFoundException
XavaException
getConverterForReferencedModelProperty
public IConverter getConverterForReferencedModelProperty(java.lang.String property)
throws ElementNotFoundException,
XavaException
- 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)