|
||||||||||
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 typepublic GenericResultDescription(ResultDescription rd, int[] theCols)
rd
- the result descriptiontheCols
- the columns to take from the input rdMethod Detail |
public java.lang.String getStatementType()
ResultDescription
getStatementType
in interface ResultDescription
ResultDescription.getStatementType()
public int getColumnCount()
ResultDescription
getColumnCount
in interface ResultDescription
ResultDescription.getColumnCount()
public ResultColumnDescriptor[] getColumnInfo()
ResultDescription
getColumnInfo
in interface ResultDescription
public ResultColumnDescriptor getColumnDescriptor(int position)
getColumnDescriptor
in interface ResultDescription
position
- The oridinal position of a column in the
ResultSet.
ResultDescription.getColumnDescriptor(int)
public ResultDescription truncateColumns(int truncateFrom)
truncateColumns
in interface ResultDescription
truncateFrom
- the starting column to remove
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- write bytes here
java.io.IOException
- thrown on errorpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- read this.
java.io.IOException
- thrown on error
java.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public 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 |