Class OracleJdbcJsonGeneratorEncoder
java.lang.Object
io.micronaut.serde.oracle.jdbc.json.OracleJdbcJsonGeneratorEncoder
- All Implemented Interfaces:
Encoder
,AutoCloseable
Implementation of the
Encoder
interface for Oracle JDBC JSON.- Since:
- 1.2.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionReturn an analysis of the current path.encodeArray
(io.micronaut.core.type.Argument<?> type) Encodes an array.void
encodeBigDecimal
(BigDecimal value) Encode a BigDecimal.void
encodeBigInteger
(BigInteger value) Encode a BigInteger.void
encodeBoolean
(boolean value) Encode a boolean.void
encodeByte
(byte value) Encode a byte.void
encodeChar
(char value) Encode a char.void
encodeDouble
(double value) Encode a double.void
encodeFloat
(float value) Encode a float.void
encodeInt
(int value) Encode an int.void
Encode a key.void
encodeLocalDateTime
(LocalDateTime localDateTime) Encodes local date time.void
encodeLong
(long value) Encode a long.void
Encodenull
.encodeObject
(io.micronaut.core.type.Argument<?> type) Encodes an object.void
encodeOffsetDateTime
(OffsetDateTime offsetDateTime) Encodes offset date time.void
encodeShort
(short value) Encode a short.void
encodeString
(String value) Encode a string.void
Finalize a previously created structure, like an array or object.
-
Method Details
-
encodeArray
Description copied from interface:Encoder
Encodes an array.- Specified by:
encodeArray
in interfaceEncoder
- Parameters:
type
- The array type, nevernull
- Returns:
- The encoder, never
null
-
encodeObject
Description copied from interface:Encoder
Encodes an object.- Specified by:
encodeObject
in interfaceEncoder
- Parameters:
type
- The object type, nevernull
- Returns:
- The encoder, never
null
-
finishStructure
public void finishStructure()Description copied from interface:Encoder
Finalize a previously created structure, like an array or object.- Specified by:
finishStructure
in interfaceEncoder
-
encodeKey
Description copied from interface:Encoder
Encode a key. -
encodeString
Description copied from interface:Encoder
Encode a string.- Specified by:
encodeString
in interfaceEncoder
- Parameters:
value
- The string, nevernull
-
encodeBoolean
public void encodeBoolean(boolean value) Description copied from interface:Encoder
Encode a boolean.- Specified by:
encodeBoolean
in interfaceEncoder
- Parameters:
value
- The boolean
-
encodeByte
public void encodeByte(byte value) Description copied from interface:Encoder
Encode a byte.- Specified by:
encodeByte
in interfaceEncoder
- Parameters:
value
- The byte
-
encodeShort
public void encodeShort(short value) Description copied from interface:Encoder
Encode a short.- Specified by:
encodeShort
in interfaceEncoder
- Parameters:
value
- The short
-
encodeChar
public void encodeChar(char value) Description copied from interface:Encoder
Encode a char.- Specified by:
encodeChar
in interfaceEncoder
- Parameters:
value
- The char
-
encodeInt
public void encodeInt(int value) Description copied from interface:Encoder
Encode an int. -
encodeLong
public void encodeLong(long value) Description copied from interface:Encoder
Encode a long.- Specified by:
encodeLong
in interfaceEncoder
- Parameters:
value
- The long
-
encodeFloat
public void encodeFloat(float value) Description copied from interface:Encoder
Encode a float.- Specified by:
encodeFloat
in interfaceEncoder
- Parameters:
value
- The float
-
encodeDouble
public void encodeDouble(double value) Description copied from interface:Encoder
Encode a double.- Specified by:
encodeDouble
in interfaceEncoder
- Parameters:
value
- The double
-
encodeBigInteger
Description copied from interface:Encoder
Encode a BigInteger.- Specified by:
encodeBigInteger
in interfaceEncoder
- Parameters:
value
- The BigInteger, nevernull
-
encodeBigDecimal
Description copied from interface:Encoder
Encode a BigDecimal.- Specified by:
encodeBigDecimal
in interfaceEncoder
- Parameters:
value
- The BigDecimal, nevernull
-
encodeNull
public void encodeNull()Description copied from interface:Encoder
Encodenull
.- Specified by:
encodeNull
in interfaceEncoder
-
currentPath
Description copied from interface:Encoder
Return an analysis of the current path.- Specified by:
currentPath
in interfaceEncoder
- Returns:
- The current path if known
-
encodeLocalDateTime
Encodes local date time.- Parameters:
localDateTime
- the local date time
-
encodeOffsetDateTime
Encodes offset date time.- Parameters:
offsetDateTime
- the offset date time
-