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

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


      stmt.execute("DELETE FROM transactions WHERE transaction_id = '" + transactionId + "'");
      stmt.execute("DELETE FROM transaction_terms WHERE transaction_id = '" + transactionId + "'");
      conn.commit();
      return true;
    }catch (Exception e) {
      throw new IngestServiceException("Failed to delete transaction id '" + transactionId + "' : " + e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here


        }
      }
      conn.commit();
      return new IngestReceipt(catalogTransactionId, calendar.getTime());
    }catch (Exception e) {
      throw new IngestServiceException("Failed to ingest metadata for transaction id '" + catalogTransactionId + "' : " + e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

              LOG.log(Level.WARNING, "Failed to delete term: '" + transactionId + "','" + termBucket.getName() + "','" + term.getName() + "','" + value + "'");
            }
      conn.commit();
      return true;
    }catch (Exception e) {
      throw new IngestServiceException("Failed to delete transaction id '" + transactionId + "' : " + e.getMessage(), e);
    }finally {
      try {
        conn.close();
      }catch(Exception e) {}
      try {
View Full Code Here

            }
      Calendar calendar = DateUtils.getCurrentLocalTime();
      stmt.execute("UPDATE transactions SET transaction_date = '" + DateUtils.toString(calendar) + "' WHERE transaction_id = '" + transactionId + "'");
      return new IngestReceipt(transactionId, calendar.getTime());
    }catch (Exception e) {
      throw new IngestServiceException("Failed to ingest metadata for transaction 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.IngestServiceException

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.