Class OracleResultColumn
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.result.ResultColumn
-
- com.feedzai.commons.sql.abstraction.dml.result.OracleResultColumn
-
- All Implemented Interfaces:
Serializable
public class OracleResultColumn extends ResultColumn
The Oracle column result implementation.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.feedzai.commons.sql.abstraction.dml.result.ResultColumn
name, val
-
-
Constructor Summary
Constructors Constructor Description OracleResultColumn(String name, Object val)Creates a new instance ofOracleResultColumn.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TtoBlob()Converts this result (in the form of blob) to the specified object type.BooleantoBoolean()-
Methods inherited from class com.feedzai.commons.sql.abstraction.dml.result.ResultColumn
getName, isNull, processObject, toDouble, toFloat, toInt, toLong, toObject, toString
-
-
-
-
Constructor Detail
-
OracleResultColumn
public OracleResultColumn(String name, Object val)
Creates a new instance ofOracleResultColumn.- Parameters:
name- The column name.val- The value.
-
-
Method Detail
-
toBoolean
public Boolean toBoolean()
- Overrides:
toBooleanin classResultColumn- Returns:
- This value in the form of a Boolean.
-
toBlob
public <T> T toBlob() throws DatabaseEngineRuntimeExceptionDescription copied from class:ResultColumnConverts this result (in the form of blob) to the specified object type.- Overrides:
toBlobin classResultColumn- Type Parameters:
T- The type to convert.- Returns:
- The instance that was in the form of blob.
- Throws:
DatabaseEngineRuntimeException- If the value is not a blob or if something goes wrong when reading the object.
-
-