Package org.openxava.mapping
Class PropertyMapping
- java.lang.Object
-
- org.openxava.util.meta.MetaSetsContainer
-
- org.openxava.mapping.PropertyMapping
-
- All Implemented Interfaces:
java.io.Serializable
public class PropertyMapping extends MetaSetsContainer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyMapping(ModelMapping parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCmpField(CmpField cmp)
java.util.Collection
getCmpFields()
java.lang.Class
getCmpType()
java.lang.String
getCmpTypeName()
java.lang.String
getColumn()
IConverter
getConverter()
java.lang.String
getConverterClassName()
java.lang.String
getFormula()
IMultipleConverter
getMultipleConverter()
java.lang.String
getMultipleConverterClassName()
java.lang.String
getProperty()
boolean
hasConverter()
boolean
hasFormula()
boolean
hasMultipleConverter()
void
setCmpTypeName(java.lang.String cmpTypeName)
void
setColumn(java.lang.String tableColumn)
void
setConverterClassName(java.lang.String converterClassName)
void
setDefaultConverter()
void
setFormula(java.lang.String formula)
void
setMultipleConverterClassName(java.lang.String string)
void
setProperty(java.lang.String modelProperty)
-
Methods inherited from class org.openxava.util.meta.MetaSetsContainer
addMetaSet, assignPropertiesValues, containsMetaSets, containsMetaSetsWithoutValue, getMetaSets, getMetaSetsWithoutValue, getPropertyNameForPropertyFrom, isDependent
-
-
-
-
Constructor Detail
-
PropertyMapping
public PropertyMapping(ModelMapping parent)
-
-
Method Detail
-
getFormula
public java.lang.String getFormula()
-
setFormula
public void setFormula(java.lang.String formula)
-
getColumn
public java.lang.String getColumn()
-
setColumn
public void setColumn(java.lang.String tableColumn)
-
getProperty
public java.lang.String getProperty()
-
setProperty
public void setProperty(java.lang.String modelProperty)
-
setConverterClassName
public void setConverterClassName(java.lang.String converterClassName)
-
getConverter
public IConverter getConverter() throws XavaException
- Returns:
- Null if mapping does not have converter
- Throws:
XavaException
-
getMultipleConverter
public IMultipleConverter getMultipleConverter() throws XavaException
- Returns:
- Null if mapping does not have multiple converter
- Throws:
XavaException
-
hasConverter
public boolean hasConverter()
-
hasMultipleConverter
public boolean hasMultipleConverter()
-
getCmpFields
public java.util.Collection getCmpFields() throws XavaException
- Throws:
XavaException
-
getCmpTypeName
public java.lang.String getCmpTypeName() throws XavaException
- Throws:
XavaException
-
getCmpType
public java.lang.Class getCmpType() throws java.lang.ClassNotFoundException, XavaException
- Throws:
java.lang.ClassNotFoundException
XavaException
-
setCmpTypeName
public void setCmpTypeName(java.lang.String cmpTypeName)
-
getConverterClassName
public java.lang.String getConverterClassName()
-
addCmpField
public void addCmpField(CmpField cmp)
-
getMultipleConverterClassName
public java.lang.String getMultipleConverterClassName()
-
setMultipleConverterClassName
public void setMultipleConverterClassName(java.lang.String string)
-
setDefaultConverter
public void setDefaultConverter() throws XavaException
- Throws:
XavaException
-
hasFormula
public boolean hasFormula()
-
-