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:
Externalizable
,Serializable
,Formatable
,TypedFormat
Row data type as described in the 2003 SQL spec in part 2, section 4.8.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String[]
This class implements Formatable.private TypeDescriptor[]
Fields inherited from class org.apache.derby.catalog.types.BaseTypeIdImpl
JDBCTypeId, schemaName, unqualifiedName
-
Constructor Summary
ConstructorsConstructorDescription0-arg constructor for Formatable machinery.RowMultiSetImpl
(String[] columnNames, TypeDescriptor[] types) Construct from column names and their types. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the names of the columns in this row setint
Get the corresponding JDBC type.Get the SQL name of this multi set.int
Get the id which indicates which class deserializes us.getTypes()
Get the types of the columns in this row setvoid
Read ourself from a formatable stream.void
setTypes
(TypeDescriptor[] types) Set the types of the columns in this row setvoid
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 Details
-
_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
-
-
Constructor Details
-
RowMultiSetImpl
public RowMultiSetImpl()0-arg constructor for Formatable machinery.
-
RowMultiSetImpl
Construct from column names and their types.
-
-
Method Details
-
getColumnNames
Get the names of the columns in this row set -
getTypes
Get the types of the columns in this row set -
setTypes
Set the types of the columns in this row set -
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:
-
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
Read ourself from a formatable stream.
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classBaseTypeIdImpl
- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write ourself to a formatable stream.
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classBaseTypeIdImpl
- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-