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[]_columnNamesThis 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 setintgetJDBCTypeId()Get the corresponding JDBC type.java.lang.StringgetSQLTypeName()Get the SQL name of this multi set.intgetTypeFormatId()Get the id which indicates which class deserializes us.TypeDescriptor[]getTypes()Get the types of the columns in this row setvoidreadExternal(java.io.ObjectInput in)Read ourself from a formatable stream.voidsetTypes(TypeDescriptor[] types)Set the types of the columns in this row setvoidwriteExternal(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:
getSQLTypeNamein classBaseTypeIdImpl- Returns:
- A String containing the SQL name of this type.
-
getJDBCTypeId
public int getJDBCTypeId()
Get the corresponding JDBC type.
- Overrides:
getJDBCTypeIdin 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:
getTypeFormatIdin interfaceTypedFormat- Overrides:
getTypeFormatIdin classBaseTypeIdImpl- Returns:
- the formatID of this class
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionRead ourself from a formatable stream.
- Specified by:
readExternalin interfacejava.io.Externalizable- Overrides:
readExternalin 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.IOExceptionWrite ourself to a formatable stream.
- Specified by:
writeExternalin interfacejava.io.Externalizable- Overrides:
writeExternalin classBaseTypeIdImpl- Parameters:
out- write bytes here.- Throws:
java.io.IOException- thrown on error
-
-