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

org.objectweb.cjdbc.driver.ResultSetMetaData Class Reference

Collaboration diagram for org.objectweb.cjdbc.driver.ResultSetMetaData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ResultSetMetaData (DriverResultSet rs)
int getColumnCount () throws SQLException
boolean isAutoIncrement (int column) throws SQLException
boolean isCaseSensitive (int column) throws SQLException
boolean isSearchable (int column) throws SQLException
boolean isCurrency (int column) throws SQLException
int isNullable (int column) throws SQLException
boolean isSigned (int column) throws SQLException
int getColumnDisplaySize (int column) throws SQLException
String getColumnLabel (int column) throws SQLException
String getColumnName (int column) throws SQLException
String getSchemaName (int column) throws SQLException
int getPrecision (int column) throws SQLException
int getScale (int column) throws SQLException
String getTableName (int column) throws SQLException
String getCatalogName (int column) throws SQLException
int getColumnType (int column) throws SQLException
String getColumnTypeName (int column) throws SQLException
boolean isReadOnly (int column) throws SQLException
boolean isWritable (int column) throws SQLException
boolean isDefinitelyWritable (int column) throws SQLException
String getColumnClassName (int column) throws SQLException

Detailed Description

ResultSet metadata provided for pretty printing of the ResultSet by a console.

Author:
Emmanuel Cecchet
Version:
1.0

Definition at line 36 of file ResultSetMetaData.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.driver.ResultSetMetaData.ResultSetMetaData DriverResultSet  rs  ) 
 

Constructs a ResultSetMetaData from a C-JDBC ResultSet.

Parameters:
rs the ResultSet

Definition at line 45 of file ResultSetMetaData.java.

00046   {
00047     this.rs = rs;
00048   }


Member Function Documentation

String org.objectweb.cjdbc.driver.ResultSetMetaData.getCatalogName int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getCatalogName(int)

Definition at line 191 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00192   {
00193     if ((column < 1) || (column > rs.nbOfColumns))
00194       throw new SQLException("Invalid column index " + column);
00195     return "";
00196   }

String org.objectweb.cjdbc.driver.ResultSetMetaData.getColumnClassName int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getColumnClassName(int)

