| Modifier and Type | Field and Description |
|---|---|
| private Map | columnNameMap
A map which maps a column name to a column number. |
| private ResultColumnDescriptor[] | columns
This class implements Formatable. |
| private transient ResultSetMetaData | metaData
Saved JDBC ResultSetMetaData object. |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | GenericResultDescription(ResultColumnDescriptor[]
an array of col descriptors columns, String the type statementType)Build a GenericResultDescription from columns and type |
| public | GenericResultDescription(ResultDescription
the result description rd, int[] the columns to take from the input rd theCols)Build a GenericResultDescription |
| Modifier and Type | Method and Description |
|---|---|
| public int | findColumnInsenstive(String
The column name columnName)Implements org. Find a column name based upon the JDBC rules for getXXX and setXXX. |
| public int | getColumnCount()
Implements org. Returns the number of columns in the result set. |
| public ResultColumnDescriptor | getColumnDescriptor(int
The oridinal position of a column in the
ResultSet. position)Implements org. position is 1-based. |
| public ResultColumnDescriptor[] | getColumnInfo()
Implements org. Return information about all the columns. |
| public ResultColumnDescriptor | getColumnInfo(int
The column index idx)Implements org. Return the information about a single column (0-based indexing) |
| public synchronized ResultSetMetaData | getMetaData()
Implements org. Get the saved meta data. |
| public String | getStatementType()
Implements org. Returns an identifier that tells what type of statement has been executed. |
| public int | Returns: the formatID of this classImplements org. Get the formatID which corresponds to this class. |
| public void | readExternal(ObjectInput
read this. in)Implements java. Read this object from a stream of stored objects. |
| public synchronized void | setMetaData(ResultSetMetaData
The metadata to set rsmd)Implements org. Set the meta data if it has not already been set. |
| public String | |
| public ResultDescription | Returns: a new ResultDescriptionthe starting column to remove truncateFrom)Implements org. Get a new result description that has been truncated from input column number. |
| public void | writeExternal(ObjectOutput
write bytes here out)Implements java. Write this object out |
| columnNameMap | back to summary |
|---|---|
| private Map<String, Integer> columnNameMap A map which maps a column name to a column number. Entries only added when accessing columns with the name. | |
| columns | back to summary |
|---|---|
| private ResultColumnDescriptor[] columns This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method. | |
| metaData | back to summary |
|---|---|
| private transient ResultSetMetaData metaData Saved JDBC ResultSetMetaData object. | |
| statementType | back to summary |
|---|---|
| private String statementType | |
| GenericResultDescription | back to summary |
|---|---|
| public GenericResultDescription() Niladic constructor for Formatable | |
| GenericResultDescription | back to summary |
|---|---|
| public GenericResultDescription(ResultColumnDescriptor[] columns, String statementType) Build a GenericResultDescription from columns and type
| |
| GenericResultDescription | back to summary |
|---|---|
| public GenericResultDescription(ResultDescription rd, int[] theCols) Build a GenericResultDescription
| |
| findColumnInsenstive | back to summary |
|---|---|
| public int findColumnInsenstive(String columnName) Implements org. Find a column name based upon the JDBC rules for getXXX and setXXX. Name matching is case-insensitive, matching the first name (1-based) if there are multiple columns that map to the same name.
| |
| getColumnCount | back to summary |
|---|---|
| public int getColumnCount() Implements org. Doc from org. Returns the number of columns in the result set.
| |
| getColumnDescriptor | back to summary |
|---|---|
| public ResultColumnDescriptor getColumnDescriptor(int position) Implements org. position is 1-based.
| |
| getColumnInfo | back to summary |
|---|---|
| public ResultColumnDescriptor[] getColumnInfo() Implements org. Doc from org. Return information about all the columns.
| |
| getColumnInfo | back to summary |
|---|---|
| public ResultColumnDescriptor getColumnInfo(int idx) Implements org. Doc from org. Return the information about a single column (0-based indexing)
| |
| getMetaData | back to summary |
|---|---|
| public synchronized ResultSetMetaData getMetaData() Implements org. Get the saved meta data.
| |
| getStatementType | back to summary |
|---|---|
| public String getStatementType() Implements org. Doc from org. 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.
| |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Get the formatID which corresponds to this class.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Read this object from a stream of stored objects.
| |
| setMetaData | back to summary |
|---|---|
| public synchronized void setMetaData(ResultSetMetaData rsmd) Implements org. Set the meta data if it has not already been set.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| truncateColumns | back to summary |
|---|---|
| public ResultDescription truncateColumns(int truncateFrom) Implements org. 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.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Write this object out
| |