org.apache.derby.catalog.types
Class RowMultiSetImpl

java.lang.Object
  extended by org.apache.derby.catalog.types.BaseTypeIdImpl
      extended by org.apache.derby.catalog.types.RowMultiSetImpl
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat

public class RowMultiSetImpl
extends BaseTypeIdImpl

Row data type as described in the 2003 SQL spec in part 2, section 4.8.

See Also:
Serialized Form

Field Summary
private  java.lang.String[] _columnNames
          This class implements Formatable.
private  TypeDescriptor[] _types
           
 
Fields inherited from class org.apache.derby.catalog.types.BaseTypeIdImpl
JDBCTypeId, schemaName, unqualifiedName
 
Constructor Summary
RowMultiSetImpl()
           0-arg constructor for Formatable machinery.
RowMultiSetImpl(java.lang.String[] columnNames, TypeDescriptor[] types)
           Construct from column names and their types.
 
Method Summary
 java.lang.String[] getColumnNames()
          Get the names of the columns in this row set
 int getJDBCTypeId()
           Get the corresponding JDBC type.
 java.lang.String getSQLTypeName()
           Get the SQL name of this multi set.
 int getTypeFormatId()
           Get the id which indicates which class deserializes us.
 TypeDescriptor[] getTypes()
          Get the types of the columns in this row set
 void readExternal(java.io.ObjectInput in)
           Read ourself from a formatable stream.
 void writeExternal(java.io.ObjectOutput out)
           Write ourself to a formatable stream.
 
Methods inherited from class org.apache.derby.catalog.types.BaseTypeIdImpl
equals, getSchemaName, getUnqualifiedName, hashCode, isAnsiUDT, toParsableString, toString, userType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_columnNames

private java.lang.String[] _columnNames
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.


_types

private TypeDescriptor[] _types
Constructor Detail

RowMultiSetImpl

public RowMultiSetImpl()

0-arg constructor for Formatable machinery.


RowMultiSetImpl

public RowMultiSetImpl(java.lang.String[] columnNames,
                       TypeDescriptor[] types)

Construct from column names and their types.

Method Detail

getColumnNames

public java.lang.String[] getColumnNames()
Get the names of the columns in this row set


getTypes

public TypeDescriptor[] getTypes()
Get the types of the columns in this row set


getSQLTypeName

public java.lang.String getSQLTypeName()

Get the SQL name of this multi set. This is the name suitable for replaying the DDL to create a Table Function.

Overrides:
getSQLTypeName in class BaseTypeIdImpl
Returns:
A String containing the SQL name of this type.

getJDBCTypeId

public int getJDBCTypeId()

Get the corresponding JDBC type.

Overrides:
getJDBCTypeId in class BaseTypeIdImpl
Returns:
a jdbc type, e.g. java.sql.Types.DECIMAL
See Also:
Types

getTypeFormatId

public int getTypeFormatId()

Get the id which indicates which class deserializes us.

Specified by:
getTypeFormatId in interface TypedFormat
Overrides:
getTypeFormatId in class BaseTypeIdImpl
Returns:
the formatID of this class

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException

Read ourself from a formatable stream.

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class BaseTypeIdImpl
Parameters:
in - read this.
Throws:
java.io.IOException - thrown on error
java.lang.ClassNotFoundException - thrown on error

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException

Write ourself to a formatable stream.

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class BaseTypeIdImpl
Parameters:
out - write bytes here.
Throws:
java.io.IOException - thrown on error

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.