|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.relique.jdbc.csv.CsvResultSetMetaData
This class implements the ResultSetMetaData interface for the CsvJdbc driver.
Field Summary | |
protected java.lang.String[] |
columnNames
Names of columns |
(package private) static int |
DISPLAY_SIZE
Default value for getColumnDisplaySize |
protected java.lang.String |
tableName
Name of table |
Fields inherited from interface java.sql.ResultSetMetaData |
columnNoNulls, columnNullable, columnNullableUnknown |
Constructor Summary | |
(package private) |
CsvResultSetMetaData(java.lang.String tableName,
java.lang.String[] columnNames)
Constructor for the CsvResultSetMetaData object |
Method Summary | |
java.lang.String |
getCatalogName(int column)
Returns the name of the catalog for the specified column. |
java.lang.String |
getColumnClassName(int column)
Returns the name of the class for the specified column. |
int |
getColumnCount()
Returns the number of columns in the table. |
int |
getColumnDisplaySize(int column)
Returns the display column size for the specified column. |
java.lang.String |
getColumnLabel(int column)
Returns the label for the specified column |
java.lang.String |
getColumnName(int column)
Returns the name of the specified column |
int |
getColumnType(int column)
Comments to be done |
java.lang.String |
getColumnTypeName(int column)
Comments to be done |
int |
getPrecision(int column)
Comments to be done |
int |
getScale(int column)
Comments to be done |
java.lang.String |
getSchemaName(int column)
Comments to be done |
java.lang.String |
getTableName(int column)
Comments to be done |
boolean |
isAutoIncrement(int column)
Gets the auto increment falg for the specfied column. |
boolean |
isCaseSensitive(int column)
Returns the case sensitivity flag for the specfied column |
boolean |
isCurrency(int column)
Returns the currency flag for the specified column |
boolean |
isDefinitelyWritable(int column)
Comments to be done |
int |
isNullable(int column)
Returns the nullable flag for the specfied column |
boolean |
isReadOnly(int column)
Comments to be done |
boolean |
isSearchable(int column)
Returns the searchable flag for the specified column |
boolean |
isSigned(int column)
Returns the signed flag for the specfied column |
boolean |
isWritable(int column)
Comments to be done |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final int DISPLAY_SIZE
protected java.lang.String[] columnNames
protected java.lang.String tableName
Constructor Detail |
CsvResultSetMetaData(java.lang.String tableName, java.lang.String[] columnNames)
tableName
- Name of tablecolumnNames
- Names of columns in tableMethod Detail |
public java.lang.String getColumnClassName(int column) throws java.sql.SQLException
getColumnClassName
in interface java.sql.ResultSetMetaData
column
- The column numberjava.sql.SQLException
- Thrown if there was a problempublic int getColumnCount() throws java.sql.SQLException
getColumnCount
in interface java.sql.ResultSetMetaData
java.sql.SQLException
- Thrown if there is a a problempublic java.lang.String getCatalogName(int column) throws java.sql.SQLException
getCatalogName
in interface java.sql.ResultSetMetaData
column
- The column to get the catalog forjava.sql.SQLException
- Thrown if there is a problempublic int getColumnDisplaySize(int column) throws java.sql.SQLException
getColumnDisplaySize
in interface java.sql.ResultSetMetaData
column
- The column to get the size ofjava.sql.SQLException
- Thrown if there is a problem.public boolean isAutoIncrement(int column) throws java.sql.SQLException
isAutoIncrement
in interface java.sql.ResultSetMetaData
column
- The column to get the flag forjava.sql.SQLException
- Thrown if there is a problempublic boolean isCaseSensitive(int column) throws java.sql.SQLException
isCaseSensitive
in interface java.sql.ResultSetMetaData
column
- The column to return the flag forjava.sql.SQLException
- Thrown if there is a problempublic boolean isSearchable(int column) throws java.sql.SQLException
isSearchable
in interface java.sql.ResultSetMetaData
column
- the column to return the flag formjava.sql.SQLException
- Thrown if there is a problempublic boolean isCurrency(int column) throws java.sql.SQLException
isCurrency
in interface java.sql.ResultSetMetaData
column
- The column to get the flag forjava.sql.SQLException
- Thrown if there is a problempublic int isNullable(int column) throws java.sql.SQLException
isNullable
in interface java.sql.ResultSetMetaData
column
- The column to return the flag forjava.sql.SQLException
- Thrown if there is a problempublic boolean isSigned(int column) throws java.sql.SQLException
isSigned
in interface java.sql.ResultSetMetaData
column
- The column to return the flag forjava.sql.SQLException
- Thrown if there is a problempublic java.lang.String getColumnLabel(int column) throws java.sql.SQLException
getColumnLabel
in interface java.sql.ResultSetMetaData
column
- The column to get the label forjava.sql.SQLException
- Thrown if there is a problempublic java.lang.String getColumnName(int column) throws java.sql.SQLException
getColumnName
in interface java.sql.ResultSetMetaData
column
- The column to get the name ofjava.sql.SQLException
- Thrown if there is a problempublic java.lang.String getSchemaName(int column) throws java.sql.SQLException
getSchemaName
in interface java.sql.ResultSetMetaData
public int getPrecision(int column) throws java.sql.SQLException
getPrecision
in interface java.sql.ResultSetMetaData
public int getScale(int column) throws java.sql.SQLException
getScale
in interface java.sql.ResultSetMetaData
public java.lang.String getTableName(int column) throws java.sql.SQLException
getTableName
in interface java.sql.ResultSetMetaData
public int getColumnType(int column) throws java.sql.SQLException
getColumnType
in interface java.sql.ResultSetMetaData
public java.lang.String getColumnTypeName(int column) throws java.sql.SQLException
getColumnTypeName
in interface java.sql.ResultSetMetaData
public boolean isReadOnly(int column) throws java.sql.SQLException
isReadOnly
in interface java.sql.ResultSetMetaData
public boolean isWritable(int column) throws java.sql.SQLException
isWritable
in interface java.sql.ResultSetMetaData
public boolean isDefinitelyWritable(int column) throws java.sql.SQLException
isDefinitelyWritable
in interface java.sql.ResultSetMetaData
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |