Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

glite::rgma::Tuple Class Reference

#include <Tuple.h>

List of all members.

Public Member Functions

 Tuple (ResultSetMetaData &metaData)
 Tuple (ResultSetMetaData *metaData)
 Tuple (const Tuple &tuple)
Tupleoperator= (const Tuple &tuple)
void addTupleItem (TupleItem item)
ResultSetMetaDatagetMetaData ()
ResultSetMetaData getTupleMetaData ()
double getDouble (std::string columnName) throw (RGMAException)
float getFloat (std::string columnName) throw (RGMAException)
std::string getString (std::string columnName) throw (RGMAException)
int getInt (std::string columnName) throw (RGMAException)
bool getBoolean (std::string columnName) throw (RGMAException)
bool isNull (std::string columnName) throw (RGMAException)


Detailed Description

A database tuple/row


Constructor & Destructor Documentation

glite::rgma::Tuple::Tuple ResultSetMetaData metaData  ) 
 

Deprecated:
use prefered constructor Tuple(ResultSetMetaData& metaData);


Member Function Documentation

void glite::rgma::Tuple::addTupleItem TupleItem  item  ) 
 

Add an item to the list of TupleItems

Parameters:
item 

bool glite::rgma::Tuple::getBoolean std::string  columnName  )  throw (RGMAException)
 

get the value of a column as a bool

Parameters:
columnName the name of the coulmn
Returns:
the column value; if the value is SQL NULL returned value is undefined use isNull to determine if NULL

double glite::rgma::Tuple::getDouble std::string  columnName  )  throw (RGMAException)
 

get the value of a column as a double

Parameters:
columnName the name of the coulmn
Returns:
the column value; if the value is SQL NULL, the value returned is undefined use isNull to determine if NULL

float glite::rgma::Tuple::getFloat std::string  columnName  )  throw (RGMAException)
 

get the value of a column as a float

Parameters:
columnName the name of the coulmn
Returns:
the column value; if the value is SQL NULL, the value returned is undefined use isNull to determine if NULL

int glite::rgma::Tuple::getInt std::string  columnName  )  throw (RGMAException)
 

get the value of a column as a int

Parameters:
columnName the name of the coulmn
Returns:
the column value; if the value is SQL NULL returned value is undefined use isNull to determine if NULL

ResultSetMetaData * glite::rgma::Tuple::getMetaData  ) 
 

get the result set meta data object

Returns:
the ResultSetMetaData object associated with this tuple
Deprecated:
use getTupleMetaData()

std::string glite::rgma::Tuple::getString std::string  columnName  )  throw (RGMAException)
 

get the value of a column as a string

Parameters:
columnName the name of the coulmn
Returns:
the column value; if the value is SQL NULL returned value is undefined use isNull to determine if NULL

ResultSetMetaData glite::rgma::Tuple::getTupleMetaData  ) 
 

get the result set meta data object

Returns:
the ResultSetMetaData object associated with this tuple

bool glite::rgma::Tuple::isNull std::string  columnName  )  throw (RGMAException)
 

Is a value in the column null

Returns:
true if the value is SQL 0 else return false


The documentation for this class was generated from the following files:
Generated on Thu May 11 19:23:44 2006 for glite-rgma-api-cpp by doxygen 1.3.5