class SQLTypes
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
SQLTypes() |
Modifier and Type | Method and Description |
---|---|
protected static int |
getNonNullableSqlType(int sqlType)
Translate DB2 SQL Type to the non-nullable type.
|
protected static int |
mapDB2SqlTypeToJdbcType(int sqlType,
long length,
int ccsid)
Map DB2 SQL Type to JDBC Type
|
protected static int |
mapJdbcTypeToDB2SqlType(int jdbctype,
boolean nullable,
AppRequester appRequester,
int[] outlen)
Map JDBC Type to DB2 SqlType
|
protected static int mapDB2SqlTypeToJdbcType(int sqlType, long length, int ccsid)
sqlType
- SQL Type to convertlength
- storage length of typeccsid
- ccsid of typeprotected static int mapJdbcTypeToDB2SqlType(int jdbctype, boolean nullable, AppRequester appRequester, int[] outlen) throws java.sql.SQLException
jdbctype
- JDBC Type from java.sql.Typesnullable
- true if this is a nullable typeappRequester
- - state variable for the connectionoutlen
- output parameter with type lengthjava.sql.SQLException
- thrown for unrecognized SQLTypeprotected static int getNonNullableSqlType(int sqlType)
sqlType
- DB2 SQL TypeApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.