Package org.pentaho.commons.connection

Examples of org.pentaho.commons.connection.IPentahoResultSet.closeConnection()


        System.out.println( obj[0] );
      }

    } finally {
      rs.close();
      rs.closeConnection();
    }
  }

  @Test
  public void testPostProcessor() {
View Full Code Here


        System.out.println( obj[0] );
      }

    } finally {
      rs.close();
      rs.closeConnection();
    }
  }

  @Test
  public void testComponent() {
View Full Code Here

      }

    } finally {
      if ( rs != null ) {
        rs.close();
        rs.closeConnection();
      }
    }
  }

  @Test
View Full Code Here

    assertEquals( "column header is wrong", "year", data.getMetaData().getColumnHeaders()[0][2] );
    assertEquals( "column header is wrong", "price", data.getMetaData().getColumnHeaders()[0][3] );

    // these don't do much but they should not cause errors
    data.close();
    data.closeConnection();
  }

  public void testExecuteWrongQuery() throws Exception {
    try {
      XQConnection connection = new XQConnection();
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.