ua.gradsoft.xwikisql.impl
Class InMemorySqlResultRow

java.lang.Object
  extended by ua.gradsoft.xwikisql.impl.InMemorySqlResultRow
All Implemented Interfaces:
SqlResultRow

public class InMemorySqlResultRow
extends java.lang.Object
implements SqlResultRow

SQLResultRow in memory.

See Also:
SqlResultRow

Method Summary
 java.math.BigDecimal getBigDecimal(int index)
          retrieve object in column with index i as BigDecimal.
 java.math.BigDecimal getBigDecimal(java.lang.String name)
          retrieve object in column with name name as BigDecimal.
 java.lang.Boolean getBoolean(int index)
          retrieve object in column with index i as Boolean.
 java.lang.Boolean getBoolean(java.lang.String name)
          retrieve object in column with name name as Boolean.
 java.util.Date getDate(int index)
          retrieve object in column with index i as Date.
 java.util.Date getDate(java.lang.String name)
          retrieve object in column with name name as Date.
 java.lang.Double getDouble(int index)
          retrieve object in column with index i as Double.
 java.lang.Double getDouble(java.lang.String name)
          retrieve object in column with name name as Double.
 java.lang.Integer getInteger(int index)
          retrieve object in column with index i as long.
 java.lang.Integer getInteger(java.lang.String name)
          retrieve object in column with name name as integer.
 java.lang.Long getLong(int index)
          retrieve object in column with index i as long.
 java.lang.Long getLong(java.lang.String name)
          retrieve object in column with name name as long.
 java.lang.Object getObject(int i)
          retrieve object in column with index i
 java.lang.Object getObject(java.lang.String name)
          retrieve object in column with name name
 java.lang.String getString(int index)
          retrieve object in column with index i as string.
 java.lang.String getString(java.lang.String name)
          retrieve object in column with name name as string.
 boolean isNull(int index)
          true is object in appropriative column is null.
 boolean isNull(java.lang.String name)
          true is object in appropriative column is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getObject

public java.lang.Object getObject(java.lang.String name)
Description copied from interface: SqlResultRow
retrieve object in column with name name

Specified by:
getObject in interface SqlResultRow
Parameters:
name - - column name.
Returns:
object which situated on this column name.

getObject

public java.lang.Object getObject(int i)
Description copied from interface: SqlResultRow
retrieve object in column with index i

Specified by:
getObject in interface SqlResultRow
Parameters:
i - -- column index (starting from 0)
Returns:
object which situated on this column index.

isNull

public boolean isNull(java.lang.String name)
Description copied from interface: SqlResultRow
true is object in appropriative column is null.

Specified by:
isNull in interface SqlResultRow

isNull

public boolean isNull(int index)
Description copied from interface: SqlResultRow
true is object in appropriative column is null.

Specified by:
isNull in interface SqlResultRow
Parameters:
index - column index (starting from 0)

getString

public java.lang.String getString(java.lang.String name)
Description copied from interface: SqlResultRow
retrieve object in column with name name as string.

Specified by:
getString in interface SqlResultRow
See Also:
SqlPluginConfiguration.getNullAsEmptyString()

getString

public java.lang.String getString(int index)
Description copied from interface: SqlResultRow
retrieve object in column with index i as string.

Specified by:
getString in interface SqlResultRow
See Also:
SqlPluginConfiguration.getNullAsEmptyString()

getLong

public java.lang.Long getLong(java.lang.String name)
Description copied from interface: SqlResultRow
retrieve object in column with name name as long. If oject is not convertable to long than throw SqlRuntimeException or log error and return null, in depend from throwExceptions configuration parameter.

Specified by:
getLong in interface SqlResultRow

getLong

public java.lang.Long getLong(int index)
Description copied from interface: SqlResultRow
retrieve object in column with index i as long. If oject is not convertable to long then behaviour depends from throwExceptions configuration parameter.

Specified by:
getLong in interface SqlResultRow

getInteger

public java.lang.Integer getInteger(java.lang.String name)
Description copied from interface: SqlResultRow
retrieve object in column with name name as integer. If oject is not convertable to Integer: throw SqlRuntimeException or log error and return null, in depend from throwExceptions configuration paraeter.

Specified by:
getInteger in interface SqlResultRow

getInteger

public java.lang.Integer getInteger(int index)
Description copied from interface: SqlResultRow
retrieve object in column with index i as long. If oject is not convertable to Integer then behaviour depends from throwExceptions configuration parameter.

Specified by:
getInteger in interface SqlResultRow

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String name)
Description copied from interface: SqlResultRow
retrieve object in column with name name as BigDecimal. If oject is not convertable to BigDecimal then behaviour depends from throwExceptions configuration parameter.

Specified by:
getBigDecimal in interface SqlResultRow

getBigDecimal

public java.math.BigDecimal getBigDecimal(int index)
Description copied from interface: SqlResultRow
retrieve object in column with index i as BigDecimal. If oject is not convertable to long then behaviour depends from throwExceptions configuration parameter.

Specified by:
getBigDecimal in interface SqlResultRow

getDouble

public java.lang.Double getDouble(java.lang.String name)
Description copied from interface: SqlResultRow
retrieve object in column with name name as Double. If oject is not convertable to double then behaviour depends from throwExceptions configuration parameter.

Specified by:
getDouble in interface SqlResultRow

getDouble

public java.lang.Double getDouble(int index)
Description copied from interface: SqlResultRow
retrieve object in column with index i as Double. If oject is not convertable to double then behaviour depends from throwExceptions configuration parameter.

Specified by:
getDouble in interface SqlResultRow

getBoolean

public java.lang.Boolean getBoolean(java.lang.String name)
Description copied from interface: SqlResultRow
retrieve object in column with name name as Boolean. If oject is not convertable to boolean then behaviour depends from throwExceptions configuration parameter.

Specified by:
getBoolean in interface SqlResultRow

getBoolean

public java.lang.Boolean getBoolean(int index)
Description copied from interface: SqlResultRow
retrieve object in column with index i as Boolean. If oject is not convertable to boolean then behaviour depends from throwExceptions configuration parameter.

Specified by:
getBoolean in interface SqlResultRow
Parameters:
index - index, staring from 0

getDate

public java.util.Date getDate(java.lang.String name)
Description copied from interface: SqlResultRow
retrieve object in column with name name as Date. If oject is not convertable to date then behaviour depends from throwExceptions configuration parameter. param name name of column to retrieve.

Specified by:
getDate in interface SqlResultRow

getDate

public java.util.Date getDate(int index)
Description copied from interface: SqlResultRow
retrieve object in column with index i as Date. If oject is not convertable to date then behaviour depends from throwExceptions configuration parameter.

Specified by:
getDate in interface SqlResultRow
Parameters:
index - column index, staring from 0