public abstract class ResultColumn
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name
The name of the column.
|
protected java.lang.Object |
val
The value of the column.
|
| Constructor and Description |
|---|
ResultColumn(java.lang.String name,
java.lang.Object val)
Creates a new instance of
ResultColumn. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
boolean |
isNull()
Checks if the value is null.
|
protected java.lang.Object |
processObject(java.lang.Object o)
Processes an object.
|
<T> T |
toBlob()
Converts this result (in the form of blob) to the specified object type.
|
java.lang.Boolean |
toBoolean() |
java.lang.Double |
toDouble() |
java.lang.Float |
toFloat() |
java.lang.Integer |
toInt() |
java.lang.Long |
toLong() |
java.lang.Object |
toObject() |
java.lang.String |
toString() |
protected final java.lang.Object val
protected final java.lang.String name
public ResultColumn(java.lang.String name,
java.lang.Object val)
ResultColumn.name - The column name.val - The column value.protected java.lang.Object processObject(java.lang.Object o)
ResultSet
closes.o - The object in need of some kind of processing before being set.DB2ResultColumnpublic boolean isNull()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Integer toInt()
public java.lang.Double toDouble()
public java.lang.Float toFloat()
public java.lang.Long toLong()
public java.lang.Object toObject()
public java.lang.Boolean toBoolean()
public <T> T toBlob()
throws DatabaseEngineRuntimeException
T - The type to convert.DatabaseEngineRuntimeException - If the value is not a blob or if
something goes wrong when reading the object.Copyright © 2018 Feedzai. All Rights Reserved.