All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.imaginary.sql.msql.MsqlResultSetMetaData

com.imaginary.sql.msql.MsqlResultSetMetaData

public class MsqlResultSetMetaData
The MsqlResultSetMetaData class is the mSQL implementation of the JDBC ResultSetMetaData interface. It should never be referenced directly. You should instead use the JDBC API.
Last modified $Date: 1999/07/09 23:16:36 $

Version:
$Revision: 1.1.2.1.2.2 $
Author:
George Reese (borg@imaginary.com)

Method Index

 o getCatalogName(int)
This operation is not supported.
 o getColumnClassName(int)
UDTs are not supported by mSQL.
 o getColumnCount()
 o getColumnDisplaySize(int)
 o getColumnLabel(int)
mSQL-JDBC 2.0 behaviour change! This method now returns the column label without the table name prefixed onto it.
 o getColumnName(int)
 o getColumnType(int)
 o getColumnTypeName(int)
 o getPrecision(int)
This is a total hack for mSQL, as it does not inherently have any concept of precision or scale.
 o getScale(int)
This is a total hack for mSQL, as it does not inherently have any concept of precision or scale.
 o getSchemaName(int)
mSQL does not have schemas.
 o getTableName(int)
 o isAutoIncrement(int)
 o isCaseSensitive(int)
 o isCurrency(int)
 o isDefinitelyWritable(int)
This always returns true for the lack of anything better to do.
 o isNullable(int)
 o isReadOnly(int)
mSQL does not support read-only mode.
 o isSearchable(int)
 o isSigned(int)
 o isWritable(int)
This is always true for mSQL columns.

Methods

 o getCatalogName
 public String getCatalogName(int column) throws SQLException
This operation is not supported.

Parameters:
column - the number of the desired column
Returns:
the catalog name for the requested column
Throws: SQLException
this is always thrown
 o getColumnClassName
 public String getColumnClassName(int column) throws SQLException
UDTs are not supported by mSQL. This will always return null.

Parameters:
column - the number of the desired column
Returns:
the fully qualified Java class name for the column map
Throws: SQLException
this is never thrown.
 o getColumnCount
 public int getColumnCount() throws SQLException
Returns:
the number of columns in the result set
Throws: SQLException
this is never thrown
 o getColumnDisplaySize
 public int getColumnDisplaySize(int column) throws SQLException
Parameters:
column - the column being queried
Returns:
the display size of the column
Throws: SQLException
an error occurred reading the column attributes
 o getColumnLabel
 public String getColumnLabel(int column) throws SQLException
mSQL-JDBC 2.0 behaviour change! This method now returns the column label without the table name prefixed onto it. In mSQL-JDBC 1.x the table name was prepended. You can retain the old behaviour by passing the command line property -Dmsql.oldlabels=1. For mSQL, this is the same as getColumnName().

Parameters:
column - the column being queried
Returns:
the column label
Throws: SQLException
an error occurred reading the column attributes
 o getColumnName
 public String getColumnName(int column) throws SQLException
Parameters:
column - the desired column number
Returns:
the name of the specified column
Throws: SQLException
an error occurred reading the column attributes
 o getColumnType
 public int getColumnType(int column) throws SQLException
Parameters:
column - the number of the desired column
Returns:
the type from java.sql.Types of this column
Throws: SQLException
a error occurred reading the column attributes
 o getColumnTypeName
 public String getColumnTypeName(int column) throws SQLException
Parameters:
column - the column number of the desired column
Returns:
the type name for the SQL type of the specified column
Throws: SQLException
a error occurred reading the column attributes
 o getPrecision
 public int getPrecision(int column) throws SQLException
This is a total hack for mSQL, as it does not inherently have any concept of precision or scale.

Parameters:
column - the column whose scale is desired
Returns:
the length of the column (a total hack)
Throws: SQLException
an error occurred reading the column attributes
 o getScale
 public int getScale(int column) throws SQLException
This is a total hack for mSQL, as it does not inherently have any concept of precision or scale.

Parameters:
column - the column whose scale is desired
Returns:
2 for REAL or DOUBLE, 0 for others
Throws: SQLException
this is never thrown
 o getSchemaName
 public String getSchemaName(int column) throws SQLException
mSQL does not have schemas. This method returns "".

Parameters:
column - the desired column
Returns:
""
Throws: SQLException
this is never thrown
 o getTableName
 public String getTableName(int column) throws SQLException
Parameters:
column - the desired column number
Returns:
the name of the table from which this column was drawn
Throws: SQLException
an error occurred reading the column attributes
 o isAutoIncrement
 public boolean isAutoIncrement(int column) throws SQLException
Parameters:
column - the column being checked
Returns:
true if the column will automatically increment on insert
Throws: SQLException
this is never thrown
 o isCaseSensitive
 public boolean isCaseSensitive(int column) throws SQLException
Parameters:
column - the column being queried
Returns:
always true for mSQL
Throws: SQLException
this is never thrown
 o isCurrency
 public boolean isCurrency(int column) throws SQLException
Parameters:
column - the column being queried
Returns:
true if the field type is MsqlTypes.MONEY
Throws: SQLException
this is never thrown
 o isDefinitelyWritable
 public boolean isDefinitelyWritable(int column) throws SQLException
This always returns true for the lack of anything better to do.

Parameters:
column - the column being queried
Returns:
true
Throws: SQLException
this is never thrown
 o isNullable
 public int isNullable(int column) throws SQLException
Parameters:
column - the column being checked
Returns:
true if the specified column can be nullified
Throws: SQLException
this is never thrown
 o isReadOnly
 public boolean isReadOnly(int column) throws SQLException
mSQL does not support read-only mode.

Parameters:
column - the column being queried
Returns:
false
Throws: SQLException
this is never thrown
 o isSearchable
 public boolean isSearchable(int column) throws SQLException
Parameters:
column - the column to be queried
Returns:
true if the column can appear in a WHERE clause
Throws: SQLException
this is never thrown
 o isSigned
 public boolean isSigned(int column) throws SQLException
Parameters:
column - the column to be queried
Returns:
true if the column data is a signed value
Throws: SQLException
this is never thrown
 o isWritable
 public boolean isWritable(int column) throws SQLException
This is always true for mSQL columns.

Parameters:
column - the column being queried
Returns:
true
Throws: SQLException
this is never thrown

All Packages  Class Hierarchy  This Package  Previous  Next  Index