Package com.alibaba.wasp.jdbc.result

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


  public ResultSet executeQuery(String sql) throws SQLException {
    synchronized (session) {
      checkClosed();
      closeOldResultSet();
      CommandInterface command = conn.prepareCommand(sql, fetchSize, session);
      ResultInterface result = null;
      setExecutingStatement(command);
      try {
        result = command.executeQuery(maxRows);
        session.setSessionId(result.getSessionId());
      } finally {
        setExecutingStatement(null);
      }
      command.close();
      resultSet = new JdbcResultSet(conn, this, result, closedByResultSet);
View Full Code Here


      synchronized (session) {
        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();
          }
View Full Code Here

  public ResultSet executeQuery() throws SQLException {
    try {
      synchronized (session) {
        checkClosed();
        closeOldResultSet();
        ResultInterface result;
        try {
          setExecutingStatement(command);
          result = command.executeQuery(maxRows);
        } finally {
          setExecutingStatement(null);
View Full Code Here

          closeOldResultSet();
          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

   */
  @Override
  public ResultSetMetaData getMetaData() throws SQLException {
    try {
      checkClosed();
      ResultInterface result = command.getMetaData();
      if (result == null) {
        return null;
      }
      String catalog = conn.getCatalog();
      JdbcResultSetMetaData meta = new JdbcResultSetMetaData(null, result,
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.jdbc.result.ResultInterface

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.