de.uplanet.lucy.server.util.db
Interface IDbRow


public interface IDbRow

Version:
$Revision: 76903 $

Method Summary
 java.math.BigDecimal getBigDecimalValue(int p_iIdx)
          Get a decimal number value.
 java.math.BigDecimal getBigDecimalValue(int p_iIdx, java.math.BigDecimal p_valueIfNull)
          Get a decimal number value.
 java.lang.Boolean getBooleanValue(int p_iIdx)
          Get a boolean value.
 java.lang.Boolean getBooleanValue(int p_iIdx, java.lang.Boolean p_valueIfNull)
          Get a boolean value.
 byte getByteValue(int p_iIdx)
          Get a byte value.
 java.lang.Byte getByteValue(int p_iIdx, java.lang.Byte p_valueIfNull)
          Get a byte value.
 java.lang.Double getDoubleValue(int p_iIdx)
          Get a double value.
 java.lang.Double getDoubleValue(int p_iIdx, java.lang.Double p_valueIfNull)
          Get a double precision float value.
 java.lang.Float getFloatValue(int p_iIdx)
          Get a single precision float value.
 java.lang.Float getFloatValue(int p_iIdx, java.lang.Float p_valueIfNull)
          Get a single precision float value.
 java.lang.Integer getIntValue(int p_iIdx)
          Get an integer value.
 java.lang.Integer getIntValue(int p_iIdx, java.lang.Integer p_valueIfNull)
          Get an integer value.
 java.lang.Long getLongValue(int p_iIdx)
          Get a long value.
 java.lang.Long getLongValue(int p_iIdx, java.lang.Long p_valueIfNull)
          Get a long value.
 java.lang.Short getShortValue(int p_iIdx)
          Get a short value.
 java.lang.Short getShortValue(int p_iIdx, java.lang.Short p_valueIfNull)
          Get a short value.
 java.lang.String getStringValue(int p_iIdx)
          Get a string value.
 java.lang.String getStringValue(int p_iIdx, java.lang.String p_valueIfNull)
          Get a string value.
 java.sql.Timestamp getTimestampValue(int p_iIdx)
          Get a timestamp value.
 java.sql.Timestamp getTimestampValue(int p_iIdx, java.sql.Timestamp p_valueIfNull)
          Get a timestamp value.
 java.lang.Object getValue(int p_iIdx)
           
 java.lang.Object getValue(int p_iIdx, java.lang.Object p_valueIfNull)
           
 IValueHolder<?> getValueHolder(int p_iIdx)
           
 IValueHolder<?> getValueHolder(int p_iIdx, javax.xml.namespace.QName p_qmnDataType)
           
 IValueHolder<?> getValueHolder(int p_iIdx, javax.xml.namespace.QName p_qmnDataType, IValueHolder<?> p_vhIfNull)
           
 IValueHolder<?> getValueHolder(int p_iIdx, java.lang.String p_strDataTypeAsSerializedQName)
           
 IValueHolder<?> getValueHolder(int p_iIdx, java.lang.String p_strDataTypeAsSerializedQName, IValueHolder<?> p_vhIfNull)
           
 int size()
           
 java.lang.Object value(int p_iIdx)
          Deprecated. 
 boolean wasNull(int p_iIdx)
          Check if the value in the given column was null.
 

Method Detail

size

int size()
Returns:
The number of columns in this row.

getValueHolder

IValueHolder<?> getValueHolder(int p_iIdx)
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getValueHolder

IValueHolder<?> getValueHolder(int p_iIdx,
                               javax.xml.namespace.QName p_qmnDataType)
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getValueHolder

IValueHolder<?> getValueHolder(int p_iIdx,
                               java.lang.String p_strDataTypeAsSerializedQName)
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getValueHolder

IValueHolder<?> getValueHolder(int p_iIdx,
                               javax.xml.namespace.QName p_qmnDataType,
                               IValueHolder<?> p_vhIfNull)
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getValueHolder

IValueHolder<?> getValueHolder(int p_iIdx,
                               java.lang.String p_strDataTypeAsSerializedQName,
                               IValueHolder<?> p_vhIfNull)
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

value

@Deprecated
java.lang.Object value(int p_iIdx)
                       throws java.sql.SQLException
Deprecated. 

Throws:
java.sql.SQLException

getValue

java.lang.Object getValue(int p_iIdx)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getValue

java.lang.Object getValue(int p_iIdx,
                          java.lang.Object p_valueIfNull)

getBooleanValue

java.lang.Boolean getBooleanValue(int p_iIdx)
                                  throws de.uplanet.lucy.server.util.db.ValueCastException
Get a boolean value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
A boolean value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to boolean.

getBooleanValue

