Examples of JdbcType


Examples of org.apache.ctakes.jdl.schema.xdl.JdbcType

    if (validation.succeed()) {
      validation.setDocument(srcLoad);
      if (validation.succeed()) {
        JdlConnection jdlConnection = null;
        try {
          JdbcType jdbc = ObjectFactoryUtil
              .getJdbcTypeBySrcXml(srcConn);
          LoadType load = ObjectFactoryUtil
              .getLoadTypeBySrcXml(srcLoad);
          jdlConnection = new JdlConnection(jdbc);
          CsvLoadType csv = load.getCsv();
View Full Code Here

Examples of org.apache.gora.sql.store.SqlTypeInterface.JdbcType

      , Schema schema, Column column) throws SQLException, IOException {

    InputStream is = null;
    byte[] bytes = null;

    JdbcType type = JdbcType.get(resultSet.getMetaData().getColumnType(columnIndex));

    switch(type) {
      case BLOB          : Blob blob = resultSet.getBlob(columnIndex);
                           if (blob != null) is = blob.getBinaryStream(); break;
      case BINARY        :
View Full Code Here

Examples of org.apache.gora.sql.store.SqlTypeInterface.JdbcType

  throws IOException, SQLException {

    OutputStream os = null;
    Blob blob = null;

    JdbcType type = column.getJdbcType();

    switch(type) {
      case BLOB          : blob = connection.createBlob();
                           os = blob.setBinaryStream(1); break;
      case BINARY        :
View Full Code Here

Examples of org.apache.gora.sql.store.SqlTypeInterface.JdbcType

      ResultSet rs = metadata.getTypeInfo();
      dbTypeMap = new HashMap<String, JdbcType>();

      while(rs.next()) {
        JdbcType type = JdbcType.get(rs.getInt("DATA_TYPE"));
        dbTypeMap.put(rs.getString("TYPE_NAME"), type);
      }
      rs.close();

    } catch (SQLException ex) {
View Full Code Here

Examples of org.apache.gora.sql.store.SqlTypeInterface.JdbcType

      String jdbcTypeStr = ele.getAttributeValue("jdbc-type");

      int length = StringUtils.parseInt(ele.getAttributeValue("length"), -1);
      int scale = StringUtils.parseInt(ele.getAttributeValue("scale"), -1);

      JdbcType jdbcType;
      if (jdbcTypeStr != null) {
        jdbcType = dbTypeMap.get(jdbcTypeStr);
        if(jdbcType == null)
          jdbcType = SqlTypeInterface.stringToJdbcType(jdbcTypeStr);
      } else if (fieldName == null) { // fieldName == null implies primary key
View Full Code Here

Examples of org.apache.ibatis.type.JdbcType

        String mode = parameterNode.getStringAttribute("mode");
        String typeHandler = parameterNode.getStringAttribute("typeHandler");
        Integer numericScale = parameterNode.getIntAttribute("numericScale", null);
        ParameterMode modeEnum = resolveParameterMode(mode);
        Class<?> javaTypeClass = resolveClass(javaType);
        JdbcType jdbcTypeEnum = resolveJdbcType(jdbcType);
        Class<? extends TypeHandler> typeHandlerClass = (Class<? extends TypeHandler>) resolveClass(typeHandler);
        ParameterMapping parameterMapping = builderAssistant.buildParameterMapping(parameterClass, property, javaTypeClass, jdbcTypeEnum, resultMap, modeEnum, typeHandlerClass, numericScale);
        parameterMappings.add(parameterMapping);
      }
      builderAssistant.addParameterMap(id, parameterClass, parameterMappings);
View Full Code Here

Examples of org.apache.ibatis.type.JdbcType

    String javaType = context.getStringAttribute("javaType");
    String jdbcType = context.getStringAttribute("jdbcType");
    String typeHandler = context.getStringAttribute("typeHandler");
    Class<?> javaTypeClass = resolveClass(javaType);
    Class<? extends TypeHandler> typeHandlerClass = (Class<? extends TypeHandler>) resolveClass(typeHandler);
    JdbcType jdbcTypeEnum = resolveJdbcType(jdbcType);
    Map<String, String> discriminatorMap = new HashMap<String, String>();
    for (XNode caseChild : context.getChildren()) {
      String value = caseChild.getStringAttribute("value");
      String resultMap = caseChild.getStringAttribute("resultMap",
          processNestedResultMappings(caseChild, resultMappings));
View Full Code Here

Examples of org.apache.ibatis.type.JdbcType

    String nestedResultMap = context.getStringAttribute("resultMap",
        processNestedResultMappings(context, Collections.EMPTY_LIST));
    String typeHandler = context.getStringAttribute("typeHandler");
    Class<?> javaTypeClass = resolveClass(javaType);
    Class<? extends TypeHandler> typeHandlerClass = (Class<? extends TypeHandler>) resolveClass(typeHandler);
    JdbcType jdbcTypeEnum = resolveJdbcType(jdbcType);
    return builderAssistant.buildResultMapping(resultType, property, column, javaTypeClass, jdbcTypeEnum, nestedSelect, nestedResultMap, typeHandlerClass, flags);
  }
View Full Code Here

Examples of org.apache.ibatis.type.JdbcType

  private Discriminator applyDiscriminator(String resultMapId, Class<?> resultType, TypeDiscriminator discriminator) {
    if (discriminator != null) {
      String column = discriminator.column();
      Class<?> javaType = discriminator.javaType() == void.class ? String.class : discriminator.javaType();
      JdbcType jdbcType = discriminator.jdbcType() == JdbcType.UNDEFINED ? null : discriminator.jdbcType();
      Class<? extends TypeHandler> typeHandler = discriminator.typeHandler() == TypeHandler.class ? null : discriminator.typeHandler();
      Case[] cases = discriminator.cases();
      Map<String, String> discriminatorMap = new HashMap<String, String>();
      for (Case c : cases) {
        String value = c.value();
View Full Code Here

Examples of org.apache.ibatis.type.JdbcType

  private Discriminator applyDiscriminator(String resultMapId, Class resultType, TypeDiscriminator discriminator) {
    if (discriminator != null) {
      String column = discriminator.column();
      Class javaType = discriminator.javaType() == void.class ? String.class : discriminator.javaType();
      JdbcType jdbcType = discriminator.jdbcType() == JdbcType.UNDEFINED ? null : discriminator.jdbcType();
      Class typeHandler = discriminator.typeHandler() == void.class ? null : discriminator.typeHandler();
      Case[] cases = discriminator.cases();
      Map<String, String> discriminatorMap = new HashMap<String, String>();
      for (Case c : cases) {
        String value = c.value();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.