java.io.Externalizable, java.io.Serializable, Formatable, TypedFormatpublic 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, toStringprotected java.lang.String className
public UserDefinedTypeIdImpl()
public UserDefinedTypeIdImpl(java.lang.String className)
throws StandardException
className - The SQL name of the typeStandardExceptionpublic 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 BaseTypeIdImplpublic boolean isBound()
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class BaseTypeIdImplin - 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.ExternalizablewriteExternal in class BaseTypeIdImplout - write bytes here.java.io.IOException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatgetTypeFormatId in class BaseTypeIdImplApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.