org.apache.gora.sql.store
Class SqlTypeInterface

java.lang.Object
  extended by org.apache.gora.sql.store.SqlTypeInterface

public class SqlTypeInterface
extends java.lang.Object

Contains utility methods related to type conversion between java, avro and SQL types.


Nested Class Summary
static class SqlTypeInterface.JdbcType
          Encapsules java.sql.Types as an enum
 
Constructor Summary
SqlTypeInterface()
           
 
Method Summary
static SqlTypeInterface.JdbcType getJdbcType(java.lang.Class<?> clazz, int length, int scale)
           
static SqlTypeInterface.JdbcType getJdbcType(org.apache.avro.Schema schema, int length, int scale)
           
static int getSqlType(java.lang.Class<?> clazz)
           
static SqlTypeInterface.JdbcType stringToJdbcType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlTypeInterface

public SqlTypeInterface()
Method Detail

getSqlType

public static int getSqlType(java.lang.Class<?> clazz)

getJdbcType

public static SqlTypeInterface.JdbcType getJdbcType(org.apache.avro.Schema schema,
                                                    int length,
                                                    int scale)
                                             throws java.io.IOException
Throws:
java.io.IOException

getJdbcType

public static SqlTypeInterface.JdbcType getJdbcType(java.lang.Class<?> clazz,
                                                    int length,
                                                    int scale)
                                             throws java.io.IOException
Throws:
java.io.IOException

stringToJdbcType

public static SqlTypeInterface.JdbcType stringToJdbcType(java.lang.String type)


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