Package org.brerp.base.component
Class DisplayTypeFactory
java.lang.Object
org.brerp.base.component.DisplayTypeFactory
- All Implemented Interfaces:
IDisplayTypeFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getClass
(int displayType, boolean yesNoAsBoolean) getDateFormat
(int displayType, Language language, String pattern) getDefaultPrecision
(int displayType) getDescription
(int displayType) getNumberFormat
(int displayType, Language language, String pattern) getSQLDataType
(int displayType, String columnName, int fieldLength) boolean
isDate
(int displayType) boolean
isID
(int displayType) boolean
isLOB
(int displayType) boolean
isLookup
(int displayType) boolean
isNumeric
(int displayType) boolean
isText
(int displayType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.adempiere.base.IDisplayTypeFactory
isList, isUUID
-
Constructor Details
-
DisplayTypeFactory
public DisplayTypeFactory()
-
-
Method Details
-
isID
public boolean isID(int displayType) - Specified by:
isID
in interfaceIDisplayTypeFactory
- Returns:
- true if displayType is of int ID type
-
isNumeric
public boolean isNumeric(int displayType) - Specified by:
isNumeric
in interfaceIDisplayTypeFactory
- Returns:
- true if displayType is of numeric type
-
getDefaultPrecision
- Specified by:
getDefaultPrecision
in interfaceIDisplayTypeFactory
- Returns:
- default numeric precision for displayType
-
isText
public boolean isText(int displayType) - Specified by:
isText
in interfaceIDisplayTypeFactory
- Returns:
- true if displayType is of text type
-
isDate
public boolean isDate(int displayType) - Specified by:
isDate
in interfaceIDisplayTypeFactory
- Returns:
- true if displayType is of date type
-
isLookup
public boolean isLookup(int displayType) - Specified by:
isLookup
in interfaceIDisplayTypeFactory
- Returns:
- true if displayType is of lookup type (usually a foreign key type)
-
isLOB
public boolean isLOB(int displayType) - Specified by:
isLOB
in interfaceIDisplayTypeFactory
- Returns:
- true if displayType is of LOB type
-
getNumberFormat
- Specified by:
getNumberFormat
in interfaceIDisplayTypeFactory
- Returns:
- DecimalFormat
-
getDateFormat
- Specified by:
getDateFormat
in interfaceIDisplayTypeFactory
- Returns:
- SimpleDateFormat
-
getClass
- Specified by:
getClass
in interfaceIDisplayTypeFactory
- Returns:
- Java type for displayType
-
getSQLDataType
- Specified by:
getSQLDataType
in interfaceIDisplayTypeFactory
- Returns:
- SQL data type for displayType
-
getDescription
- Specified by:
getDescription
in interfaceIDisplayTypeFactory
- Returns:
- description for displayType
-