Postgres adatbázis oszlop típus |
Oracle adatbázis oszlop típus |
Java SQL típus java.sql.Types |
Java osztály megfeleltetés |
---|---|---|---|
BIGINT INT8 |
Types.BIGINT (-5) | Long | |
BYTEA | Types.BINARY (-2) | File | |
BOOLEAN BOOL |
Types.BIT (-7) | Boolean | |
BLOB | Types.BLOB (2004) | File | |
Types.BOOLEAN (16) | Boolean | ||
CHARACTER CHAR |
Types.CHAR (1) | String | |
CLOB | Types.CLOB (2005) | String | |
DATE | Types.DATE (91) | java.sql.Date | |
Types.DECIMAL (3) |
ha (precision <= 0 vagy scale != 0) akkor BigDecimal különben: ha (precision <= 18) akkor Long különben BigInteger |
||
DOUBLE PRECISION FLOAT8 |
Types.DOUBLE (8) | BigDecimal | |
Types.FLOAT (6) | BigDecimal | ||
INTEGER INT INT4 |
Types.INTEGER (4) | Long | |
NUMERIC DECIMAL |
NUMBER | Types.NUMERIC (2) |
ha (precision <= 0 vagy scale != 0) akkor BigDecimal különben: ha (precision <= 18) akkor Long különben BigInteger |
SMALLINT INT2 |
Types.SMALLINT (5) | Long | |
TIME | Types.TIME (92) | java.sql.Time | |
TIMESTAMP | DATE | Types.TIMESTAMP (93) | java.sql.Timestamp |
Types.TINYINT (-6) | Long | ||
VARCHAR CHARACTER VARYING TEXT |
VARCHAR2 | Types.VARCHAR (12) | String |
Types.ARRAY (2003) Types.DATALINK (70) Types.DISTINCT (2001) Types.JAVA_OBJECT (2000) Types.LONGNVARCHAR (-16) Types.LONGVARBINARY (-4) Types.LONGVARCHAR (-1) Types.NCHAR (-15) Types.NCLOB (2011) Types.NULL (0) Types.NVARCHAR (-9) Types.OTHER (1111) Types.REAL (7) Types.REF (2006) Types.ROWID (-8) Types.SQLXML (2009) Types.STRUCT (2002) Types.VARBINARY (-3) |
Object |
Java osztály | SQL-parancs paraméter | ANC @Column | Generált DIC, ShellMap |
---|---|---|---|
Short | |||
Integer | |||
Long | |||
Float | |||
Double | |||
BigInteger | |||
BigDecimal | |||
Time | |||
Timestamp | |||
java.sql.Date | |||
java.util.Date | |||
Boolean | |||
String | |||
Blob | |||
Clob | |||
Reader | |||
File | |||
Object | |||
Lásd: SQL.setParameterInner2() |
Lásd: Tool.resultSetToTargetObject() |
Lásd: Tool.getColumnsFromMetaData() |