org.openxava.mapping
Class ReferenceMapping

java.lang.Object
  extended by 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

Constructor Summary
ReferenceMapping()
           
 
Method Summary
 void addDetail(ReferenceMappingDetail detail)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceMapping

public ReferenceMapping()
Method Detail

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)