Package solutions.a2.cdc.oracle
Class OraDumpDecoder
java.lang.Object
solutions.a2.cdc.oracle.OraDumpDecoder
Wrapper for converting Oracle internal NUMBER/DATE/TIMESTAMP/VARCHAR2 representation to Java types
For more information about Oracle NUMBER format:
How are Numbers Saved in Oracle?
Number
How Does Oracle Store Internal Numeric Data? (Doc ID 1031902.6)
Class NUMBER
- Author:
- Aleksei Veremeev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublefromBinaryDouble(String hex) static floatfromBinaryFloat(String hex) static StringfromClobNclob(String hex) fromNvarchar2(String hex) fromVarchar2(String hex) static BigDecimaltoBigDecimal(String hex) static BigIntegertoBigInteger(String hex) static bytestatic byte[]toByteArray(String hex) static doublestatic floatstatic StringtoHexString(byte[] hex) static intstatic longstatic shortstatic TimestamptoTimestamp(String hex) Convert Oracle Type 12 dump to LocalDateTime Based on: Class TIMESTAMPTZ How does Oracle store the DATE datatype internally? (Doc ID 69028.1)
-
Constructor Details
-
OraDumpDecoder
- Parameters:
nlsCharacterSet- - Oracle RDBMS NLS_CHARACTERSETnlsNcharCharacterSet- - Oracle RDBMS NLS_NCHAR_CHARACTERSET
-
-
Method Details
-
toByte
- Throws:
SQLException
-
toShort
- Throws:
SQLException
-
toInt
- Throws:
SQLException
-
toLong
- Throws:
SQLException
-
toBigInteger
- Throws:
SQLException
-
toFloat
- Throws:
SQLException
-
fromBinaryFloat
- Throws:
SQLException
-
toDouble
- Throws:
SQLException
-
fromBinaryDouble
- Throws:
SQLException
-
toBigDecimal
- Throws:
SQLException
-
fromVarchar2
- Throws:
SQLException
-
fromNvarchar2
- Throws:
SQLException
-
fromClobNclob
- Throws:
SQLException
-
toTimestamp
Convert Oracle Type 12 dump to LocalDateTime Based on: Class TIMESTAMPTZ How does Oracle store the DATE datatype internally? (Doc ID 69028.1)- Parameters:
hex- - Oracle Type 12 DATE Oracle Type 180 TIMESTAMP Oracle Type 181 TIMESTAMP WITH TIME ZONE- Returns:
- Throws:
SQLException
-
toByteArray
-
toHexString
-