|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.catalog.types.BaseTypeIdImpl
public class BaseTypeIdImpl
This class is the base class for all type ids that are written to the system tables.
| Field Summary | |
|---|---|
private int |
formatId
This class implements Formatable. |
(package private) int |
JDBCTypeId
JDBC type - derived from the format identifier. |
protected java.lang.String |
schemaName
|
(package private) java.lang.String |
unqualifiedName
|
| Constructor Summary | |
|---|---|
BaseTypeIdImpl()
niladic constructor. |
|
BaseTypeIdImpl(int formatId)
1 argument constructor. |
|
BaseTypeIdImpl(java.lang.String SQLTypeName)
Constructor for an BaseTypeIdImpl |
|
BaseTypeIdImpl(java.lang.String schemaName,
java.lang.String unqualifiedName)
Constructor for an BaseTypeIdImpl which describes a UDT |
|
| Method Summary | |
|---|---|
private java.lang.String |
doubleQuote(java.lang.String raw)
|
boolean |
equals(java.lang.Object that)
we want equals to say if these are the same type id or not. |
int |
getJDBCTypeId()
Get the jdbc type id for this type. |
java.lang.String |
getSchemaName()
Get the schema name of this type. |
java.lang.String |
getSQLTypeName()
Returns the SQL name of the datatype. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
java.lang.String |
getUnqualifiedName()
Get the unqualified name of this type. |
int |
hashCode()
Hashcode which works with equals. |
boolean |
isAnsiUDT()
Return true if this is this type id describes an ANSI UDT |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
private void |
setTypeIdSpecificInstanceVariables()
|
private java.lang.String |
stripQuotes(java.lang.String quoted)
|
java.lang.String |
toParsableString(TypeDescriptor td)
Converts this TypeId, given a data type descriptor (including length/precision), to a string. |
java.lang.String |
toString()
Format this BaseTypeIdImpl as a String |
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 java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int formatId
protected java.lang.String schemaName
java.lang.String unqualifiedName
transient int JDBCTypeId
| Constructor Detail |
|---|
public BaseTypeIdImpl()
public BaseTypeIdImpl(int formatId)
formatId - Format id of specific type id.BaseTypeIdImpl(java.lang.String SQLTypeName)
SQLTypeName - The unqualified SQL name of the type
BaseTypeIdImpl(java.lang.String schemaName,
java.lang.String unqualifiedName)
schemaName - The schema that the UDT lives inunqualifiedName - The unqualified name of the UDT in that schema| Method Detail |
|---|
public java.lang.String getSQLTypeName()
public java.lang.String getSchemaName()
public java.lang.String getUnqualifiedName()
public boolean isAnsiUDT()
public int getJDBCTypeId()
Typespublic java.lang.String toParsableString(TypeDescriptor td)
td - Data type descriptor that holds the
length/precision etc. as necessary
public boolean userType()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormat
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - read this.
java.io.IOException - thrown on error
java.lang.ClassNotFoundException - thrown on error
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes here.
java.io.IOException - thrown on errorprivate void setTypeIdSpecificInstanceVariables()
private java.lang.String doubleQuote(java.lang.String raw)
private java.lang.String stripQuotes(java.lang.String quoted)
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||