Package org.jtester.module.database.environment.typesmap.TypeMap

Examples of org.jtester.module.database.environment.typesmap.TypeMap.JavaSQLType


@SuppressWarnings("rawtypes")
public class TypeMap extends HashMap<String, JavaSQLType> {
  private static final long serialVersionUID = -8446876368817445261L;

  public void put(String type, Class javaType, int sqlType) {
    this.put(type, new JavaSQLType(javaType, sqlType));
  }
View Full Code Here


  public void put(String type, Class javaType, int sqlType) {
    this.put(type, new JavaSQLType(javaType, sqlType));
  }

  public Class getJavaType(String type) {
    JavaSQLType javaSql = this.get(type);
    if (javaSql == null) {
      return null;
    } else {
      return javaSql.javaType;
    }
View Full Code Here

      return javaSql.javaType;
    }
  }

  public int getSQLType(String type) {
    JavaSQLType javaSql = this.get(type);
    if (javaSql == null) {
      return -1;
    } else {
      return javaSql.sqlType;
    }
View Full Code Here

      this.put("VARBINARY", InputStream.class, Types.BINARY);
    }
  };

  public static Class getJavaType(String type) {
    JavaSQLType map = maps.get(type);
    return map == null ? null : map.getJavaType();
  }
View Full Code Here

    JavaSQLType map = maps.get(type);
    return map == null ? null : map.getJavaType();
  }

  public static Integer getSQLType(String type) {
    JavaSQLType map = maps.get(type);
    return map == null ? null : map.getSqlType();
  }
View Full Code Here

      this.put("SMALLINT", Short.class, Types.SMALLINT);
    }
  };

  public static Class getJavaType(String type) {
    JavaSQLType map = maps.get(type);
    return map == null ? null : map.getJavaType();
  }
View Full Code Here

    JavaSQLType map = maps.get(type);
    return map == null ? null : map.getJavaType();
  }

  public static Integer getSQLType(String type) {
    JavaSQLType map = maps.get(type);
    return map == null ? null : map.getSqlType();
  }
View Full Code Here

TOP

Related Classes of org.jtester.module.database.environment.typesmap.TypeMap.JavaSQLType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.