org.glite.rgma
Interface ResultSetMetaData


public interface ResultSetMetaData

Column and table details for a ResultSet, modelled on java.sql.ResultSetMetaData.


Method Summary
 int getColumnCount()
          Returns the number of columns in this ResultSet object.
 java.lang.String getColumnName(int column)
          Get the designated column's name.
 int getColumnType(int column)
          Retrieves the designated column's SQL type.
 java.lang.String getColumnTypeName(int column)
          Retrieves the designated column's database-specific type name.
 java.lang.String getTableName(int column)
          Gets the designated column's table name.
 

Method Detail

getColumnCount

int getColumnCount()
Returns the number of columns in this ResultSet object.

Returns:
the number of columns

getColumnName

java.lang.String getColumnName(int column)
                               throws RGMAException
Get the designated column's name.

Parameters:
column - the first column is 1, the second is 2, ...
Returns:
column name
Throws:
RGMAException - if an RGMA access error occurs

getColumnType

int getColumnType(int column)
                  throws RGMAException
Retrieves the designated column's SQL type.

Parameters:
column - the first column is 1, the second is 2, ...
Returns:
SQL type from org.egee.rgma.Types
Throws:
RGMAException - if an RGMA access error occurs
See Also:
Types

getColumnTypeName

java.lang.String getColumnTypeName(int column)
                                   throws RGMAException
Retrieves the designated column's database-specific type name.

Parameters:
column - the first column is 1, the second is 2, ...
Returns:
type name used by the database. If the column type is a user-defined type, then a fully-qualified type name is returned.
Throws:
RGMAException - if an RGMA access error occurs

getTableName

java.lang.String getTableName(int column)
                              throws RGMAException
Gets the designated column's table name.

Parameters:
column - the first column is 1, the second is 2, ...
Returns:
table name or "" if not applicable
Throws:
RGMAException - if an RGMA access error occurs