Package org.apache.oodt.cas.catalog.exception

Examples of org.apache.oodt.cas.catalog.exception.CatalogIndexException


      if (rs.next())
        return rs.getInt("numTransIds");
      else
        throw new Exception("Failed to query for number of transactions");
    }catch (Exception e) {
      throw new CatalogIndexException("Failed to get number of transactions : " + e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here


      conn = this.dataSource.getConnection();
      stmt = conn.createStatement();
      rs = stmt.executeQuery("SELECT DISTINCT transaction_id FROM transactions WHERE transaction_id = '" + transactionId + "'");
      return rs.next();
    }catch (Exception e) {
      throw new CatalogIndexException("Failed to check for transaction id '" + transactionId + "' : " + e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

      conn = this.dataSource.getConnection();
      stmt = conn.createStatement();
      rs = stmt.executeQuery("SELECT DISTINCT workflow_instance_id FROM workflow_instance_metadata WHERE workflow_instance_id = '" + transactionId + "'")
      return rs.next();
    }catch (Exception e) {
      throw new CatalogIndexException("Failed to check for workflow id '" + transactionId + "' : " + e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.catalog.exception.CatalogIndexException

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.