Package com.alibaba.wasp.jdbc.value

Examples of com.alibaba.wasp.jdbc.value.Value.convertTo()


      int type = DataType.convertSQLTypeToValueType(targetSqlType);
      if (x == null) {
        setParameter(parameterIndex, ValueNull.INSTANCE);
      } else {
        Value v = DataType.convertToValue(conn.getSession(), x, type);
        setParameter(parameterIndex, v.convertTo(type));
      }
    } catch (Exception e) {
      throw Logger.logAndConvert(log, e);
    }
  }
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.