| org.apache.derby.iapi.sql.ResultDescription
All known Subclasses: org.apache.derby.impl.sql.GenericResultDescription,
ResultDescription | public interface ResultDescription (Code) | | The ResultDescription interface provides methods to get metadata on the
results returned by a statement.
author: Jeff Lichtman |
getColumnCount | int getColumnCount()(Code) | | Returns the number of columns in the result set.
The number of columns in the result set. |
getColumnDescriptor | ResultColumnDescriptor getColumnDescriptor(int position)(Code) | | Returns a ResultColumnDescriptor for the column, given the oridinal
position of the column.
NOTE - position is 1-based.
Parameters: position - The oridinal position of a column in theResultSet. A ResultColumnDescriptor describing thecolumn in the ResultSet. |
getStatementType | String getStatementType()(Code) | | Returns an identifier that tells what type of statement has been
executed. This can be used to determine what other methods to call
to get the results back from a statement. For example, a SELECT
statement returns rows and columns, while other statements don't,
so you would only call getColumnCount() or getColumnType() for
SELECT statements.
A String identifier telling what type of statement thisis. |
truncateColumns | public ResultDescription truncateColumns(int truncateFrom)(Code) | | Get a new result description that has been truncated
from input column number. If the input column is
5, then columns 5 to getColumnCount() are removed.
The new ResultDescription points to the same
ColumnDescriptors (this method performs a shallow
copy.
Parameters: truncateFrom - the starting column to remove,1-based. a new ResultDescription |
|
|