|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.data.field.DataType
public abstract class DataType
Data type information.
| Field Summary | |
|---|---|
static String |
DEFAULT_TYPE
|
| Method Summary | |
|---|---|
static DataType |
create(String entity_class)
Creates an empty DataField object with name name and
class entity_class. |
static DataType |
createAs(Object data)
|
static int |
dataType(Object data)
Gives the java.sql.Types type associated by default to a given Java class. |
boolean |
equals(Object obj)
|
static String |
getDefaultClassName(int type)
Gets the appropriate default DataField subclass for the given java.sql.Types int type. |
info.informatica.text.ObjectFormat |
getFormat()
Get the field format. |
static int |
getIntType(String tipo)
Maps the given data type name to its java.sql.Types index. |
int |
getJavaSQLType()
Get the java.sql.Types type of this entity. |
String |
getName()
|
int |
getSize()
Get the field size. |
static String |
getTypeName(int tipo)
Gets the name of the given java.sql.Types int type. |
int |
hashCode()
|
abstract 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. |
void |
setFormat(info.informatica.text.ObjectFormat format)
Sets the format. |
void |
setJavaSQLType(int type)
|
void |
setSize(int i)
Sets the field size for this data entity |
String |
toString()
Gets the description of the data entity. |
Object |
validate(FieldName name,
Object value)
validates the value according to requirements of the Data
Dictionary / Metadata. |
Object |
validate(FieldName name,
Object value,
Object helper)
validates the value according to requirements of the Data
Dictionary / Metadata, and using a helper object. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_TYPE
| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void setJavaSQLType(int type)
public void setSize(int i)
throws DataException
i - the field size.
DataExceptionpublic void setFormat(info.informatica.text.ObjectFormat format)
format - the format of this entity.public info.informatica.text.ObjectFormat getFormat()
public int getJavaSQLType()
public int getSize()
public static DataType create(String entity_class)
throws DataFieldException
name and
class entity_class.
entity_class - the class of the required entity.
DataFieldException
public Object validate(FieldName name,
Object value)
throws DataException
value according to requirements of the Data
Dictionary / Metadata.
value - the value to be verified.
DataException - TODO
public Object validate(FieldName name,
Object value,
Object helper)
throws DataException
value according to requirements of the Data
Dictionary / Metadata, and using a helper object.
This method typically performs a heavier validation of the value, even when the helper object is null.
value - the value to be verified.helper - the helper object.
DataException - TODOpublic Object sample()
public abstract Object objectValue(FieldName varname,
String valor)
throws DataFieldException
valor - the value to be parsed/transformed.
DataFieldExceptionpublic static DataType createAs(Object data)
public static int dataType(Object data)
data - the Java object.
public static String getTypeName(int tipo)
public static int getIntType(String tipo)
tipo - a String containing the non-qualified data type name
public static String getDefaultClassName(int type)
public String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||