java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, ResultDescriptionpublic final class GenericResultDescription extends java.lang.Object implements ResultDescription, Formatable
| Modifier and Type | Field | Description |
|---|---|---|
private java.util.Map<java.lang.String,java.lang.Integer> |
columnNameMap |
A map which maps a column name to a column number.
|
private ResultColumnDescriptor[] |
columns |
This class implements Formatable.
|
private java.sql.ResultSetMetaData |
metaData |
Saved JDBC ResultSetMetaData object.
|
private java.lang.String |
statementType |
| Constructor | Description |
|---|---|
GenericResultDescription() |
Niladic constructor for Formatable
|
GenericResultDescription(ResultColumnDescriptor[] columns,
java.lang.String statementType) |
Build a GenericResultDescription from columns and type
|
GenericResultDescription(ResultDescription rd,
int[] theCols) |
Build a GenericResultDescription
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
findColumnInsenstive(java.lang.String columnName) |
Find a column name based upon the JDBC rules for
getXXX and setXXX.
|
int |
getColumnCount() |
Returns the number of columns in the result set.
|
ResultColumnDescriptor |
getColumnDescriptor(int position) |
position is 1-based.
|
ResultColumnDescriptor[] |
getColumnInfo() |
Return information about all the columns.
|
ResultColumnDescriptor |
getColumnInfo(int idx) |
Return the information about a single column (0-based indexing)
|
java.sql.ResultSetMetaData |
getMetaData() |
Get the saved meta data.
|
java.lang.String |
getStatementType() |
Returns an identifier that tells what type of statement has been
executed.
|
int |
getTypeFormatId() |
Get the formatID which corresponds to this class.
|
void |
readExternal(java.io.ObjectInput in) |
Read this object from a stream of stored objects.
|
void |
setMetaData(java.sql.ResultSetMetaData rsmd) |
Set the meta data if it has not already been set.
|
java.lang.String |
toString() |
|
ResultDescription |
truncateColumns(int truncateFrom) |
Get a new result description that has been truncated
from input column number.
|
void |
writeExternal(java.io.ObjectOutput out) |
Write this object out
|
private ResultColumnDescriptor[] columns
private java.lang.String statementType
private transient java.sql.ResultSetMetaData metaData
private java.util.Map<java.lang.String,java.lang.Integer> columnNameMap
public GenericResultDescription()
public GenericResultDescription(ResultColumnDescriptor[] columns, java.lang.String statementType)
columns - an array of col descriptorsstatementType - the typepublic GenericResultDescription(ResultDescription rd, int[] theCols)
rd - the result descriptiontheCols - the columns to take from the input rdpublic java.lang.String getStatementType()
ResultDescriptiongetStatementType in interface ResultDescriptionResultDescription.getStatementType()public int getColumnCount()
ResultDescriptiongetColumnCount in interface ResultDescriptionResultDescription.getColumnCount()public ResultColumnDescriptor[] getColumnInfo()
ResultDescriptiongetColumnInfo in interface ResultDescriptionpublic ResultColumnDescriptor getColumnInfo(int idx)
ResultDescriptiongetColumnInfo in interface ResultDescriptionpublic ResultColumnDescriptor getColumnDescriptor(int position)
getColumnDescriptor in interface ResultDescriptionposition - The oridinal position of a column in the
ResultSet.ResultDescription.getColumnDescriptor(int)public ResultDescription truncateColumns(int truncateFrom)
truncateColumns in interface ResultDescriptiontruncateFrom - the starting column to removepublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes herejava.io.IOException - thrown on errorpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - read this.java.io.IOException - thrown on errorjava.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setMetaData(java.sql.ResultSetMetaData rsmd)
setMetaData in interface ResultDescriptionpublic java.sql.ResultSetMetaData getMetaData()
getMetaData in interface ResultDescriptionpublic int findColumnInsenstive(java.lang.String columnName)
findColumnInsenstive in interface ResultDescriptionApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.