com.gentics.api.lib.datasource
Interface DatasourceRow

All Superinterfaces:
Resolvable

public interface DatasourceRow
extends Resolvable

Interface for a DatasourceRow contained in a DatasourceRecordSet. Instances obtained from an instance of DatasrouceRecordSet can be used to fetch column data (depending on the column type), but the preferred method is to fetch the representing object using toObject(). Most Implementations of Datasource will use Resolvables as representing Objects.


Method Summary
 byte[] getBinary(String column)
          Get the content of the given column as byte array
 boolean getBoolean(String column)
          Get the content of the given column as boolean
 double getDouble(String column)
          Get the content of the given column as double
 int getInt(String column)
          Get the content of the given column as int
 long getLong(String column)
          Get the content of the given column as long
 Object getObject(String column)
          Get the value of the given column as Object
 String getString(String column)
          Get the content of the given column as String
 Timestamp getTimestamp(String column)
          Get the value of the given column as Timestamp
 int getType(String column)
          Get the type of the given column
 Object toObject()
          Get the Object representing the data in this DatasourceRow
 
Methods inherited from interface com.gentics.api.lib.resolving.Resolvable
canResolve, get, getProperty
 

Method Detail

getString

String getString(String column)
Get the content of the given column as String

Parameters:
column - column name
Returns:
value as String

getInt

int getInt(String column)
Get the content of the given column as int

Parameters:
column - column name
Returns:
value as int

getBoolean

boolean getBoolean(String column)
Get the content of the given column as boolean

Parameters:
column - column name
Returns:
value as boolean

getDouble

double getDouble(String column)
Get the content of the given column as double

Parameters:
column - column name
Returns:
value as double

getLong

long getLong(String column)
Get the content of the given column as long

Parameters:
column - column name
Returns:
value as long

getBinary

byte[] getBinary(String column)
Get the content of the given column as byte array

Parameters:
column - column name
Returns:
value as byte array

getType

int getType(String column)
Get the type of the given column

Parameters:
column - column name
Returns:
type of the column

getTimestamp

Timestamp getTimestamp(String column)
Get the value of the given column as Timestamp

Parameters:
column - column name
Returns:
value as Timestamp

getObject

Object getObject(String column)
Get the value of the given column as Object

Parameters:
column - column name
Returns:
value as Object

toObject

Object toObject()
Get the Object representing the data in this DatasourceRow

Returns:
Object representing the data


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.