Class Hierarchy Previous Next Index
Class COM.cloudscape.vti.ErrorMessages
java.lang.Object
|
+----COM.cloudscape.vti.VTITemplate
|
+----COM.cloudscape.vti.ErrorMessages
- public class ErrorMessages
- extends VTITemplate
- implements VTICosting
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.
ErrorMessage is a VTI class that contains all the SQLStates, locale-sensitive error
messages, and exception severities for a database.
To use it, query it as an external virtual table:
SELECT * FROM NEW ErrorMessages() AS EQ;
The ErrorMessages VTI has the following columns:
- SQL_STATE--VARCHAR(5) - The SQLState of the SQLException.
(The code returned by SQLException.getSQLState().)
- MESSAGE--VARCHAR(500) - The error message
(The code returned by SQLException.getSQLState().)
- SEVERITY--INTEGER - The Cloudscape code for the severity.
(The code returned by SQLException.getSQLState().)
defaultEstimatedCost-
defaultEstimatedRowCount-
ErrorMessages()
-
close()
- See java.sql.ResultSet.close().
getEstimatedCostPerInstantiation(VTIEnvironment)
- Cloudscape calls this during optimization.
getEstimatedRowCount(VTIEnvironment)
- Cloudscape calls this during optimization.
getInt(int)
- See java.sql.ResultSet.getInt()
getMetaData()
- See java.sql.ResultSet.getMetaData().
getString(int)
- See java.sql.ResultSet.getString()
next()
- See java.sql.ResultSet.next().
supportsMultipleInstantiations(VTIEnvironment)
- Cloudscape calls this during optimization.
wasNull(int)
-
defaultEstimatedRowCount
public static final double defaultEstimatedRowCount
defaultEstimatedCost
public static final double defaultEstimatedCost
ErrorMessages
public ErrorMessages()
wasNull
public boolean wasNull(int col)
next
public boolean next()
See java.sql.ResultSet.next().
close
public void close()
See java.sql.ResultSet.close().
getMetaData
public java.sql.ResultSetMetaData getMetaData()
See java.sql.ResultSet.getMetaData().
getString
public java.lang.String getString(int columnIndex) throws java.sql.SQLException
See java.sql.ResultSet.getString()
- Throws:
- java.sql.SQLException - column at index is not found
- Overrides:
- getString in class VTITemplate
getInt
public int getInt(int columnIndex) throws java.sql.SQLException
See java.sql.ResultSet.getInt()
- Throws:
- java.sql.SQLException - column at index is not found
- Overrides:
- getInt in class VTITemplate
getEstimatedRowCount
public double getEstimatedRowCount(VTIEnvironment vtiEnvironment)
Cloudscape calls this during optimization. Part of the
VTICosting interface.
getEstimatedCostPerInstantiation
public double getEstimatedCostPerInstantiation(VTIEnvironment vtiEnvironment)
Cloudscape calls this during optimization. Part of the
VTICosting interface.
supportsMultipleInstantiations
public boolean supportsMultipleInstantiations(VTIEnvironment vtiEnvironment)
Cloudscape calls this during optimization. Part of the
VTICosting interface.
Class Hierarchy Previous Next Index