org.apache.gora.sql.store
Enum SqlTypeInterface.JdbcType

java.lang.Object
  extended by java.lang.Enum<SqlTypeInterface.JdbcType>
      extended by org.apache.gora.sql.store.SqlTypeInterface.JdbcType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SqlTypeInterface.JdbcType>
Enclosing class:
SqlTypeInterface

public static enum SqlTypeInterface.JdbcType
extends java.lang.Enum<SqlTypeInterface.JdbcType>

Encapsules java.sql.Types as an enum


Enum Constant Summary
ARRAY
           
BIGINT
           
BINARY
           
BIT
           
BLOB
           
BOOLEAN
           
CHAR
           
CLOB
           
DATALINK
           
DATE
           
DECIMAL
           
DISTINCT
           
DOUBLE
           
FLOAT
           
INTEGER
           
LONGNVARCHAR
           
LONGVARBINARY
           
LONGVARCHAR
           
NCHAR
           
NCLOB
           
NULL
           
NUMERIC
           
NVARCHAR
           
OTHER
           
REAL
           
REF
           
ROWID
           
SMALLINT
           
SQLXML
           
STRUCT
           
TIME
           
TIMESTAMP
           
TINYINT
           
VARBINARY
           
VARCHAR
           
 
Method Summary
static SqlTypeInterface.JdbcType get(int order)
          Returns a JdbcType enum from a jdbc type in java.sql.Types
 int getOrder()
           
 java.lang.String getSqlType()
           
static SqlTypeInterface.JdbcType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SqlTypeInterface.JdbcType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ARRAY

public static final SqlTypeInterface.JdbcType ARRAY

BIT

public static final SqlTypeInterface.JdbcType BIT

BIGINT

public static final SqlTypeInterface.JdbcType BIGINT

BINARY

public static final SqlTypeInterface.JdbcType BINARY

BLOB

public static final SqlTypeInterface.JdbcType BLOB

BOOLEAN

public static final SqlTypeInterface.JdbcType BOOLEAN

CHAR

public static final SqlTypeInterface.JdbcType CHAR

CLOB

public static final SqlTypeInterface.JdbcType CLOB

DATALINK

public static final SqlTypeInterface.JdbcType DATALINK

DATE

public static final SqlTypeInterface.JdbcType DATE

DECIMAL

public static final SqlTypeInterface.JdbcType DECIMAL

DISTINCT

public static final SqlTypeInterface.JdbcType DISTINCT

DOUBLE

public static final SqlTypeInterface.JdbcType DOUBLE

FLOAT

public static final SqlTypeInterface.JdbcType FLOAT

INTEGER

public static final SqlTypeInterface.JdbcType INTEGER

LONGNVARCHAR

public static final SqlTypeInterface.JdbcType LONGNVARCHAR

LONGVARBINARY

public static final SqlTypeInterface.JdbcType LONGVARBINARY

LONGVARCHAR

public static final SqlTypeInterface.JdbcType LONGVARCHAR

NCHAR

public static final SqlTypeInterface.JdbcType NCHAR

NCLOB

public static final SqlTypeInterface.JdbcType NCLOB

NULL

public static final SqlTypeInterface.JdbcType NULL

NUMERIC

public static final SqlTypeInterface.JdbcType NUMERIC

NVARCHAR

public static final SqlTypeInterface.JdbcType NVARCHAR

OTHER

public static final SqlTypeInterface.JdbcType OTHER

REAL

public static final SqlTypeInterface.JdbcType REAL

REF

public static final SqlTypeInterface.JdbcType REF

ROWID

public static final SqlTypeInterface.JdbcType ROWID

SMALLINT

public static final SqlTypeInterface.JdbcType SMALLINT

SQLXML

public static final SqlTypeInterface.JdbcType SQLXML

STRUCT

public static final SqlTypeInterface.JdbcType STRUCT

TIME

public static final SqlTypeInterface.JdbcType TIME

TIMESTAMP

public static final SqlTypeInterface.JdbcType TIMESTAMP

TINYINT

public static final SqlTypeInterface.JdbcType TINYINT

VARBINARY

public static final SqlTypeInterface.JdbcType VARBINARY

VARCHAR

public static final SqlTypeInterface.JdbcType VARCHAR
Method Detail

values

public static SqlTypeInterface.JdbcType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SqlTypeInterface.JdbcType c : SqlTypeInterface.JdbcType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SqlTypeInterface.JdbcType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getSqlType

public java.lang.String getSqlType()

getOrder

public int getOrder()

get

public static final SqlTypeInterface.JdbcType get(int order)
Returns a JdbcType enum from a jdbc type in java.sql.Types

Parameters:
order - an integer in java.sql.Types


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.