|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akiban.sql.types.JSQLType
public final class JSQLType
Type descriptor which wraps all 3 kinds of types supported in Derby's JSQL language: SQL types, Java primitives, Java classes. This interface was originally added to support the serializing of WorkUnit signatures.
| Field Summary | |
|---|---|
static byte |
BOOLEAN
|
static byte |
BYTE
|
static byte |
CHAR
|
static byte |
DOUBLE
|
static byte |
FLOAT
|
static byte |
INT
|
static byte |
JAVA_CLASS
|
static byte |
JAVA_PRIMITIVE
|
static byte |
LONG
|
static byte |
NOT_PRIMITIVE
|
static byte |
SHORT
|
static byte |
SQLTYPE
|
| Constructor Summary | |
|---|---|
JSQLType(byte primitiveKind)
Create a JSQLType for a Java primitive. |
|
JSQLType(DataTypeDescriptor sqlType)
Create a JSQLType from a SQL type. |
|
JSQLType(String javaName)
Create a JSQLType given the name of a Java primitive or java class. |
|
| Method Summary | |
|---|---|
byte |
getCategory()
What kind of type is this: |
String |
getJavaClassName()
If this is a JAVA_CLASS, what is it's name? |
byte |
getPrimitiveKind()
If this is a JAVA_PRIMITIVE, what is its name? |
static String |
getPrimitiveName(byte index)
|
String |
getPrimitiveTypeName()
|
DataTypeDescriptor |
getSQLType()
What's our SQLTYPE? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte SQLTYPE
public static final byte JAVA_CLASS
public static final byte JAVA_PRIMITIVE
public static final byte NOT_PRIMITIVE
public static final byte BOOLEAN
public static final byte CHAR
public static final byte BYTE
public static final byte SHORT
public static final byte INT
public static final byte LONG
public static final byte FLOAT
public static final byte DOUBLE
| Constructor Detail |
|---|
public JSQLType(DataTypeDescriptor sqlType)
sqlType - the SQL type to wrappublic JSQLType(String javaName)
javaName - name of java primitive or class to wrappublic JSQLType(byte primitiveKind)
primitiveKind - primitive to wrap| Method Detail |
|---|
public byte getCategory()
public byte getPrimitiveKind()
public String getJavaClassName()
public String getPrimitiveTypeName()
public DataTypeDescriptor getSQLType()
throws StandardException
StandardExceptionpublic static String getPrimitiveName(byte index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||