Definition at line 251 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getColumnClassName(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00252   {
00253     if ((column < 1) || (column > rs.nbOfColumns))
00254       throw new SQLException("Invalid column index " + column);
00255     return rs.fields[column - 1].getColumnClassName();
00256   }

int org.objectweb.cjdbc.driver.ResultSetMetaData.getColumnCount  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getColumnCount()

Definition at line 53 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00054   {
00055     return rs.nbOfColumns;
00056   }

int org.objectweb.cjdbc.driver.ResultSetMetaData.getColumnDisplaySize int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getColumnDisplaySize(int)

Definition at line 121 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getColumnDisplaySize(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00122   {
00123     if ((column < 1) || (column > rs.nbOfColumns))
00124       throw new SQLException("Invalid column index " + column);
00125     return rs.fields[column - 1].getColumnDisplaySize();
00126   }

String org.objectweb.cjdbc.driver.ResultSetMetaData.getColumnLabel int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getColumnLabel(int)

Definition at line 131 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getFieldName(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00132   {
00133     if ((column < 1) || (column > rs.nbOfColumns))
00134       throw new SQLException("Invalid column index " + column);
00135     return rs.fields[column - 1].getFieldName();
00136   }

String org.objectweb.cjdbc.driver.ResultSetMetaData.getColumnName int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getColumnName(int)

Definition at line 141 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getFieldName(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00142   {
00143     if ((column < 1) || (column > rs.nbOfColumns))
00144       throw new SQLException("Invalid column index " + column);
00145     return rs.fields[column - 1].getFieldName();
00146   }

int org.objectweb.cjdbc.driver.ResultSetMetaData.getColumnType int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getColumnType(int)

Definition at line 201 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getSqlType(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00202   {
00203     if ((column < 1) || (column > rs.nbOfColumns))
00204       throw new SQLException("Invalid column index " + column);
00205     return rs.fields[column - 1].getSqlType();
00206   }

String org.objectweb.cjdbc.driver.ResultSetMetaData.getColumnTypeName int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getColumnTypeName(int)

Definition at line 211 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getTypeName(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00212   {
00213     if ((column < 1) || (column > rs.nbOfColumns))
00214       throw new SQLException("Invalid column index " + column);
00215     return rs.fields[column - 1].getTypeName();
00216   }

int org.objectweb.cjdbc.driver.ResultSetMetaData.getPrecision int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getPrecision(int)

Definition at line 161 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getPrecision(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00162   {
00163     if ((column < 1) || (column > rs.nbOfColumns))
00164       throw new SQLException("Invalid column index " + column);
00165     return rs.fields[column - 1].getPrecision();
00166   }

int org.objectweb.cjdbc.driver.ResultSetMetaData.getScale int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getScale(int)

Definition at line 171 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getScale(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00172   {
00173     if ((column < 1) || (column > rs.nbOfColumns))
00174       throw new SQLException("Invalid column index " + column);
00175     return rs.fields[column - 1].getScale();
00176   }

String org.objectweb.cjdbc.driver.ResultSetMetaData.getSchemaName int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getSchemaName(int)

Definition at line 151 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getFullName(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00152   {
00153     if ((column < 1) || (column > rs.nbOfColumns))
00154       throw new SQLException("Invalid column index " + column);
00155     return rs.fields[column - 1].getFullName();
00156   }

String org.objectweb.cjdbc.driver.ResultSetMetaData.getTableName int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#getTableName(int)

Definition at line 181 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.getTableName(), and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00182   {
00183     if ((column < 1) || (column > rs.nbOfColumns))
00184       throw new SQLException("Invalid column index " + column);
00185     return rs.fields[column - 1].getTableName();
00186   }

boolean org.objectweb.cjdbc.driver.ResultSetMetaData.isAutoIncrement int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#isAutoIncrement(int)

Definition at line 61 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.isAutoIncrement, and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00062   {
00063     if ((column < 1) || (column > rs.nbOfColumns))
00064       throw new SQLException("Invalid column index " + column);
00065     return rs.fields[column - 1].isAutoIncrement();
00066   }

boolean org.objectweb.cjdbc.driver.ResultSetMetaData.isCaseSensitive int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#isCaseSensitive(int)

Definition at line 71 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.isCaseSensitive, and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00072   {
00073     if ((column < 1) || (column > rs.nbOfColumns))
00074       throw new SQLException("Invalid column index " + column);
00075     return rs.fields[column - 1].isCaseSensitive();
00076   }

boolean org.objectweb.cjdbc.driver.ResultSetMetaData.isCurrency int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#isCurrency(int)

Definition at line 91 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.isCurrency, and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00092   {
00093     if ((column < 1) || (column > rs.nbOfColumns))
00094       throw new SQLException("Invalid column index " + column);
00095     return rs.fields[column - 1].isCurrency();
00096   }

boolean org.objectweb.cjdbc.driver.ResultSetMetaData.isDefinitelyWritable int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#isDefinitelyWritable(int)

Definition at line 241 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.isDefinitelyWritable, and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00242   {
00243     if ((column < 1) || (column > rs.nbOfColumns))
00244       throw new SQLException("Invalid column index " + column);
00245     return rs.fields[column - 1].isDefinitelyWritable();
00246   }

int org.objectweb.cjdbc.driver.ResultSetMetaData.isNullable int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#isNullable(int)

Definition at line 101 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.isNullable, and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00102   {
00103     if ((column < 1) || (column > rs.nbOfColumns))
00104       throw new SQLException("Invalid column index " + column);
00105     return rs.fields[column - 1].isNullable();
00106   }

boolean org.objectweb.cjdbc.driver.ResultSetMetaData.isReadOnly int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#isReadOnly(int)

Definition at line 221 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.isReadOnly, and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00222   {
00223     if ((column < 1) || (column > rs.nbOfColumns))
00224       throw new SQLException("Invalid column index " + column);
00225     return rs.fields[column - 1].isReadOnly();
00226   }

boolean org.objectweb.cjdbc.driver.ResultSetMetaData.isSearchable int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#isSearchable(int)

Definition at line 81 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.isSearchable, and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00082   {
00083     if ((column < 1) || (column > rs.nbOfColumns))
00084       throw new SQLException("Invalid column index " + column);
00085     return rs.fields[column - 1].isSearchable();
00086   }

boolean org.objectweb.cjdbc.driver.ResultSetMetaData.isSigned int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#isSigned(int)

Definition at line 111 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.isSigned, and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00112   {
00113     if ((column < 1) || (column > rs.nbOfColumns))
00114       throw new SQLException("Invalid column index " + column);
00115     return rs.fields[column - 1].isSigned();
00116   }

boolean org.objectweb.cjdbc.driver.ResultSetMetaData.isWritable int  column  )  throws SQLException
 

See also:
java.sql.ResultSetMetaData#isWritable(int)

Definition at line 231 of file ResultSetMetaData.java.

References org.objectweb.cjdbc.driver.DriverResultSet.fields, org.objectweb.cjdbc.driver.Field.isWritable, and org.objectweb.cjdbc.driver.DriverResultSet.nbOfColumns.

00232   {
00233     if ((column < 1) || (column > rs.nbOfColumns))
00234       throw new SQLException("Invalid column index " + column);
00235     return rs.fields[column - 1].isWritable();
00236   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:05:05 2005 for C-JDBC by  doxygen 1.3.9.1