Database-Specific Mappings
Scheer PAS supports the following database client libraries: DB2, Microsoft SQL Server, MySQL, MariaDB, Oracle and SQLite. If you want to use other database systems, please contact the PAS support team.
This page lists the mappings of database-specific types to the xUML Base Types.
Oracle
These mappings are valid for Oracle version 8 or higher.
Data Type | Description | |
---|---|---|
| Contains a locator to a large binary file stored outside the database. Enables byte stream I/O access to external LOBs residing on the database server. Maximum size is 4 gigabytes. | Blob |
| An integer data type with a precision of 19 decimal digits. | Integer |
| Enables storage of binary data up to 4,096 bytes. | Blob |
| 32-bit floating point number. This data type requires 5 bytes, including the length byte. | Float |
| 64-bit floating point number. This data type requires 9 bytes, including the length byte. | Float |
| Enables your application to store a bit unconstrained by character semantics. | Boolean |
| A binary large object. Maximum size is 2 gigabytes. | Blob |
| Fixed length character data of length size bytes. Maximum size is 4,096 bytes. Default and minimum size is 1 byte. | String |
| A character large object containing single-byte characters. Both fixed-width and variable-width character sets are supported, both using the CHAR database character set. Maximum size is 2 gigabytes. When specifying String objects as CLOB parameters on stored procedures, you have to mark them with tag nativeType=CLOB. Otherwise the xUML Runtime might fail on doing the conversion (refer to Troubleshooting the SQL Adapter). | String |
| Valid date range from January 1, 4712 BC to December 31, 4712 AD. | DateTime |
| A number that can be measured in terms of precision (decimal value) or scale (fractional value). You can measure precision by using DECIMAL (p). You can measure scale by using NUMERIC (p, s). Precisions larger than the one you specify are acceptable, but smaller ones are not. | Float |
| Contains a precision defined during implementation, which must be greater than the precision of REAL. | Float |
| Enables you to specify the precision. The resulting precision must be at least as large as the precision you request. You can specify a precision of some value by typing FLOAT (p). For example, a portable application, may use a single precision on one platform and double precision on another. | Float |
| An integer value whose precision (the number of decimal values or bits that can be stored) is defined upon implementation. | Integer |
| Stores a period of time in years and months, where year_precision is the number of digits in the YEAR datetime field. Accepted values are 0 to 9. The default is 2. The size is fixed at 5 bytes. | Not supported |
| Stores a period of time in days, hours, minutes, and seconds, where day_precision is the maximum number of digits in the DAY datetime field. Accepted values are 0 to 9. The default is 2. fractional_seconds_precision is the number of digits in the fractional part of the SECOND field. Accepted values are 0 to 9. The default is 6. The size is fixed at 11 bytes. | Not supported |
| Character data of variable length up to 2 gigabytes, or 231 -1 bytes. | String |
| Raw binary data of variable length up to 2 gigabytes. | Blob |
| Stores but does not interpret up to 2 gigabytes of variable binary data. | Blob |
| Variable-length character string having maximum length size bytes. Maximum size is 2 gigabytes, and minimum is 1. You must specify size for a VARCHAR2. | String |
| Fixed-length character data of length size characters. 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 2000 bytes. Default and minimum size is 1 character. | String |
| A character large object containing Unicode characters. Both fixed-width and variable-width character sets are supported, both using the database national character set. Maximum size is (4 gigabytes - 1) * (database block size). Stores national character set data. | String |
| 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. A number with no precision now maps to DOUBLE PRECISION in Oracle compatibility mode. | Integer |
| A number that can be measured in terms of precision (decimal value) or scale (fractional value). You can measure precision by using DECIMIAL (p). You can measure scale by using NUMERIC (p, s). The scale cannot be negative and cannot be larger than the number itself. | Float |
| Variable-length Unicode character string having maximum length size characters. 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 4000 bytes. You must specify size for NVARCHAR2. | String |
| Raw binary data of length size bytes. Maximum size is 4,096 bytes. You must specify size for a RAW value. | Blob |
| Enables you to request a single-precision floating point with no options. The precision is chosen by the implementation and is normally the default single-precision data type on the hardware platform. | Float |
| A 16-byte hexadecimal string representing the unique address of a row in its table. ROWID is primarily for values returned by the ROWID pseudo-column. | String |
| An integer value whose precision is defined upon implementation but whose value is no greater than the implementation of INTEGER. | Integer |
| Stores a time value in terms of hours minutes and seconds. Hours are represented by two digits ranging from 00 through 23. Minutes are also represented by two digits ranging from 00 through 59. The seconds value ranges from 00 through 60. | DateTime |
| Stores the year, month, and day values of a date and the hour, minute, second value of time. TIMESTAMP length and restrictions correspond to DATE and TIME values, except that in TIME the default is 0 and in TIMESTAMP it is 6. | DateTime |
| An integer with a precision of 1 byte (-128 to +127). | Integer |
| Base 64 string representing the logical address of a row of an index-organized table. The optional size is the size of a column of type UROWID. The maximum size and default is 4000 bytes. | Not supported |
| Stores but does not interpret variable binary data. | Blob |
| See VARCHAR2 | String |
| Variable-length character string with a maximum length size of 4,096 bytes (minimum is 1). You must specify size for a VARCHAR2. | String |
MySQL
Refer to the MySQL documentation for more information on specific types. You can click on the MySQL type to jump directly to the corresponding MySQL documentation page.
Data Type | Description | |
---|---|---|
A large integer. The signed range is -9223372036854775808 to 9223372036854775807. The unsigned range is 0 to 18446744073709551615. | Integer | |
The | Blob | |
| A bit-field type. | Not supported |
A | Blob | |
The length of a | String | |
A date. The supported range is '1000-01-01' to '9999-12-31'. MySQL displays | DateTime | |
A date and time combination. The supported range is '1000-01-01 00:00:00.000000' to '9999-12-31 23:59:59.999999'. MySQL displays | DateTime | |
A packed “exact” fixed-point number.
All basic calculations (+, -, *, /) with | Float | |
A normal-size (double-precision) floating-point number. Permissible values are -1.7976931348623157E+308 to-2.2250738585072014E-308, 0, and 2.2250738585072014E-308 to 1.7976931348623157E+308. These are the theoretical limits, based on the IEEE standard. The actual range might be slightly smaller depending on your hardware or operating system.
| Float | |
An enumeration. A string object that can have only one value, chosen from the list of values ' value1 ',' value2 ', ..., NULL or the special '' error value. An | String | |
A small (single-precision) floating-point number. Permissible values are -3.402823466E+38 to -1.175494351E-38, 0, and 1.175494351E-38 to 3.402823466E+38. These are the theoretical limits, based on the IEEE standard. The actual range might be slightly smaller depending on your hardware or operating system.
Using | Float | |
A normal-size integer. The signed range is -2147483648 to 2147483647. The unsigned range is 0 to4294967295. | Integer | |
A BLOB column with a maximum length of 4,294,967,295 or 4GB (2 32 − 1) bytes. The effective maximum length of | Blob | |
A | String | |
A BLOB column with a maximum length of 16,777,215 (2 24 − 1) bytes. Each | Blob | |
A medium-sized integer. The signed range is -8388608 to 8388607. The unsigned range is 0 to 16777215. | Integer | |
A TEXT column with a maximum length of 16,777,215 (2 24 − 1) characters. The effective maximum length is less if the value contains multibyte characters. Each | String | |
A set. A string object that can have zero or more values, each of which must be chosen from the list of values' value1 ', ' value2 ', ... A | String | |
A small integer. The signed range is -32768 to 32767. The unsigned range is 0 to 65535. | Integer | |
A An optional length | String | |
| A time. The range is '-838:59:59.000000' to '838:59:59.000000'. MySQL displays | Not supported |
A timestamp. The range is '1970-01-01 00:00:01.000000' UTC to '2038-01-19 03:14:07.999999' UTC. An optional fsp value in the range from 0 to 6 may be given to specify fractional seconds precision. A value of 0 signifies that there is no fractional part. If omitted, the default precision is 0. | DateTime | |
A BLOB column with a maximum length of 255 (2 8 − 1) bytes. Each | Blob | |
A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255. | Integer | |
A TEXT column with a maximum length of 255 (2 8 − 1) characters. The effective maximum length is less if the value contains multi-byte characters. Each | String | |
The | Blob | |
Values in | String | |
A year in four-digit format. MySQL displays | String |
SQL Server
Refer to the SQL Server Language documentation for more information on specific Transact-SQL types. You can click on the type names to jump directly to the corresponding documentation page.
Data Type | Description | |
---|---|---|
A large integer. The signed range is from -9223372036854775808 (-2 63 − 1) to 9223372036854775807 (2 63 − 1). | Integer | |
The | Blob | |
An integer data type that can take a value of 1, 0, or NULL. | Boolean | |
| String | |
A date and time combination. | DateTime | |
Fixed precision and scale numeric data, which allows numbers from (-10 38 + 1) to (10 38 - 1). | Float | |
The | Float | |
Integer data from -2147483648 (-2 31) to 2147483647 (2 31 -1). | Integer | |
| String | |
Functionally equivalent to | Float | |
The If using SQLNCLI/ODBC API for SQL Adapter with MS SQL Server, you may need to mark the field as CLOB in your model, when long character data is inserted into a | String / CLOB | |
The | Float | |
A date and time combination. | DateTime | |
A small integer. The signed range is from -32,768 (-2 15) to 32,767 (2 15 - 1). | Integer | |
The If using SQLNCLI/ODBC API for SQL Adapter with MS SQL Server, you may need to mark the field as CLOB in your model, when long character data is inserted into a | String / CLOB | |
A very small integer. The range is 0 to 255. | Integer | |
The | Blob | |
Similar to | String |
Related Pages: