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

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


    try {
      conn = this.dataSource.getConnection();
      stmt = conn.createStatement();
      stmt.execute("DELETE FROM CatalogServiceMapper WHERE CATALOG_ID = '" + catalogId + "'");
    }catch (Exception e) {
      throw new CatalogRepositoryException(e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here


      conn = this.dataSource.getConnection();
      stmt = conn.createStatement();
      stmt.execute("DELETE FROM CatalogServiceMapper WHERE CAT_SERV_TRANS_ID = '" + catalogServiceTransactionId + "'");
      conn.commit();
    }catch (Exception e) {
      throw new CatalogRepositoryException(e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

      conn = this.dataSource.getConnection();
      stmt = conn.createStatement();
      stmt.execute("DELETE FROM CatalogServiceMapper WHERE CAT_TRANS_ID = '" + catalogTransactionId + "' AND CATALOG_ID = '" + catalogId + "'");
      conn.commit();
    }catch (Exception e) {
      throw new CatalogRepositoryException(e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

      while(rs.next())
        return ((TransactionIdFactory) Class.forName(rs.getString("CAT_SERV_TRANS_FACTORY")).newInstance()).createTransactionId(rs.getString("CAT_SERV_TRANS_ID"));

      return null;
    }catch (Exception e) {
      throw new CatalogRepositoryException(e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

      while(rs.next())
        return ((TransactionIdFactory) Class.forName(rs.getString("CAT_TRANS_FACTORY")).newInstance()).createTransactionId(rs.getString("CAT_TRANS_ID"));

      return null;
    }catch (Exception e) {
      throw new CatalogRepositoryException(e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

      while(rs.next())
        catalogIds.add(rs.getString("CATALOG_ID"));

      return catalogIds;
    }catch (Exception e) {
      throw new CatalogRepositoryException(e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

      while(rs.next())
        transactionIds.add(((TransactionIdFactory) Class.forName(rs.getString("CAT_TRANS_FACTORY")).newInstance()).createTransactionId(rs.getString("CAT_TRANS_ID")));
       
      return transactionIds;
    }catch (Exception e) {
      throw new CatalogRepositoryException(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 CAT_SERV_TRANS_ID FROM CatalogServiceMapper WHERE CAT_SERV_TRANS_ID = '"+ catalogServiceTransactionId + "'");
      return rs.next();
    }catch (Exception e) {
      throw new CatalogRepositoryException(e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

          + catalogTransactionIdFactory.getClass().getName() + "', '"
          + DateUtils.toString(calTime) + "', '"
          + catalogReceipt.getCatalogId() + "')");
      conn.commit();
    }catch (Exception e) {
      throw new CatalogRepositoryException(e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

        return new CatalogReceipt(new IngestReceipt(catalogTransactionId, transactionDate), catalogId);
      }else {
        return null;
      }
    }catch (Exception e) {
      throw new CatalogRepositoryException(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.CatalogRepositoryException

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.