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)
-
getCatalogName(int)
- This operation is not supported.
-
getColumnClassName(int)
- UDTs are not supported by mSQL.
-
getColumnCount()
-
-
getColumnDisplaySize(int)
-
-
getColumnLabel(int)
- mSQL-JDBC 2.0 behaviour change! This method now returns the column
label without the table name prefixed onto it.
-
getColumnName(int)
-
-
getColumnType(int)
-
-
getColumnTypeName(int)
-
-
getPrecision(int)
- This is a total hack for mSQL, as it does not inherently have any
concept of precision or scale.
-
getScale(int)
- This is a total hack for mSQL, as it does not inherently have any
concept of precision or scale.
-
getSchemaName(int)
- mSQL does not have schemas.
-
getTableName(int)
-
-
isAutoIncrement(int)
-
-
isCaseSensitive(int)
-
-
isCurrency(int)
-
-
isDefinitelyWritable(int)
- This always returns true for the lack of anything better to do.
-
isNullable(int)
-
-
isReadOnly(int)
- mSQL does not support read-only mode.
-
isSearchable(int)
-
-
isSigned(int)
-
-
isWritable(int)
- This is always true for mSQL columns.
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
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.
getColumnCount
public int getColumnCount() throws SQLException
- Returns:
- the number of columns in the result set
- Throws: SQLException
- this is never thrown
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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