binary_float
Is a 32-bit, single-precision floating-point number
datatype. Each BINARY_FLOAT value requires 5
bytes, including a length byte.
Code Block | ||
---|---|---|
| ||
<sql-type jdbc-type="NUMERIC" name="binary_float"
hibernate-type="java.lang.Float" /> |
language | java |
---|
Data type | RapidClipse default mapping | Generated Javacode (example) | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BINARY_FLOAT Is a 32-bit, single-precision floating-point number |
|
|
BINARY_ |
DOUBLE Is a 64-bit, double-precision floating-point number |
|
|
ROWID |
Store the addresses of rows in ordinary tables. |
|
|
LONG |
Columns defined as LONG can store variable-length |
character data |
containingup to 2 gigabytes of |
information. LONG data is text data that is to be |
appropriately converted when moving among |
different systems. |
-
|
|
NCHAR(n) |
The |
NCHAR datatype stores fixed-length |
character strings that correspond to the |
national character set. |
-
|
|
NCLOB |
NCLOB datatype stores up to 128 terabytes |
of character data in the database. |
NCLOBs store Unicode national character set data. |
|
|
CHAR (n) The CHAR datatype stores fixed-length character strings. |
When you create a table with a CHAR column, you must |
specify a string length (in bytes or characters) between |
1 and 2000 bytes for the CHAR column width. The |
default is 1 byte. |
-
|
|
VARCHAR The VARCHAR datatype is synonymous with the |
VARCHAR2 datatype. To avoid possible changes |
in behavior, always use the |
VARCHAR2
VARCHAR2 datatype to |
store variable-length character strings. |
Hibernate default mapping |
-
-
|
nvarchar2
NVARCHAR2 is a Unicode datatype that
store Unicode character data. The character set
NVARCHAR2 datatype can only be either
AL16UTF16 or UTF8 and is specified at
database creation time as the national character
set. AL16UTF16 and UTF8 are both Unicode encoding.
-
-NVARCHAR2 Variable-length Unicode character string having maximum length size characters. You must specify size for NVARCHAR2. The number of bytes can be up to two times size for AL16UTF16 encoding and three times size for UTF8 encoding. Maximum size is determined by the national character set definition, with an upper limit of:
|
|
|
varchar2
The VARCHAR2 datatype stores variable-length character
strings. When you create a table with a VARCHAR2
column, you specify a maximum string length (in bytes or
characters) between 1 and 4000 bytes for the VARCHAR2
column. For each row, Oracle Database stores each value
in the column as a variable-length field unless a value
exceeds the column's maximum length, in which case
Oracle Database returns an error.
VARCHAR2(size [BYTE | CHAR]) Variable-length character string having maximum length size bytes or characters. You must specify size for VARCHAR2. Minimum size is 1 byte or 1 character. Maximum size is:
BYTE indicates that the column will have byte length semantics. CHAR indicates that the column will have character semantics. | Hibernate default mapping |
|
clob
The CLOB datatype stores up to 128 terabytes
of character data in the database. CLOBs store database
CLOB A character large object containing single-byte or multibyte characters. Both fixed-width and variable-width character sets are supported, both using the database character set. Maximum size is (4 gigabytes - 1) * (database block size). |
|
|
number
The NUMBER datatype stores fixed and floating-point
numbers. Numbers of virtually any magnitude can be
stored and are guaranteed portable among different
systems operating Oracle Database, up to 38 digits
of precision
| ||||||||||||||||||||||
NUMBER [(p [, s])] Number having precision p and scale s. The precision p can range from 1 to 38. The scale s can range from -84 to 127. Both precision and scale are in decimal digits. A NUMBER value requires from 1 to 22 bytes. |
|
|
Code Block | ||
---|---|---|
| ||
@Column(name = "NUMBERTEST", precision = 22,
scale = 0)
public Double getNumbertest() {
return this.numbertest;
} |
date
The DATE
datatype stores point-in-time values (dates
and times) in a table. The DATE
datatype stores the
year (including the century), the month, the day, the
hours, the minutes, and the seconds (after midnight).
Oracle Database can store dates in the Julian era,
ranging from January 1, 4712 BCE through December
31, 9999 CE (Common Era, or 'AD'). Unless BCE
('BC' in the format mask) is specifically used, CE date
entries are the default.
Oracle Database uses its own internal format to store
dates. Date data is stored in fixed-length fields of seven
bytes each, corresponding to century, year, month, day,
hour, minute, and second.
-
-
Code Block | ||
---|---|---|
| ||
private Date datetest; |
Code Block | ||
---|---|---|
| ||
@Temporal(TemporalType.DATE)
@Column(name = "DATETEST", length = 7)
public Date getDatetest() {
return this.datetest;
} |
| ||||||||||||
DATE The DATE data type stores date and time information. Although date and time information can be represented in both character and number data types, the DATE data type has special associated properties. For each DATE value, Oracle stores the following information: year, month, day, hour, minute, and second. The default date values are determined as follows:
| Hibernate default mapping |
| ||||||||||
TIMESTAMP[(fractional_seconds_precision)] The TIMESTAMP data type is an extension of the DATE data type. It stores the year, month, and day of the DATE data type, plus hour, minute, and second values. This data type is useful for storing precise time values and for collecting and evaluating date information across geographic regions. fractional_seconds_precision optionally specifies the number of digits Oracle stores in the fractional part of the SECOND datetime field. When you create a column of this data type, the value can be a number in the range 0 to 9. The default is 6. | Hibernate default mapping |
| ||||||||||
BLOB |
The BLOB datatype stores unstructured binary data in
the database. BLOBs can store up to 128 terabytes of
A binary large object. Maximum size is (4 gigabytes - 1) * (database block size). |
|
|