public final class DbDisconnectedRow extends groovy.lang.GroovyObjectSupport implements IDbRow
Modifier and Type | Method and Description |
---|---|
Object |
getAt(String p_strName) |
BigDecimal |
getBigDecimalValue(int p_iIdx)
Get a decimal number value.
|
BigDecimal |
getBigDecimalValue(int p_iIdx,
BigDecimal p_valueIfNull)
Get a decimal number value.
|
Boolean |
getBooleanValue(int p_iIdx)
Get a boolean value.
|
Boolean |
getBooleanValue(int p_iIdx,
Boolean p_valueIfNull)
Get a boolean value.
|
byte |
getByteValue(int p_iIdx)
Get a byte value.
|
Byte |
getByteValue(int p_iIdx,
Byte p_valueIfNull)
Get a byte value.
|
Date |
getDateValue(int p_iIdx)
Get a date value.
|
Date |
getDateValue(int p_iIdx,
Date p_valueIfNull)
Get a date value.
|
Double |
getDoubleValue(int p_iIdx)
Get a double value.
|
Double |
getDoubleValue(int p_iIdx,
Double p_valueIfNull)
Get a double precision float value.
|
Float |
getFloatValue(int p_iIdx)
Get a single precision float value.
|
Float |
getFloatValue(int p_iIdx,
Float p_valueIfNull)
Get a single precision float value.
|
Integer |
getIntValue(int p_iIdx)
Get an integer value.
|
Integer |
getIntValue(int p_iIdx,
Integer p_valueIfNull)
Get an integer value.
|
Long |
getLongValue(int p_iIdx)
Get a long value.
|
Long |
getLongValue(int p_iIdx,
Long p_valueIfNull)
Get a long value.
|
Object |
getProperty(String p_strName) |
Short |
getShortValue(int p_iIdx)
Get a short value.
|
Short |
getShortValue(int p_iIdx,
Short p_valueIfNull)
Get a short value.
|
String |
getStringValue(int p_iIdx)
Get a string value.
|
String |
getStringValue(int p_iIdx,
String p_valueIfNull)
Get a string value.
|
Timestamp |
getTimestampValue(int p_iIdx)
Get a timestamp value.
|
Timestamp |
getTimestampValue(int p_iIdx,
Timestamp p_valueIfNull)
Get a timestamp value.
|
Date |
getTimeValue(int p_iIdx)
Get a time value.
|
Date |
getTimeValue(int p_iIdx,
Date p_valueIfNull)
Get a time value.
|
Object |
getValue(int p_iIdx)
Get a value.
|
Object |
getValue(int p_iIdx,
Object p_valueIfNull)
Get a value.
|
IValueHolder<?> |
getValueHolder(int p_iIdx) |
IValueHolder<?> |
getValueHolder(int p_iIdx,
QName p_qmnDataType) |
IValueHolder<?> |
getValueHolder(int p_iIdx,
QName p_qmnDataType,
IValueHolder<?> p_vhIfNull) |
IValueHolder<?> |
getValueHolder(int p_iIdx,
String p_strDataTypeAsSerializedQName) |
IValueHolder<?> |
getValueHolder(int p_iIdx,
String p_strDataTypeAsSerializedQName,
IValueHolder<?> p_vhIfNull) |
int |
size()
Get the number of columns in this row.
|
Object |
value(int p_iIdx)
Deprecated.
Note: This method will be removed in future versions of this API.
Please use the
getXxxValue(int) methods instead. |
boolean |
wasNull(int p_iIdx)
Check if the value in the given column was
null . |
public IValueHolder<?> getValueHolder(int p_iIdx)
getValueHolder
in interface IValueHolderAccess
public IValueHolder<?> getValueHolder(int p_iIdx, QName p_qmnDataType) throws SQLException
getValueHolder
in interface IValueHolderAccess
SQLException
public IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName) throws SQLException
getValueHolder
in interface IValueHolderAccess
SQLException
public IValueHolder<?> getValueHolder(int p_iIdx, QName p_qmnDataType, IValueHolder<?> p_vhIfNull) throws SQLException
getValueHolder
in interface IValueHolderAccess
SQLException
public IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName, IValueHolder<?> p_vhIfNull) throws SQLException
getValueHolder
in interface IValueHolderAccess
SQLException
public int size()
IDbRow
@Deprecated public Object value(int p_iIdx)
getXxxValue(int)
methods instead.public Object getValue(int p_iIdx)
IValueAccess
getValue
in interface IValueAccess
p_iIdx
- The 1-based column index.public Object getValue(int p_iIdx, Object p_valueIfNull)
IValueAccess
getValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.public Boolean getBooleanValue(int p_iIdx) throws ValueCastException
IValueAccess
getBooleanValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to boolean.public Boolean getBooleanValue(int p_iIdx, Boolean p_valueIfNull) throws ValueCastException
IValueAccess
getBooleanValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to boolean.public byte getByteValue(int p_iIdx) throws ValueCastException
IValueAccess
getByteValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to byte.public Byte getByteValue(int p_iIdx, Byte p_valueIfNull) throws ValueCastException
IValueAccess
getByteValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to byte.public Short getShortValue(int p_iIdx) throws ValueCastException
IValueAccess
getShortValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to short.public Short getShortValue(int p_iIdx, Short p_valueIfNull) throws ValueCastException
IValueAccess
getShortValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to short.public Integer getIntValue(int p_iIdx) throws ValueCastException
IValueAccess
getIntValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to integer.public Integer getIntValue(int p_iIdx, Integer p_valueIfNull) throws ValueCastException
IValueAccess
getIntValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to integer.public Long getLongValue(int p_iIdx) throws ValueCastException
IValueAccess
getLongValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to long.public Long getLongValue(int p_iIdx, Long p_valueIfNull) throws ValueCastException
IValueAccess
getLongValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to long.public Float getFloatValue(int p_iIdx) throws ValueCastException
IValueAccess
getFloatValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to float.public Float getFloatValue(int p_iIdx, Float p_valueIfNull) throws ValueCastException
IValueAccess
getFloatValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to float.public Double getDoubleValue(int p_iIdx) throws ValueCastException
IValueAccess
getDoubleValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to double.public Double getDoubleValue(int p_iIdx, Double p_valueIfNull) throws ValueCastException
IValueAccess
getDoubleValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to double.public BigDecimal getBigDecimalValue(int p_iIdx) throws ValueCastException
IValueAccess
getBigDecimalValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to BigDecimal.public BigDecimal getBigDecimalValue(int p_iIdx, BigDecimal p_valueIfNull) throws ValueCastException
IValueAccess
getBigDecimalValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to BigDecimal.public String getStringValue(int p_iIdx) throws ValueCastException
IValueAccess
getStringValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to a string.public String getStringValue(int p_iIdx, String p_valueIfNull) throws ValueCastException
IValueAccess
getStringValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to string.public Timestamp getTimestampValue(int p_iIdx) throws ValueCastException
IValueAccess
getTimestampValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to a timestamp.public Timestamp getTimestampValue(int p_iIdx, Timestamp p_valueIfNull) throws ValueCastException
IValueAccess
getTimestampValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to timestamp.public Date getDateValue(int p_iIdx) throws ValueCastException
IValueAccess
getDateValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.ValueCastException
- If the database value could not be cast to date.public Date getDateValue(int p_iIdx, Date p_valueIfNull) throws ValueCastException
IValueAccess
getDateValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.ValueCastException
- If the database value could not be cast to date.public Date getTimeValue(int p_iIdx) throws SQLException, ValueCastException
IValueAccess
getTimeValue
in interface IValueAccess
p_iIdx
- The 1-based column index.null
.SQLException
- If a database error occurred.ValueCastException
- If the database value could not be cast to time.public Date getTimeValue(int p_iIdx, Date p_valueIfNull) throws SQLException, ValueCastException
IValueAccess
getTimeValue
in interface IValueAccess
p_iIdx
- The 1-based column index.p_valueIfNull
- The value to be returned if the database value was NULL
.p_valueIfNull
.SQLException
- If a database error occurred.ValueCastException
- If the database value could not be cast to time.public boolean wasNull(int p_iIdx)
IValueAccess
null
.wasNull
in interface IValueAccess
p_iIdx
- The 1-based column index.true
if the value was null
,
or false
otherwise.