com.ibm.as400.micro
Class JdbcMeResultSetMetaData
java.lang.Object
com.ibm.as400.micro.JdbcMeResultSetMetaData
- All Implemented Interfaces:
- ResultSetMetaData
- public class JdbcMeResultSetMetaData
- extends Object
- implements ResultSetMetaData
JdbcMeResultSetMetaData implements the java.sql.ResultSetMetaData
interface as provided for a Java 2 Micro-Edition device.
Note: Since Java 2 Micro-Edition does not include java.sql,
JdbcMeResultSetMetaData implements the java.sql package that is also part
of this driver.
Method Summary |
int |
getColumnCount()
Returns the number of columns in the result set. |
int |
getColumnType(int column)
Returns the type of a column. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.sql.ResultSetMetaData |
getCatalogName, getColumnClassName, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable |
getColumnCount
public int getColumnCount()
throws JdbcMeException
- Returns the number of columns in the result set.
- Specified by:
getColumnCount
in interface ResultSetMetaData
- Returns:
- The number of columns.
- Throws:
JdbcMeException
- If an error occurs.
getColumnType
public int getColumnType(int column)
throws JdbcMeException
- Returns the type of a column. If the type is a distinct type,
this returns the underlying type.
- Specified by:
getColumnType
in interface ResultSetMetaData
- Parameters:
column
- The column index (1-based).
- Returns:
- The SQL type code defined in java.sql.Types.
- Throws:
JdbcMeException
- If the column index is not valid.