de.uplanet.lucy.server.util.db
Class DbDisconnectedRow

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by de.uplanet.lucy.server.util.db.DbDisconnectedRow
All Implemented Interfaces:
IDbRow, groovy.lang.GroovyObject

public final class DbDisconnectedRow
extends groovy.lang.GroovyObjectSupport
implements IDbRow

Version:
$Revision: 85668 $

Method Summary
 java.lang.Object getAt(java.lang.String p_strName)
           
 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.Object getProperty(java.lang.String p_strName)
           
 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.
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValueHolder

public IValueHolder<?> getValueHolder(int p_iIdx)
Specified by:
getValueHolder in interface IDbRow

getValueHolder

public IValueHolder<?> getValueHolder(int p_iIdx,
                                      javax.xml.namespace.QName p_qmnDataType)
                               throws java.sql.SQLException
Specified by:
getValueHolder in interface IDbRow
Throws:
java.sql.SQLException

getValueHolder

public IValueHolder<?> getValueHolder(int p_iIdx,
                                      java.lang.String p_strDataTypeAsSerializedQName)
                               throws java.sql.SQLException
Specified by:
getValueHolder in interface IDbRow
Throws:
java.sql.SQLException

getValueHolder

public IValueHolder<?> getValueHolder(int p_iIdx,
                                      javax.xml.namespace.QName p_qmnDataType,
                                      IValueHolder<?> p_vhIfNull)
                               throws java.sql.SQLException
Specified by:
getValueHolder in interface IDbRow
Throws:
java.sql.SQLException

getValueHolder

public IValueHolder<?> getValueHolder(int p_iIdx,
                                      java.lang.String p_strDataTypeAsSerializedQName,
                                      IValueHolder<?> p_vhIfNull)
                               throws java.sql.SQLException
Specified by:
getValueHolder in interface IDbRow
Throws:
java.sql.SQLException

size

public int size()
Specified by:
size in interface IDbRow
Returns:
The number of columns in this row.

value

@Deprecated
public java.lang.Object value(int p_iIdx)
Deprecated. 

Specified by:
value in interface IDbRow

getValue

public java.lang.Object getValue(int p_iIdx)
Specified by:
getValue in interface IDbRow

getValue

public java.lang.Object getValue(int p_iIdx,
                                 java.lang.Object p_valueIfNull)
Specified by:
getValue in interface IDbRow

getBooleanValue

public java.lang.Boolean getBooleanValue(int p_iIdx)
                                  throws ValueCastException
Description copied from interface: IDbRow
Get a boolean value.

Specified by:
getBooleanValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
A boolean value, or null.
Throws:
ValueCastException - If the database value could not be cast to boolean.

getBooleanValue

public java.lang.Boolean getBooleanValue(int p_iIdx,
                                         java.lang.Boolean p_valueIfNull)
                                  throws ValueCastException
Description copied from interface: IDbRow
Get a boolean value.

Specified by:
getBooleanValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to boolean.

getByteValue

public byte getByteValue(int p_iIdx)
                  throws ValueCastException
Description copied from interface: IDbRow
Get a byte value.

Specified by:
getByteValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
A byte value, or null.
Throws:
ValueCastException - If the database value could not be cast to byte.

getByteValue

public java.lang.Byte getByteValue(int p_iIdx,
                                   java.lang.Byte p_valueIfNull)
                            throws ValueCastException
Description copied from interface: IDbRow
Get a byte value.

Specified by:
getByteValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to byte.

getShortValue

public java.lang.Short getShortValue(int p_iIdx)
                              throws ValueCastException
Description copied from interface: IDbRow
Get a short value.

Specified by:
getShortValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
A short value, or null.
Throws:
ValueCastException - If the database value could not be cast to short.

getShortValue

public java.lang.Short getShortValue(int p_iIdx,
                                     java.lang.Short p_valueIfNull)
                              throws ValueCastException
Description copied from interface: IDbRow
Get a short value.

Specified by:
getShortValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to short.

getIntValue

public java.lang.Integer getIntValue(int p_iIdx)
                              throws ValueCastException
Description copied from interface: IDbRow
Get an integer value.

Specified by:
getIntValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
An integer value, or null.
Throws:
ValueCastException - If the database value could not be cast to integer.

