public class ValueMetaDate extends ValueMetaBase implements ValueMetaInterface
DEFAULT_DATE_FORMAT_MASK, DEFAULT_TIMESTAMP_FORMAT_MASK, EMPTY_STRING_AND_NULL_ARE_DIFFERENT, SINGLE_BYTE_ENCODINGS, trimTypeCode, trimTypeDesc, XML_DATA_TAG, XML_META_TAG
DEFAULT_INTEGER_LENGTH, SORT_TYPE_ASCENDING, SORT_TYPE_DESCENDING, SORT_TYPE_NOT_SORTED, sortTypeCodes, STORAGE_TYPE_BINARY_STRING, STORAGE_TYPE_INDEXED, STORAGE_TYPE_NORMAL, storageTypeCodes, TRIM_TYPE_BOTH, TRIM_TYPE_LEFT, TRIM_TYPE_NONE, TRIM_TYPE_RIGHT, TYPE_BIGNUMBER, TYPE_BINARY, TYPE_BOOLEAN, TYPE_DATE, TYPE_INET, TYPE_INTEGER, TYPE_NONE, TYPE_NUMBER, TYPE_SERIALIZABLE, TYPE_STRING, TYPE_TIMESTAMP, typeCodes
Constructor and Description |
---|
ValueMetaDate() |
ValueMetaDate(String name) |
ValueMetaDate(String name,
int type) |
Modifier and Type | Method and Description |
---|---|
Date |
getDate(Object object)
Convert the supplied data to a Date
|
Object |
getNativeDataType(Object object)
This method gives you the native Java data type corresponding to the value meta-data.
|
clone, cloneValueData, compare, compare, convertBinaryStringToNativeType, convertData, convertDataCompatible, convertDataFromString, convertDataUsingConversionMetaData, convertNormalStorageTypeToBinaryString, convertStringToBoolean, convertToBinaryStringStorageType, convertToNormalStorageType, createOriginalValue, drawValue, getAllTypes, getBigNumber, getBinary, getBinaryString, getBoolean, getComments, getCompatibleString, getConversionMask, getConversionMetadata, getCurrencySymbol, getDatabaseColumnTypeDefinition, getDataXML, getDateFormat, getDateFormatLocale, getDateFormatTimeZone, getDecimalFormat, getDecimalFormat, getDecimalSymbol, getGroupingSymbol, getIndex, getInteger, getLength, getMetaXML, getName, getNumber, getNumberOfBinaryStringConversions, getOrigin, getOriginalColumnType, getOriginalColumnTypeName, getOriginalPrecision, getOriginalScale, getPrecision, getStorageMetadata, getStorageType, getStorageType, getStorageTypeCode, getStorageTypeDesc, getString, getStringEncoding, getTrimType, getTrimTypeByCode, getTrimTypeByDesc, getTrimTypeCode, getTrimTypeCodes, getTrimTypeDesc, getTrimTypeDescriptions, getType, getType, getTypeDesc, getTypeDesc, getTypes, getValue, getValueData, getValueFromResultSet, getValueFromSQLType, hashCode, isBigNumber, isBigNumberFormatting, isBinary, isBoolean, isCaseInsensitive, isDate, isDateFormatLenient, isInteger, isLargeTextField, isLenientStringToNumber, isNull, isNumber, isNumeric, isNumeric, isOriginalAutoIncrement, isOriginalNullable, isOriginalSigned, isOutputPaddingEnabled, isSerializableType, isSingleByteEncoding, isSortedAscending, isSortedDescending, isStorageBinaryString, isStorageIndexed, isStorageNormal, isString, readData, readMetaData, requiresRealClone, setBigNumberFormatting, setCaseInsensitive, setComments, setConversionMask, setConversionMetadata, setCurrencySymbol, setDateFormatLenient, setDateFormatLocale, setDateFormatTimeZone, setDecimalSymbol, setGroupingSymbol, setIndex, setLargeTextField, setLength, setLength, setLenientStringToNumber, setName, setNumberOfBinaryStringConversions, setOrigin, setOriginalAutoIncrement, setOriginalColumnType, setOriginalColumnTypeName, setOriginalNullable, setOriginalPrecision, setOriginalScale, setOriginalSigned, setOutputPaddingEnabled, setPrecision, setPreparedStatementValue, setSortedDescending, setStorageMetadata, setStorageType, setStringEncoding, setTrimType, setType, toString, toStringMeta, writeData, writeMeta
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, cloneValueData, compare, compare, convertBinaryStringToNativeType, convertData, convertDataCompatible, convertDataFromString, convertDataUsingConversionMetaData, convertNormalStorageTypeToBinaryString, convertToBinaryStringStorageType, convertToNormalStorageType, createOriginalValue, drawValue, getBigNumber, getBinary, getBinaryString, getBoolean, getComments, getCompatibleString, getConversionMask, getConversionMetadata, getCurrencySymbol, getDatabaseColumnTypeDefinition, getDataXML, getDateFormat, getDateFormatLocale, getDateFormatTimeZone, getDecimalFormat, getDecimalFormat, getDecimalSymbol, getGroupingSymbol, getIndex, getInteger, getLength, getMetaXML, getName, getNumber, getNumberOfBinaryStringConversions, getOrigin, getOriginalColumnType, getOriginalColumnTypeName, getOriginalPrecision, getOriginalScale, getPrecision, getStorageMetadata, getStorageType, getString, getStringEncoding, getTrimType, getType, getTypeDesc, getValue, getValueData, getValueFromResultSet, getValueFromSQLType, hashCode, isBigNumber, isBinary, isBoolean, isCaseInsensitive, isDate, isDateFormatLenient, isInteger, isLargeTextField, isLenientStringToNumber, isNull, isNumber, isNumeric, isOriginalAutoIncrement, isOriginalNullable, isOriginalSigned, isOutputPaddingEnabled, isSerializableType, isSingleByteEncoding, isSortedDescending, isStorageBinaryString, isStorageIndexed, isStorageNormal, isString, readData, readMetaData, requiresRealClone, setCaseInsensitive, setComments, setConversionMask, setConversionMetadata, setCurrencySymbol, setDateFormatLenient, setDateFormatLocale, setDateFormatTimeZone, setDecimalSymbol, setGroupingSymbol, setIndex, setLargeTextField, setLength, setLength, setLenientStringToNumber, setName, setNumberOfBinaryStringConversions, setOrigin, setOriginalAutoIncrement, setOriginalColumnType, setOriginalColumnTypeName, setOriginalNullable, setOriginalPrecision, setOriginalScale, setOriginalSigned, setOutputPaddingEnabled, setPrecision, setPreparedStatementValue, setSortedDescending, setStorageMetadata, setStorageType, setStringEncoding, setTrimType, setType, toStringMeta, writeData, writeMeta
public ValueMetaDate()
public ValueMetaDate(String name)
public ValueMetaDate(String name, int type)
public Date getDate(Object object) throws KettleValueException
ValueMetaInterface
getDate
in interface ValueMetaInterface
getDate
in class ValueMetaBase
KettleValueException
public Object getNativeDataType(Object object) throws KettleValueException
ValueMetaInterface
getNativeDataType
in interface ValueMetaInterface
getNativeDataType
in class ValueMetaBase
object
- The input dataKettleValueException
- in case there is an unexpected data conversion error.