com.informatica.powercenter.sdk.mapfwk.core
Class DataTypeConstants

java.lang.Object
  extended by com.informatica.powercenter.sdk.mapfwk.core.DataTypeConstants

public class DataTypeConstants
extends java.lang.Object

Represents data types in JMF.

These data types are used to create Field for a source, target or a transformation. For a source/target, JMF maps these data types to native source/target data types depending upon the type of source/target

Following is a code example for using DataTypeConstants while creating a flat file source


       // create a vector to hold the fields
       Vector fields = new Vector();
       // create a field of type of integer and add to the vector of fields
       Field field1 = new Field("EmployeeID", "EmployeeID","", DataTypeConstants.INTEGER, "10", "0",
                                                                FieldConstants.PRIMARY_KEY, Field.FIELDTYPE_SOURCE, true);
       fields.add(field1);
       // create a field of type of string and add to the vector of fields
       Field field2 = new Field("LastName", "LastName","", DataTypeConstants.STRING, "20", "0",
                                                                FieldConstants.NOT_A_KEY, Field.FIELDTYPE_SOURCE, false);
       fields.add(field2);
       // create connection info for a flat file source and set the connection
       // properties (not demonstrated in the code)
       ConnectionInfo ffConn = new ConnectionInfo( SourceTargetTypes.FLATFILE_TYPE );
       // create a Source
       Source employeeSource = new Source( "Employee", "Employee", "This is Employee Table",
                                                                                                                                         "Employee", ffConn );
       // set the fields in the Source
       employeeSource.setFields( fields );
  

See Also:
Field

Field Summary
static java.lang.String BIGINT
          bigint Datatype
static java.lang.String BINARY
          binary datatype
static java.lang.String BIT
          bit datatype
static java.lang.String BLOB
          blob datatype
static java.lang.String BOOLEAN
          boolean datatype
static java.lang.String CHAR
          char datatype
static java.lang.String CLOB
          clob datatype
static java.lang.String DATE
          date datatype
static java.lang.String DECIMAL
          decimal datatype
static java.lang.String DOUBLE
          double datatype
static java.lang.String FLOAT
          float datatype
static java.lang.String INTEGER
          integer datatype
static java.lang.String LONG
           
static java.lang.String LONGRAW
           
static java.lang.String LONGVARBINARY
          longvarbinary datatype
static java.lang.String LONGVARCHAR
          longvarchar Datatype
static java.lang.String MONEY
           
static java.lang.String NCHAR
           
static java.lang.String NCLOB
           
static java.lang.String NSTRING
          nstring datatype
static java.lang.String NTEXT
          ntext datatype
static java.lang.String NUMBER
          number datatype
static java.lang.String NUMERIC
          numeric datatype
static java.lang.String REAL
          real datatype
static java.lang.String SMALLDATETIME
           
static java.lang.String SMALLINT
          smallint datatype
static java.lang.String SMALLMONEY
           
static java.lang.String STRING
          string datatype
static java.lang.String TEXT
          text datatype
static java.lang.String TIME
          time datatype
static java.lang.String TIMESTAMP
          timestamp datatype
static java.lang.String TINYINT
          tinyint datatype
static java.lang.String VARBINARY
           
static java.lang.String VARCHAR
          varchar datatype
static java.lang.String VARCHAR2
          varchar2 datatype
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BIT

public static final java.lang.String BIT
bit datatype

See Also:
Constant Field Values

BOOLEAN

public static final java.lang.String BOOLEAN
boolean datatype

See Also:
Constant Field Values

CHAR

public static final java.lang.String CHAR
char datatype

See Also:
Constant Field Values

VARCHAR

public static final java.lang.String VARCHAR
varchar datatype

See Also:
Constant Field Values

VARCHAR2

public static final java.lang.String VARCHAR2
varchar2 datatype

See Also:
Constant Field Values

STRING

public static final java.lang.String STRING
string datatype

See Also:
Constant Field Values

TEXT

public static final java.lang.String TEXT
text datatype

See Also:
Constant Field Values

NSTRING

public static final java.lang.String NSTRING
nstring datatype

See Also:
Constant Field Values

NTEXT

public static final java.lang.String NTEXT
ntext datatype

See Also:
Constant Field Values

TINYINT

public static final java.lang.String TINYINT
tinyint datatype

See Also:
Constant Field Values

SMALLINT

public static final java.lang.String SMALLINT
smallint datatype

See Also:
Constant Field Values

INTEGER

public static final java.lang.String INTEGER
integer datatype

See Also:
Constant Field Values

NUMBER

public static final java.lang.String NUMBER
number datatype

See Also:
Constant Field Values

DECIMAL

public static final java.lang.String DECIMAL
decimal datatype

See Also:
Constant Field Values

NUMERIC

public static final java.lang.String NUMERIC
numeric datatype

See Also:
Constant Field Values

DOUBLE

public static final java.lang.String DOUBLE
double datatype

See Also:
Constant Field Values

FLOAT

public static final java.lang.String FLOAT
float datatype

See Also:
Constant Field Values

REAL

public static final java.lang.String REAL
real datatype

See Also:
Constant Field Values

DATE

public static final java.lang.String DATE
date datatype

See Also:
Constant Field Values

TIME

public static final java.lang.String TIME
time datatype

See Also:
Constant Field Values

TIMESTAMP

public static final java.lang.String TIMESTAMP
timestamp datatype

See Also:
Constant Field Values

BINARY

public static final java.lang.String BINARY
binary datatype

See Also:
Constant Field Values

BLOB

public static final java.lang.String BLOB
blob datatype

See Also:
Constant Field Values

LONGVARBINARY

public static final java.lang.String LONGVARBINARY
longvarbinary datatype

See Also:
Constant Field Values

CLOB

public static final java.lang.String CLOB
clob datatype

See Also:
Constant Field Values

LONGVARCHAR

public static final java.lang.String LONGVARCHAR
longvarchar Datatype

See Also:
Constant Field Values

BIGINT

public static final java.lang.String BIGINT
bigint Datatype

See Also:
Constant Field Values

LONG

public static final java.lang.String LONG
See Also:
Constant Field Values

LONGRAW

public static final java.lang.String LONGRAW
See Also:
Constant Field Values

NCLOB

public static final java.lang.String NCLOB
See Also:
Constant Field Values

MONEY

public static final java.lang.String MONEY
See Also:
Constant Field Values

NCHAR

public static final java.lang.String NCHAR
See Also:
Constant Field Values

SMALLDATETIME

public static final java.lang.String SMALLDATETIME
See Also:
Constant Field Values

SMALLMONEY

public static final java.lang.String SMALLMONEY
See Also:
Constant Field Values

VARBINARY

public static final java.lang.String VARBINARY
See Also:
Constant Field Values