public abstract class ResultColumn extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
name
The name of the column.
|
protected Object |
val
The value of the column.
|
Constructor and Description |
---|
ResultColumn(String name,
Object val)
Creates a new instance of
ResultColumn . |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
boolean |
isNull()
Checks if the value is null.
|
protected Object |
processObject(Object o)
Processes an object.
|
<T> T |
toBlob()
Converts this result (in the form of blob) to the specified object type.
|
Boolean |
toBoolean() |
Double |
toDouble() |
Float |
toFloat() |
Integer |
toInt() |
Long |
toLong() |
Object |
toObject() |
String |
toString() |
protected final Object val
protected final String name
public ResultColumn(String name, Object val)
ResultColumn
.name
- The column name.val
- The column value.protected Object processObject(Object o)
ResultSet
closes.o
- The object in need of some kind of processing before being set.DB2ResultColumn
public boolean isNull()
public String getName()
public String toString()
public Integer toInt()
public Double toDouble()
public Float toFloat()
public Long toLong()
public Object toObject()
public 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 © 2014 Feedzai. All Rights Reserved.