java.io.Externalizable
, java.io.Serializable
, Formatable
, TypedFormat
public class UserDefinedTypeIdImpl extends BaseTypeIdImpl
This type id describes a user defined type. There are 2 kinds of user defined types in Derby:
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
className |
This class implements Formatable.
|
JDBCTypeId, schemaName, unqualifiedName
Constructor | Description |
---|---|
UserDefinedTypeIdImpl() |
Public niladic constructor.
|
UserDefinedTypeIdImpl(java.lang.String className) |
Constructor for a UserDefinedTypeIdImpl.
|
UserDefinedTypeIdImpl(java.lang.String schemaName,
java.lang.String unqualifiedName,
java.lang.String className) |
Constructor for a UDT.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getClassName() |
Return the java class name for this type
|
int |
getTypeFormatId() |
Get the formatID which corresponds to this class.
|
boolean |
isBound() |
Has this user type been bound?
|
void |
readExternal(java.io.ObjectInput in) |
Read this object from a stream of stored objects.
|
boolean |
userType() |
Does this type id represent a user type?
|
void |
writeExternal(java.io.ObjectOutput out) |
Write this object to a stream of stored objects.
|
equals, getJDBCTypeId, getSchemaName, getSQLTypeName, getUnqualifiedName, hashCode, isAnsiUDT, toParsableString, toString
protected java.lang.String className
public UserDefinedTypeIdImpl()
public UserDefinedTypeIdImpl(java.lang.String className) throws StandardException
className
- The SQL name of the typeStandardException
public UserDefinedTypeIdImpl(java.lang.String schemaName, java.lang.String unqualifiedName, java.lang.String className)
schemaName
- Schema that the UDT lives in.unqualifiedName
- The name of the type inside that schema.className
- The Java class bound to the SQL type.public java.lang.String getClassName()
public boolean userType()
userType
in class BaseTypeIdImpl
public boolean isBound()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class BaseTypeIdImpl
in
- read this.java.io.IOException
- thrown on errorjava.lang.ClassNotFoundException
- thrown on errorpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class BaseTypeIdImpl
out
- write bytes here.java.io.IOException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
getTypeFormatId
in class BaseTypeIdImpl
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.