Package org.dspace.core

Examples of org.dspace.core.Context.abort()


        }
        finally
        {
            if (context != null)
            {
                context.abort();
            }
        }

        return results;
    }
View Full Code Here


        }
        finally
        {
            if (context != null)
            {
                context.abort();
            }
        }

        // Put results in form needed to return
        Map results = new HashMap();
View Full Code Here

        finally
        {
            // Abort the context if it's still valid
            if (context != null && context.isValid())
            {
                context.abort();
            }
        }
        return true;
    }
View Full Code Here

        }
        finally
        {
            // Clean up our context, if it still exists & it was never completed
            if(context!=null && context.isValid())
                context.abort();
        }
    }


    @Override
View Full Code Here

        }
        finally
        {
            // Clean up our context, if it still exists & it was never completed
            if(context!=null && context.isValid())
                context.abort();
        }
    }

    @Override
    public void afterRepair(Connection connection)
View Full Code Here

        }
        catch (SQLException sqle)
        {
            if (tempContext != null)
            {
                tempContext.abort();
            }

            throw sqle;
        }
View Full Code Here

      DatabaseManager.insert(tempContext, bitstream);

      tempContext.complete();
    } catch (SQLException sqle) {
      if (tempContext != null) {
        tempContext.abort();
      }
      throw sqle;
    }

    // get a reference to the file
View Full Code Here

        {
            if (verbose)
            {
                System.err.println("Error: " + sqle.getMessage());
            }
            context.abort();
            throw sqle;
        }
        catch (IOException ioe)
        {
            if (verbose)
View Full Code Here

        {
            if (verbose)
            {
                System.err.println("Error: " + ioe.getMessage());
            }
            context.abort();
            throw ioe;
        }
    }

    /**
 
View Full Code Here

            context = new Context();
            is = BitstreamStorageManager.retrieve(context, id);
        }
        finally
        {
            context.abort();
        }

        return is;
    }
}
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.