org.apache.gora.sql.store
Class SqlTypeInterface
java.lang.Object
org.apache.gora.sql.store.SqlTypeInterface
public class SqlTypeInterface
- extends Object
Contains utility methods related to type conversion between
java, avro and SQL types.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlTypeInterface
public SqlTypeInterface()
getSqlType
public static int getSqlType(Class<?> clazz)
getJdbcType
public static SqlTypeInterface.JdbcType getJdbcType(org.apache.avro.Schema schema,
int length,
int scale)
throws IOException
- Throws:
IOException
getJdbcType
public static SqlTypeInterface.JdbcType getJdbcType(Class<?> clazz,
int length,
int scale)
throws IOException
- Throws:
IOException
stringToJdbcType
public static SqlTypeInterface.JdbcType stringToJdbcType(String type)
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.