public final class JSQLType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
JSQLType(byte primitiveKind)
Create a JSQLType for a Java primitive.
|
JSQLType(DataTypeDescriptor sqlType)
Create a JSQLType from a SQL type.
|
JSQLType(java.lang.String javaName)
Create a JSQLType given the name of a Java primitive or java class.
|
Modifier and Type | Method and Description |
---|---|
byte |
getCategory()
What kind of type is this:
|
java.lang.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 java.lang.String |
getPrimitiveName(byte index) |
java.lang.String |
getPrimitiveTypeName() |
DataTypeDescriptor |
getSQLType()
What's our SQLTYPE?
|
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
public JSQLType(DataTypeDescriptor sqlType)
sqlType
- the SQL type to wrappublic JSQLType(java.lang.String javaName)
javaName
- name of java primitive or class to wrappublic JSQLType(byte primitiveKind)
primitiveKind
- primitive to wrappublic byte getCategory()
public byte getPrimitiveKind()
public java.lang.String getJavaClassName()
public java.lang.String getPrimitiveTypeName()
public DataTypeDescriptor getSQLType() throws StandardException
StandardException
public static java.lang.String getPrimitiveName(byte index)
Copyright © 2013. All Rights Reserved.