| java.lang.Object org.apache.derby.iapi.types.JSQLType
JSQLType | final public class JSQLType implements Formatable(Code) | | Type descriptor which wraps all 3 kinds of types supported in Cloudscape's
JSQL language: SQL types, Java primitives, Java classes.
This interface was originally added to support the serializing of WorkUnit
signatures.
author: Rick |
Constructor Summary | |
public | JSQLType() Public 0-arg constructor for Formatable machinery. | public | JSQLType(DataTypeDescriptor sqlType) Create a JSQLType from a SQL type. | public | JSQLType(String javaName) Create a JSQLType given the name of a Java primitive or java class. | public | JSQLType(byte primitiveKind) Create a JSQLType for a Java primitive. |
BOOLEAN | final public static byte BOOLEAN(Code) | | |
BYTE | final public static byte BYTE(Code) | | |
CHAR | final public static byte CHAR(Code) | | |
DOUBLE | final public static byte DOUBLE(Code) | | |
FLOAT | final public static byte FLOAT(Code) | | |
INT | final public static byte INT(Code) | | |
JAVA_CLASS | final public static byte JAVA_CLASS(Code) | | |
JAVA_PRIMITIVE | final public static byte JAVA_PRIMITIVE(Code) | | |
LONG | final public static byte LONG(Code) | | |
NOT_PRIMITIVE | final public static byte NOT_PRIMITIVE(Code) | | |
SHORT | final public static byte SHORT(Code) | | |
SQLTYPE | final public static byte SQLTYPE(Code) | | |
primitiveNames | final public static String[] primitiveNames(Code) | | |
JSQLType | public JSQLType()(Code) | | Public 0-arg constructor for Formatable machinery.
|
JSQLType | public JSQLType(DataTypeDescriptor sqlType)(Code) | | Create a JSQLType from a SQL type.
Parameters: sqlType - the SQL type to wrap |
JSQLType | public JSQLType(String javaName)(Code) | | Create a JSQLType given the name of a Java primitive or java class.
Parameters: javaName - name of java primitive or class to wrap |
JSQLType | public JSQLType(byte primitiveKind)(Code) | | Create a JSQLType for a Java primitive.
Parameters: primitiveKind - primitive to wrap |
getCategory | public byte getCategory()(Code) | | What kind of type is this:
one of the following: SQLTYPE, JAVA_PRIMITIVE, JAVA_CLASS |
getJavaClassName | public String getJavaClassName()(Code) | | If this is a JAVA_CLASS, what is it's name?
java class name if this is a JAVA_CLASSnull if this is SQLTYPE or JAVA_PRIMITIVE |
getPrimitiveKind | public byte getPrimitiveKind()(Code) | | If this is a JAVA_PRIMITIVE, what is its name?
BOOLEAN, INT, ... if this is a JAVA_PRIMITIVE.NOT_PRIMITIVE if this is SQLTYPE or JAVA_CLASS. |
getSQLType | public DataTypeDescriptor getSQLType()(Code) | | What's our SQLTYPE?
the DataTypeDescriptor corresponding to this type |
getTypeFormatId | public int getTypeFormatId()(Code) | | Get the formatID which corresponds to this class.
the formatID of this class |
|
|