info.informatica.data.field
Class DateField

java.lang.Object
  extended by info.informatica.data.field.DataType
      extended by info.informatica.data.field.DateField

public class DateField
extends DataType

Date field.

Version:
1.05
Author:
amengual at informatica dot info

Field Summary
 
Fields inherited from class info.informatica.data.field.DataType
DEFAULT_TYPE
 
Constructor Summary
DateField()
           
DateField(int dbtype)
           
 
Method Summary
 String getName()
          Gets the name of the given java.sql.Types int type.
 Object objectValue(FieldName varname, String valor)
          Transforms a String value into the appropriate Java object, parsing as needed.
 Object sample()
          Provide a sample of this data type.
 Object validate(FieldName name, Object val)
          validates the value according to requirements of the Data Dictionary / Metadata.
 
Methods inherited from class info.informatica.data.field.DataType
create, createAs, dataType, equals, getDefaultClassName, getFormat, getIntType, getJavaSQLType, getSize, getTypeName, hashCode, setFormat, setJavaSQLType, setSize, toString, validate
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateField

public DateField(int dbtype)

DateField

public DateField()
Method Detail

validate

public Object validate(FieldName name,
                       Object val)
                throws DataException
Description copied from class: DataType
validates the value according to requirements of the Data Dictionary / Metadata.

Overrides:
validate in class DataType
val - the value to be verified.
Throws:
DataException - TODO

getName

public String getName()
Gets the name of the given java.sql.Types int type.

Overrides:
getName in class DataType
Returns:
the String representing the SQL data type, or null if unknown.

objectValue

public Object objectValue(FieldName varname,
                          String valor)
                   throws DataFieldException
Transforms a String value into the appropriate Java object, parsing as needed.

Specified by:
objectValue in class DataType
Parameters:
valor - the value to be parsed/transformed.
Throws:
DataFieldException

sample

public Object sample()
Description copied from class: DataType
Provide a sample of this data type. Should be reasonably random.

Overrides:
sample in class DataType
Returns:
the sample, or null if no suitable sample could be produced.