12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Setting Properties<br />

The following table shows the Java to SQL type mapping for JDatastore, Informix, and<br />

Interbase:<br />

Java types JDatastore Informix Interbase<br />

boolean/Boolean BOOLEAN SMALLINTSMALLINT<br />

byte/Byte<br />

SMALLINTSMALLINTSMALLINT<br />

char/Character CHAR(1) CHAR(1) CHAR(1)<br />

double/Double DOUBLE FLOATDOUBLE PRECISION<br />

float/Float<br />

FLOATSMALLFLOATFLOAT<br />

int/Integer INTEGER INTEGER INTEGER<br />

long/Long LONG DECIMAL(19,0) NUMBER(15,0)<br />

short/Short<br />

SMALLINTSMALLINTSMALLINT<br />

String VARCHAR VARCHAR(2000) VARCHAR(2000)<br />

java.math.BigDecimal NUMERIC DECIMAL(32) NUMBER(15,15)<br />

byte[] OBJECTBYTE BLOB<br />

java.sql.Date DATE DATE DATE<br />

java.sql.Time TIME DATE DATE<br />

java.sql.Timestamp TIMESTAMP DATE DATE<br />

java.util.Date TIMESTAMP DATE DATE<br />

java.io.Serializable OBJECTBYTE BLOB<br />

Chapter 14: Entity Beans and CMP 1.1 in <strong>Borland</strong> Enterprise Server 125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!