Architecting and designing : UML 2.0 Lite : Object/relational integration : Type mappings between programming languages and data types : C++ type mapping to from data element types
  
C++ type mapping to from data element types
From class model to logical (ER) data model
Source type
Target type
C++ pre-type
C++ type
C++ post-type
Data element type
 
Bool
 
bit
 
byte
 
tiny integer
 
short
 
small integer
 
int
 
integer
 
long
 
long binary
 
float
 
float
 
double
 
double precision
const
char
 
character
 
char
 
character varying
const
char
*
long character
 
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
C++ Types
 
BOOL
 
tiny integer
C++ Types
 
byte
 
small integer
C++ Types
 
short
 
integer
C++ Types
 
int
 
long binary
C++ Types
 
long
 
decimal
C++ Types
 
int
 
number
C++ Types
unsigned
double
 
float
C++ Types
 
float
 
real
C++ Types
 
float
 
double precision
C++ Types
 
double
 
money
C++ Types
 
float
 
character
C++ Types
const
char
 
character varying
C++ Types
 
char
 
long character
C++ Types
const
char
*
long text
C++ Types
 
char
*
long var character
C++ Types
 
char
*
default
C++ Types
 
char
*
See also
Type mappings between programming languages and data types