Class BigDecimalDomainType
- java.lang.Object
-
- org.openbravo.base.model.domaintype.BaseDomainType
-
- org.openbravo.base.model.domaintype.BasePrimitiveDomainType
-
- org.openbravo.base.model.domaintype.BigDecimalDomainType
-
- All Implemented Interfaces:
DomainType
,PrimitiveDomainType
- Direct Known Subclasses:
BigDecimalDomainType.Amount
,BigDecimalDomainType.GeneralQuantity
,BigDecimalDomainType.Number
,BigDecimalDomainType.Price
,BigDecimalDomainType.Quantity
public class BigDecimalDomainType extends BasePrimitiveDomainType
The type for a decimal column.- Author:
- mtaal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BigDecimalDomainType.Amount
static class
BigDecimalDomainType.GeneralQuantity
static class
BigDecimalDomainType.Number
static class
BigDecimalDomainType.Price
static class
BigDecimalDomainType.Quantity
-
Field Summary
-
Fields inherited from interface org.openbravo.base.model.domaintype.PrimitiveDomainType
EMPTY_STRING
-
-
Constructor Summary
Constructors Constructor Description BigDecimalDomainType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
createFromString(String strValue)
Converts a string back to an object value of the primitive type ({link #getPrimitiveType()}) represented by this DomainType.Class<?>
getPrimitiveType()
The primitive type class (for example java.lang.Long) if this is a primitive type.String
getXMLSchemaType()
-
Methods inherited from class org.openbravo.base.model.domaintype.BasePrimitiveDomainType
checkIsValidValue, convertToString, getFormatId, getHibernateType
-
Methods inherited from class org.openbravo.base.model.domaintype.BaseDomainType
checkObjectIsValid, getClasses, getModelProvider, getReference, initialize, setModelProvider, setReference
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openbravo.base.model.domaintype.DomainType
checkObjectIsValid, getModelProvider, getReference, initialize, setModelProvider, setReference
-
-
-
-
Method Detail
-
getPrimitiveType
public Class<?> getPrimitiveType()
Description copied from interface:PrimitiveDomainType
The primitive type class (for example java.lang.Long) if this is a primitive type.- Returns:
- class of the
BigDecimal
-
createFromString
public Object createFromString(String strValue)
Description copied from interface:PrimitiveDomainType
Converts a string back to an object value of the primitive type ({link #getPrimitiveType()}) represented by this DomainType. This method is the opposite of thePrimitiveDomainType.convertToString(Object)
method.- Specified by:
createFromString
in interfacePrimitiveDomainType
- Overrides:
createFromString
in classBasePrimitiveDomainType
- Parameters:
strValue
- the string value to convert- Returns:
- the object value, null is returned if an empty string or null are passed as parameter.
-
getXMLSchemaType
public String getXMLSchemaType()
- Returns:
- the xml schema type which matches the primitive type, is used to create the XML Schema for the REST web services.
-
-