|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.catalog.types.BaseTypeIdImpl
org.apache.derby.catalog.types.UserDefinedTypeIdImpl
public class UserDefinedTypeIdImpl
This type id describes a user defined type. There are 2 kinds of user defined types in Derby:
Field Summary | |
---|---|
protected java.lang.String |
className
This class implements Formatable. |
Fields inherited from class org.apache.derby.catalog.types.BaseTypeIdImpl |
---|
JDBCTypeId, schemaName, unqualifiedName |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.derby.catalog.types.BaseTypeIdImpl |
---|
equals, getJDBCTypeId, getSchemaName, getSQLTypeName, getUnqualifiedName, hashCode, isAnsiUDT, toParsableString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String className
Constructor Detail |
---|
public UserDefinedTypeIdImpl()
public UserDefinedTypeIdImpl(java.lang.String className) throws StandardException
className
- The SQL name of the type
StandardException
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.Method Detail |
---|
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 error
java.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
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |