public class BaseTypeIdImpl extends java.lang.Object implements Formatable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
private int formatId
protected java.lang.String schemaName
java.lang.String unqualifiedName
transient int JDBCTypeId
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 typeBaseTypeIdImpl(java.lang.String schemaName, java.lang.String unqualifiedName)
schemaName
- The schema that the UDT lives inunqualifiedName
- The unqualified name of the UDT in that schemapublic java.lang.String getSQLTypeName()
public java.lang.String getSchemaName()
public java.lang.String getUnqualifiedName()
public boolean isAnsiUDT()
public int getJDBCTypeId()
Types
public java.lang.String toParsableString(TypeDescriptor td)
td
- Data type descriptor that holds the
length/precision etc. as necessarypublic boolean userType()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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.Externalizable
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
out
- 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)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.