Class DbDisconnectedRow

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

public final class DbDisconnectedRow extends groovy.lang.GroovyObjectSupport implements IDbRow
  • Method Details

    • getValueHolder

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

      public IValueHolder<?> getValueHolder(int p_iIdx, QName p_qmnDataType) throws SQLException
      Specified by:
      getValueHolder in interface IValueHolderAccess
      Throws:
      SQLException
    • getValueHolder

      public IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName) throws SQLException
      Specified by:
      getValueHolder in interface IValueHolderAccess
      Throws:
      SQLException
    • getValueHolder

      public IValueHolder<?> getValueHolder(int p_iIdx, QName p_qmnDataType, IValueHolder<?> p_vhIfNull) throws SQLException
      Specified by:
      getValueHolder in interface IValueHolderAccess
      Throws:
      SQLException
    • getValueHolder

      public IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName, IValueHolder<?> p_vhIfNull) throws SQLException
      Specified by:
      getValueHolder in interface IValueHolderAccess
      Throws:
      SQLException
    • size

      public int size()
      Description copied from interface: IDbRow
      Get the number of columns in this row.
      Specified by:
      size in interface IDbRow
      Returns:
      The number of columns in this row.
    • value

      @Deprecated public 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.
    • getValue

      public Object getValue(int p_iIdx)
      Description copied from interface: IValueAccess
      Get a value. Note: The use of this method is discouraged. Use a method that returns a specified type instead.
      Specified by:
      getValue in interface IValueAccess
      Parameters:
      p_iIdx - The 1-based column index.
      Returns:
      The value.
    • getValue

      public Object getValue(int p_iIdx, Object p_valueIfNull)
      Description copied from interface: IValueAccess
      Get a value. Note: The use of this method is discouraged. Use a method that returns a specified type instead.
      Specified by:
      getValue in interface IValueAccess
      Parameters:
      p_iIdx - The 1-based column index.
      p_valueIfNull - The value to be returned if the database value was NULL.
      Returns:
      The value, or p_valueIfNull.
    • getBooleanValue

      public Boolean getBooleanValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a boolean value.
      Specified by:
      getBooleanValue in interface IValueAccess
      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 Boolean getBooleanValue(int p_iIdx, Boolean p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a boolean value.
      Specified by:
      getBooleanValue in interface IValueAccess
      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: IValueAccess
      Get a byte value.
      Specified by:
      getByteValue in interface IValueAccess
      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 Byte getByteValue(int p_iIdx, Byte p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a byte value.
      Specified by:
      getByteValue in interface IValueAccess
      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 Short getShortValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a short value.
      Specified by:
      getShortValue in interface IValueAccess
      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 Short getShortValue(int p_iIdx, Short p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a short value.
      Specified by:
      getShortValue in interface IValueAccess
      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 Integer getIntValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get an integer value.
      Specified by:
      getIntValue in interface IValueAccess
      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 Integer getIntValue(int p_iIdx, Integer p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get an integer value.
      Specified by:
      getIntValue in interface IValueAccess
      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 Long getLongValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a long value.
      Specified by:
      getLongValue in interface IValueAccess
      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 Long getLongValue(int p_iIdx, Long p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a long value.
      Specified by:
      getLongValue in interface IValueAccess
      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 Float getFloatValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a single precision float value.
      Specified by:
      getFloatValue in interface IValueAccess
      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 Float getFloatValue(int p_iIdx, Float p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a single precision float value.
      Specified by:
      getFloatValue in interface IValueAccess
      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 Double getDoubleValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a double value.
      Specified by:
      getDoubleValue in interface IValueAccess
      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 Double getDoubleValue(int p_iIdx, Double p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a double precision float value.
      Specified by:
      getDoubleValue in interface IValueAccess
      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 BigDecimal getBigDecimalValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a decimal number value.
      Specified by:
      getBigDecimalValue in interface IValueAccess
      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 BigDecimal getBigDecimalValue(int p_iIdx, BigDecimal p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a decimal number value.
      Specified by:
      getBigDecimalValue in interface IValueAccess
      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 String getStringValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a string value.
      Specified by:
      getStringValue in interface IValueAccess
      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 String getStringValue(int p_iIdx, String p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a string value.
      Specified by:
      getStringValue in interface IValueAccess
      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 Timestamp getTimestampValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a timestamp value.
      Specified by:
      getTimestampValue in interface IValueAccess
      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 Timestamp getTimestampValue(int p_iIdx, Timestamp p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a timestamp value.
      Specified by:
      getTimestampValue in interface IValueAccess
      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.
    • getDateValue

      public Date getDateValue(int p_iIdx) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a date value.
      Specified by:
      getDateValue in interface IValueAccess
      Parameters:
      p_iIdx - The 1-based column index.
      Returns:
      A date value, or null.
      Throws:
      ValueCastException - If the database value could not be cast to date.
    • getDateValue

      public Date getDateValue(int p_iIdx, Date p_valueIfNull) throws ValueCastException
      Description copied from interface: IValueAccess
      Get a date value.
      Specified by:
      getDateValue in interface IValueAccess
      Parameters:
      p_iIdx - The 1-based column index.
      p_valueIfNull - The value to be returned if the database value was NULL.
      Returns:
      A date value, or p_valueIfNull.
      Throws:
      ValueCastException - If the database value could not be cast to date.
    • getTimeValue

      public Date getTimeValue(int p_iIdx) throws SQLException, ValueCastException
      Description copied from interface: IValueAccess
      Get a time value.
      Specified by:
      getTimeValue in interface IValueAccess
      Parameters:
      p_iIdx - The 1-based column index.
      Returns:
      A time value, or null.
      Throws:
      SQLException - If a database error occurred.
      ValueCastException - If the database value could not be cast to time.
    • getTimeValue

      public Date getTimeValue(int p_iIdx, Date p_valueIfNull) throws SQLException, ValueCastException
      Description copied from interface: IValueAccess
      Get a time value.
      Specified by:
      getTimeValue in interface IValueAccess
      Parameters:
      p_iIdx - The 1-based column index.
      p_valueIfNull - The value to be returned if the database value was NULL.
      Returns:
      A time value, or p_valueIfNull.
      Throws:
      SQLException - If a database error occurred.
      ValueCastException - If the database value could not be cast to time.
    • wasNull

      public boolean wasNull(int p_iIdx)
      Description copied from interface: IValueAccess
      Check if the value in the given column was null.
      Specified by:
      wasNull in interface IValueAccess
      Parameters:
      p_iIdx - The 1-based column index.
      Returns:
      true if the value was null, or false otherwise.
    • getAt

      public Object getAt(String p_strName)
    • getProperty

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