Package de.uplanet.lucy.server.util.db
Class DbDisconnectedRow
java.lang.Object
groovy.lang.GroovyObjectSupport
de.uplanet.lucy.server.util.db.DbDisconnectedRow
- All Implemented Interfaces:
IDbRow,IValueAccess,IValueHolderAccess,groovy.lang.GroovyObject
-
Method Summary
Modifier and TypeMethodDescriptiongetBigDecimalValue(int p_iIdx) Get a decimal number value.getBigDecimalValue(int p_iIdx, BigDecimal p_valueIfNull) Get a decimal number value.getBooleanValue(int p_iIdx) Get a boolean value.getBooleanValue(int p_iIdx, Boolean p_valueIfNull) Get a boolean value.bytegetByteValue(int p_iIdx) Get a byte value.getByteValue(int p_iIdx, Byte p_valueIfNull) Get a byte value.getDateValue(int p_iIdx) Get a date value.getDateValue(int p_iIdx, Date p_valueIfNull) Get a date value.getDoubleValue(int p_iIdx) Get a double value.getDoubleValue(int p_iIdx, Double p_valueIfNull) Get a double precision float value.getFloatValue(int p_iIdx) Get a single precision float value.getFloatValue(int p_iIdx, Float p_valueIfNull) Get a single precision float value.getIntValue(int p_iIdx) Get an integer value.getIntValue(int p_iIdx, Integer p_valueIfNull) Get an integer value.getLongValue(int p_iIdx) Get a long value.getLongValue(int p_iIdx, Long p_valueIfNull) Get a long value.getProperty(String p_strName) getShortValue(int p_iIdx) Get a short value.getShortValue(int p_iIdx, Short p_valueIfNull) Get a short value.getStringValue(int p_iIdx) Get a string value.getStringValue(int p_iIdx, String p_valueIfNull) Get a string value.getTimestampValue(int p_iIdx) Get a timestamp value.getTimestampValue(int p_iIdx, Timestamp p_valueIfNull) Get a timestamp value.getTimeValue(int p_iIdx) Get a time value.getTimeValue(int p_iIdx, Date p_valueIfNull) Get a time value.getValue(int p_iIdx) Get a value.Get a value.IValueHolder<?>getValueHolder(int p_iIdx) IValueHolder<?>getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName) IValueHolder<?>getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName, IValueHolder<?> p_vhIfNull) IValueHolder<?>getValueHolder(int p_iIdx, QName p_qmnDataType) IValueHolder<?>getValueHolder(int p_iIdx, QName p_qmnDataType, IValueHolder<?> p_vhIfNull) intsize()Get the number of columns in this row.value(int p_iIdx) Deprecated.Note: This method will be removed in future versions of this API.booleanwasNull(int p_iIdx) Check if the value in the given column wasnull.Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClassMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
invokeMethod, setProperty
-
Method Details
-
getValueHolder
- Specified by:
getValueHolderin interfaceIValueHolderAccess
-
getValueHolder
- Specified by:
getValueHolderin interfaceIValueHolderAccess- Throws:
SQLException
-
getValueHolder
public IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName) throws SQLException - Specified by:
getValueHolderin interfaceIValueHolderAccess- Throws:
SQLException
-
getValueHolder
public IValueHolder<?> getValueHolder(int p_iIdx, QName p_qmnDataType, IValueHolder<?> p_vhIfNull) throws SQLException - Specified by:
getValueHolderin interfaceIValueHolderAccess- Throws:
SQLException
-
getValueHolder
public IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName, IValueHolder<?> p_vhIfNull) throws SQLException - Specified by:
getValueHolderin interfaceIValueHolderAccess- Throws:
SQLException
-
size
public int size()Description copied from interface:IDbRowGet the number of columns in this row. -
value
Deprecated.Note: This method will be removed in future versions of this API. Please use thegetXxxValue(int)methods instead. -
getValue
Description copied from interface:IValueAccessGet a value. Note: The use of this method is discouraged. Use a method that returns a specified type instead.- Specified by:
getValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.- Returns:
- The value.
-
getValue
Description copied from interface:IValueAccessGet a value. Note: The use of this method is discouraged. Use a method that returns a specified type instead.- Specified by:
getValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- The value, or
p_valueIfNull.
-
getBooleanValue
Description copied from interface:IValueAccessGet a boolean value.- Specified by:
getBooleanValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a boolean value.- Specified by:
getBooleanValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A boolean value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to boolean.
-
getByteValue
Description copied from interface:IValueAccessGet a byte value.- Specified by:
getByteValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a byte value.- Specified by:
getByteValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A byte value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to byte.
-
getShortValue
Description copied from interface:IValueAccessGet a short value.- Specified by:
getShortValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a short value.- Specified by:
getShortValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A short value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to short.
-
getIntValue
Description copied from interface:IValueAccessGet an integer value.- Specified by:
getIntValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet an integer value.- Specified by:
getIntValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- An integer value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to integer.
-
getLongValue
Description copied from interface:IValueAccessGet a long value.- Specified by:
getLongValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a long value.- Specified by:
getLongValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A long value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to long.
-
getFloatValue
Description copied from interface:IValueAccessGet a single precision float value.- Specified by:
getFloatValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a single precision float value.- Specified by:
getFloatValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A float value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to float.
-
getDoubleValue
Description copied from interface:IValueAccessGet a double value.- Specified by:
getDoubleValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a double precision float value.- Specified by:
getDoubleValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A double value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to double.
-
getBigDecimalValue
Description copied from interface:IValueAccessGet a decimal number value.- Specified by:
getBigDecimalValuein interfaceIValueAccess- 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:IValueAccessGet a decimal number value.- Specified by:
getBigDecimalValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A BigDecimal value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to BigDecimal.
-
getStringValue
Description copied from interface:IValueAccessGet a string value.- Specified by:
getStringValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a string value.- Specified by:
getStringValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A string value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to string.
-
getTimestampValue
Description copied from interface:IValueAccessGet a timestamp value.- Specified by:
getTimestampValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a timestamp value.- Specified by:
getTimestampValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A timestamp value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to timestamp.
-
getDateValue
Description copied from interface:IValueAccessGet a date value.- Specified by:
getDateValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a date value.- Specified by:
getDateValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Returns:
- A date value, or
p_valueIfNull. - Throws:
ValueCastException- If the database value could not be cast to date.
-
getTimeValue
Description copied from interface:IValueAccessGet a time value.- Specified by:
getTimeValuein interfaceIValueAccess- 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
Description copied from interface:IValueAccessGet a time value.- Specified by:
getTimeValuein interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- 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:IValueAccessCheck if the value in the given column wasnull.- Specified by:
wasNullin interfaceIValueAccess- Parameters:
p_iIdx- The 1-based column index.- Returns:
trueif the value wasnull, orfalseotherwise.
-
getAt
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-