getIntValue

public java.lang.Integer getIntValue(int p_iIdx,
                                     java.lang.Integer p_valueIfNull)
                              throws ValueCastException
Description copied from interface: IDbRow
Get an integer value.

Specified by:
getIntValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to integer.

getLongValue

public java.lang.Long getLongValue(int p_iIdx)
                            throws ValueCastException
Description copied from interface: IDbRow
Get a long value.

Specified by:
getLongValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
A long value, or null.
Throws:
ValueCastException - If the database value could not be cast to long.

getLongValue

public java.lang.Long getLongValue(int p_iIdx,
                                   java.lang.Long p_valueIfNull)
                            throws ValueCastException
Description copied from interface: IDbRow
Get a long value.

Specified by:
getLongValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to long.

getFloatValue

public java.lang.Float getFloatValue(int p_iIdx)
                              throws ValueCastException
Description copied from interface: IDbRow
Get a single precision float value.

Specified by:
getFloatValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
A float value, or null.
Throws:
ValueCastException - If the database value could not be cast to float.

getFloatValue

public java.lang.Float getFloatValue(int p_iIdx,
                                     java.lang.Float p_valueIfNull)
                              throws ValueCastException
Description copied from interface: IDbRow
Get a single precision float value.

Specified by:
getFloatValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to float.

getDoubleValue

public java.lang.Double getDoubleValue(int p_iIdx)
                                throws ValueCastException
Description copied from interface: IDbRow
Get a double value.

Specified by:
getDoubleValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
A double value, or null.
Throws:
ValueCastException - If the database value could not be cast to double.

getDoubleValue

public java.lang.Double getDoubleValue(int p_iIdx,
                                       java.lang.Double p_valueIfNull)
                                throws ValueCastException
Description copied from interface: IDbRow
Get a double precision float value.

Specified by:
getDoubleValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to double.

getBigDecimalValue

public java.math.BigDecimal getBigDecimalValue(int p_iIdx)
                                        throws ValueCastException
Description copied from interface: IDbRow
Get a decimal number value.

Specified by:
getBigDecimalValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
A BigDecimal value, or null.
Throws:
ValueCastException - If the database value could not be cast to BigDecimal.

getBigDecimalValue

public java.math.BigDecimal getBigDecimalValue(int p_iIdx,
                                               java.math.BigDecimal p_valueIfNull)
                                        throws ValueCastException
Description copied from interface: IDbRow
Get a decimal number value.

Specified by:
getBigDecimalValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to BigDecimal.

getStringValue

public java.lang.String getStringValue(int p_iIdx)
                                throws ValueCastException
Description copied from interface: IDbRow
Get a string value.

Specified by:
getStringValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
A string value, or null.
Throws:
ValueCastException - If the database value could not be cast to a string.

getStringValue

public java.lang.String getStringValue(int p_iIdx,
                                       java.lang.String p_valueIfNull)
                                throws ValueCastException
Description copied from interface: IDbRow
Get a string value.

Specified by:
getStringValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to string.

getTimestampValue

public java.sql.Timestamp getTimestampValue(int p_iIdx)
                                     throws ValueCastException
Description copied from interface: IDbRow
Get a timestamp value.

Specified by:
getTimestampValue in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
A timestamp value, or null.
Throws:
ValueCastException - If the database value could not be cast to a timestamp.

getTimestampValue

public java.sql.Timestamp getTimestampValue(int p_iIdx,
                                            java.sql.Timestamp p_valueIfNull)
                                     throws ValueCastException
Description copied from interface: IDbRow
Get a timestamp value.

Specified by:
getTimestampValue in interface IDbRow
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:
ValueCastException - If the database value could not be cast to timestamp.

wasNull

public boolean wasNull(int p_iIdx)
Description copied from interface: IDbRow
Check if the value in the given column was null.

Specified by:
wasNull in interface IDbRow
Parameters:
p_iIdx - The 1-based column index.
Returns:
true if the value was null, or false otherwise.

getAt

public java.lang.Object getAt(java.lang.String p_strName)

getProperty

public java.lang.Object getProperty(java.lang.String p_strName)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class groovy.lang.GroovyObjectSupport


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.