Package org.apache.derby.catalog.types
Class RowMultiSetImpl
- java.lang.Object
-
- org.apache.derby.catalog.types.BaseTypeIdImpl
-
- 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
Fields Modifier and Type Field Description 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
Constructors Constructor Description RowMultiSetImpl()
0-arg constructor for Formatable machinery.RowMultiSetImpl(java.lang.String[] columnNames, TypeDescriptor[] types)
Construct from column names and their types.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getColumnNames()
Get the names of the columns in this row setint
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 setvoid
readExternal(java.io.ObjectInput in)
Read ourself from a formatable stream.void
setTypes(TypeDescriptor[] types)
Set the types of the columns in this row setvoid
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
-
-
-
-
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
-
setTypes
public void setTypes(TypeDescriptor[] types)
Set 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 classBaseTypeIdImpl
- Returns:
- A String containing the SQL name of this type.
-
getJDBCTypeId
public int getJDBCTypeId()
Get the corresponding JDBC type.
- Overrides:
getJDBCTypeId
in classBaseTypeIdImpl
- 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 interfaceTypedFormat
- Overrides:
getTypeFormatId
in classBaseTypeIdImpl
- 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 interfacejava.io.Externalizable
- Overrides:
readExternal
in classBaseTypeIdImpl
- Parameters:
in
- read this.- Throws:
java.io.IOException
- thrown on errorjava.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 interfacejava.io.Externalizable
- Overrides:
writeExternal
in classBaseTypeIdImpl
- Parameters:
out
- write bytes here.- Throws:
java.io.IOException
- thrown on error
-
-