예제 #1
0
 public Object getResult(ResultGetter getter) throws SQLException {
   String val = getter.getString();
   if ("1".equals(val)) {
     return Boolean.TRUE;
   } else {
     return Boolean.FALSE;
   }
 }
예제 #2
0
  @Override
  public Object getResult(ResultGetter getter) throws SQLException {
    int value = getter.getInt();

    String type = Dhis14ObjectMappingUtil.getDataElementTypeMap().get(value);

    return type;
  }
  public Object getResult(ResultGetter getter) throws SQLException {
    String s = getter.getString();
    String ret = s;
    if (s != null) {
      try {
        ret = new String(s.getBytes(MYSQL_ENCODING), APP_ENCODING);
      } catch (UnsupportedEncodingException e) {
        throw handle(e, s);
      }
    }

    return ret;
  }
 public Object getResult(ResultGetter arg) throws SQLException {
   return valueOf(arg.getString());
 }
예제 #5
0
 public Object getResult(ResultGetter getter) throws SQLException {
   String format = getter.getString();
   if (getter.wasNull()) return SearchFileFormat.UNKNOWN;
   return SearchFileFormat.instance(format);
 }