|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.derby.impl.sql.GenericResultDescription
GenericResultDescription: basic implementation of result description, used in conjunction with the other implementations in this package. This implementation of ResultDescription may be used by anyone.
| Field Summary | |
private ResultColumnDescriptor[] |
columns
This class implements Formatable. |
private java.lang.String |
statementType
|
| Constructor Summary | |
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 |
|
| Method Summary | |
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. |
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. |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private ResultColumnDescriptor[] columns
private java.lang.String statementType
| Constructor Detail |
public GenericResultDescription()
public GenericResultDescription(ResultColumnDescriptor[] columns,
java.lang.String statementType)
columns - an array of col descriptorsstatementType - the type
public GenericResultDescription(ResultDescription rd,
int[] theCols)
rd - the result descriptiontheCols - the columns to take from the input rd| Method Detail |
public java.lang.String getStatementType()
ResultDescription
getStatementType in interface ResultDescriptionResultDescription.getStatementType()public int getColumnCount()
ResultDescription
getColumnCount in interface ResultDescriptionResultDescription.getColumnCount()public ResultColumnDescriptor[] getColumnInfo()
ResultDescription
getColumnInfo 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 remove
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes here
java.io.IOException - thrown on error
public 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 error
java.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic java.lang.String toString()
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||