org.apache.gora.sql.store
Class SqlTypeInterface
java.lang.Object
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.
| 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(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.