Architecting and designing : UML 2.0 Lite : Object/relational integration : Type mappings between programming languages and data types : Java type mapping to from data element types
  
Java type mapping to from data element types
From class model to logical (ER) data model
The list below documents all of the Java types that are translated. If an unknown Java type is found, it will be translated to a “long var character” in the entity diagram.
Source type
 
 
Target type
Java pre-type
Java type
Java post-type
Data element type
 
boolean
 
bit
 
byte
 
tiny integer
 
short
 
small integer
 
int
 
integer
 
long
 
long binary
 
int
 
decimal
 
float
 
float
 
double
 
double precision
const
char
 
character
 
char
 
character varying
const
char
*
long character
 
char
*
long text
 
char
*
long var character
 
default
 
long var character
From logical (ER) data model to class diagram
Source type
 
Target type
Data element type
Type package
C++ pre type
C++ type
C++ post type
bit
Java Types
 
boolean
 
tiny integer
Java Types
 
byte
 
small integer
Java Types
 
short
 
integer
Java Types
 
int
 
long binary
Java Types
 
long
 
decimal
Java Types
 
int
 
number
Java Types
unsigned
double
 
float
Java Types
 
float
 
real
Java Types
 
float
 
double precision
Java Types
 
double
 
money
Java Types
 
float
 
character
Java Types
const
char
 
character varying
Java Types
 
char
 
long character
Java Types
const
char
*
long text
Java Types
 
char
*
long var character
Java Types
 
char
*
default
Java Types
 
char
*
See also
Type mappings between programming languages and data types