java.lang.Boolean getBooleanValue(int p_iIdx,
                                  java.lang.Boolean p_valueIfNull)
                                  throws de.uplanet.lucy.server.util.db.ValueCastException
Get a boolean value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
A boolean value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to boolean.

getByteValue

byte getByteValue(int p_iIdx)
                  throws de.uplanet.lucy.server.util.db.ValueCastException
Get a byte value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
A byte value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to byte.

getByteValue

java.lang.Byte getByteValue(int p_iIdx,
                            java.lang.Byte p_valueIfNull)
                            throws de.uplanet.lucy.server.util.db.ValueCastException
Get a byte value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
A byte value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to byte.

getShortValue

java.lang.Short getShortValue(int p_iIdx)
                              throws de.uplanet.lucy.server.util.db.ValueCastException
Get a short value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
A short value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to short.

getShortValue

java.lang.Short getShortValue(int p_iIdx,
                              java.lang.Short p_valueIfNull)
                              throws de.uplanet.lucy.server.util.db.ValueCastException
Get a short value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
A short value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to short.

getIntValue

java.lang.Integer getIntValue(int p_iIdx)
                              throws de.uplanet.lucy.server.util.db.ValueCastException
Get an integer value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
An integer value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to integer.

getIntValue

java.lang.Integer getIntValue(int p_iIdx,
                              java.lang.Integer p_valueIfNull)
                              throws de.uplanet.lucy.server.util.db.ValueCastException
Get an integer value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
An integer value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to integer.

getLongValue

java.lang.Long getLongValue(int p_iIdx)
                            throws de.uplanet.lucy.server.util.db.ValueCastException
Get a long value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
A long value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to long.

getLongValue

java.lang.Long getLongValue(int p_iIdx,
                            java.lang.Long p_valueIfNull)
                            throws de.uplanet.lucy.server.util.db.ValueCastException
Get a long value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
A long value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to long.

getFloatValue

java.lang.Float getFloatValue(int p_iIdx)
                              throws de.uplanet.lucy.server.util.db.ValueCastException
Get a single precision float value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
A float value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to float.

getFloatValue

java.lang.Float getFloatValue(int p_iIdx,
                              java.lang.Float p_valueIfNull)
                              throws de.uplanet.lucy.server.util.db.ValueCastException
Get a single precision float value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
A float value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to float.

getDoubleValue

java.lang.Double getDoubleValue(int p_iIdx)
                                throws de.uplanet.lucy.server.util.db.ValueCastException
Get a double value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
A double value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to double.

getDoubleValue

java.lang.Double getDoubleValue(int p_iIdx,
                                java.lang.Double p_valueIfNull)
                                throws de.uplanet.lucy.server.util.db.ValueCastException
Get a double precision float value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
A double value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to double.

getBigDecimalValue

java.math.BigDecimal getBigDecimalValue(int p_iIdx)
                                        throws de.uplanet.lucy.server.util.db.ValueCastException
Get a decimal number value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
A BigDecimal value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to BigDecimal.

getBigDecimalValue

java.math.BigDecimal getBigDecimalValue(int p_iIdx,
                                        java.math.BigDecimal p_valueIfNull)
                                        throws de.uplanet.lucy.server.util.db.ValueCastException
Get a decimal number value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
A BigDecimal value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to BigDecimal.

getStringValue

java.lang.String getStringValue(int p_iIdx)
                                throws de.uplanet.lucy.server.util.db.ValueCastException
Get a string value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
A string value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to a string.

getStringValue

java.lang.String getStringValue(int p_iIdx,
                                java.lang.String p_valueIfNull)
                                throws de.uplanet.lucy.server.util.db.ValueCastException
Get a string value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
A string value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to string.

getTimestampValue

java.sql.Timestamp getTimestampValue(int p_iIdx)
                                     throws de.uplanet.lucy.server.util.db.ValueCastException
Get a timestamp value.

Parameters:
p_iIdx - The 1-based column index.
Returns:
A timestamp value, or null.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to a timestamp.

getTimestampValue

java.sql.Timestamp getTimestampValue(int p_iIdx,
                                     java.sql.Timestamp p_valueIfNull)
                                     throws de.uplanet.lucy.server.util.db.ValueCastException
Get a timestamp value.

Parameters:
p_iIdx - The 1-based column index.
p_valueIfNull - The value to be returned if the database value was NULL.
Returns:
A timestamp value, or p_valueIfNull.
Throws:
de.uplanet.lucy.server.util.db.ValueCastException - If the database value could not be cast to timestamp.

wasNull

boolean wasNull(int p_iIdx)
Check if the value in the given column was null.

Parameters:
p_iIdx - The 1-based column index.
Returns:
true if the value was null, or false otherwise.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.