public class MetaDate extends MetaParameter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_DATE_FORMAT |
CALIBRATION_LEVEL, HIERARCHY_LEVEL, SPECTRUM_LEVEL| Modifier | Constructor and Description |
|---|---|
protected |
MetaDate() |
protected |
MetaDate(attribute attr) |
protected |
MetaDate(attribute attr,
java.lang.Object meta_value) |
protected |
MetaDate(int eav_id) |
protected |
MetaDate(java.lang.String category_name,
java.lang.String category_value,
java.lang.Object meta_value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allows_multi_insert() |
static java.lang.String |
formatDate(org.joda.time.DateTime date) |
static java.lang.String |
formatDate(org.joda.time.DateTime date,
java.lang.String format_specifier) |
static java.text.DateFormat |
getDateFormat() |
static org.joda.time.format.DateTimeFormatter |
getDateFormatter() |
boolean |
hasEqualValue(MetaParameter mp) |
void |
setEmptyValue() |
void |
setValue(java.lang.Object value) |
static boolean |
supportsValue(java.lang.Object value) |
java.util.Date |
valueAsDate() |
org.joda.time.DateTime |
valueAsDateTime() |
java.lang.String |
valueAsString() |
java.lang.String |
valueAsString(java.lang.String format_specifier) |
getAnnotation, getAttributeId, getAttributeName, getBlob_lazy_loading, getBlob_size_in_MB, getBlob_size, getCategoryName, getCategoryValue, getDefaultStorageField, getDefaultUnitId, getDescription, getEavId, getEAVValue, getFieldPos, getIsBooleanValue, getLevel, getUnitId, getUnitName, getValue, newInstance, newInstance, newInstance, setAnnotation, setAttributeId, setAttributeName, setBlob_lazy_loading, setBlob_size, setCategoryName, setCategoryValue, setDefaultStorageField, setDefaultUnitId, setDescription, setEavId, setIsBooleanValue, setLevel, setUnitId, setUnitName, setUnits, setValuepublic static final java.lang.String DEFAULT_DATE_FORMAT
protected MetaDate()
protected MetaDate(java.lang.String category_name,
java.lang.String category_value,
java.lang.Object meta_value)
throws MetaParameterFormatException
MetaParameterFormatExceptionprotected MetaDate(attribute attr, java.lang.Object meta_value) throws MetaParameterFormatException
MetaParameterFormatExceptionprotected MetaDate(attribute attr)
protected MetaDate(int eav_id)
public boolean allows_multi_insert()
allows_multi_insert in class MetaParameterpublic boolean hasEqualValue(MetaParameter mp)
hasEqualValue in class MetaParameterpublic void setValue(java.lang.Object value)
throws MetaParameterFormatException
setValue in class MetaParameterMetaParameterFormatExceptionpublic void setEmptyValue()
setEmptyValue in class MetaParameterpublic java.lang.String valueAsString()
valueAsString in class MetaParameterpublic static boolean supportsValue(java.lang.Object value)
public java.lang.String valueAsString(java.lang.String format_specifier)
public java.util.Date valueAsDate()
public org.joda.time.DateTime valueAsDateTime()
public static java.lang.String formatDate(org.joda.time.DateTime date)
public static java.lang.String formatDate(org.joda.time.DateTime date,
java.lang.String format_specifier)
public static org.joda.time.format.DateTimeFormatter getDateFormatter()
public static java.text.DateFormat getDateFormat()