Examples of JdbcResultSet


Examples of com.alibaba.wasp.jdbc.result.JdbcResultSet

        session.setSessionId(result.getSessionId());
      } finally {
        setExecutingStatement(null);
      }
      command.close();
      resultSet = new JdbcResultSet(conn, this, result, closedByResultSet);
    }
    return resultSet;
  }
View Full Code Here

Examples of com.alibaba.wasp.jdbc.result.JdbcResultSet

        setExecutingStatement(command);
        try {
          if (command.isQuery()) {
            returnsResultSet = true;
            ResultInterface result = command.executeQuery(maxRows);
            resultSet = new JdbcResultSet(conn, this, result, closedByResultSet);
          } else {
            returnsResultSet = false;
            updateCount = command.executeUpdate();
          }
        } finally {
View Full Code Here

Examples of com.alibaba.wasp.jdbc.result.JdbcResultSet

          setExecutingStatement(command);
          result = command.executeQuery(maxRows);
        } finally {
          setExecutingStatement(null);
        }
        resultSet = new JdbcResultSet(conn, this, result, closedByResultSet);
      }
      return resultSet;
    } catch (Exception e) {
      throw Logger.logAndConvert(log, e);
    }
View Full Code Here

Examples of com.alibaba.wasp.jdbc.result.JdbcResultSet

          try {
            setExecutingStatement(command);
            if (command.isQuery()) {
              returnsResultSet = true;
              ResultInterface result = command.executeQuery(maxRows);
              resultSet = new JdbcResultSet(conn, this, result,
                  closedByResultSet);
            } else {
              returnsResultSet = false;
              updateCount = command.executeUpdate();
            }
View Full Code Here

Examples of com.foundationdb.sql.embedded.JDBCResultSet

        if(!(row instanceof RowHolder)) {
            throw new IllegalArgumentException("Unexpected row: " + row.getClass());
        }
        try {
            RowHolder rowHolder = (RowHolder)row;
            JDBCResultSet resultSet = rowHolder.rsHolder.resultSet;
            JDBCResultSetMetaData metaData = resultSet.getMetaData();
            boolean begun = false;
            boolean savedCurrent = false;
            for(int col = 1; col <= metaData.getColumnCount(); ++col) {
                String colName = metaData.getColumnLabel(col);
                if(metaData.getNestedResultSet(col) != null) {
                    if(!savedCurrent) {
                        holderStack.push(currentHolder);
                        savedCurrent = true;
                    }
                    JDBCResultSet nested = (JDBCResultSet)resultSet.getObject(col);
                    holderStack.push(new ResultSetHolder(nested, colName, rowHolder.rsHolder.depth + 1));
                } else {
                    ValueSource valueSource = row.value(col - 1);
                    JsonRowWriter.writeValue(colName, valueSource, appender, !begun, options);
                    begun = true;
View Full Code Here

Examples of com.foundationdb.sql.embedded.JDBCResultSet

        Statement s = stmt.processStatement(nresults);
        while (s != null) {
            if(useSubArrays) {
                beginResultSetArray(appender, nresults == 0, nresults);
            }
            JDBCResultSet results = (JDBCResultSet) s.getResultSet();
            int updateCount = s.getUpdateCount();
           
            if (results != null && !results.isClosed()) {
                collectResults(results, appender, options);
                // Force close the result set here because if you execute "SELECT...;INSERT..."
                // the call to s.getResultSet() returns the (now empty) SELECT result set
                // giving bad results
                results.close();
            } else {
                appender.append("\n{\"update_count\":");
                appender.append(updateCount);
                results = (JDBCResultSet) s.getGeneratedKeys();
                if (results != null) {
View Full Code Here

Examples of org.hsqldb.jdbc.JDBCResultSet

            result.navigator.add(row);
        }

        result.navigator.reset();

        return new JDBCResultSet((JDBCConnection) connection, null, result,
                                 result.metaData);
    }
View Full Code Here

Examples of org.hsqldb.jdbc.JDBCResultSet

            result.navigator.add(row);
        }

        result.navigator.reset();

        return new JDBCResultSet((JDBCConnection) connection, null, result,
                                 result.metaData);
    }
View Full Code Here

Examples of org.hsqldb.jdbc.JDBCResultSet

            result.navigator.add(row);
        }

        result.navigator.reset();

        return new JDBCResultSet((JDBCConnection) connection, null, result,
                                 result.metaData);
    }
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.