Package org.dspace.core

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


        }
        finally
        {
            if (context != null && context.isValid())
            {
                context.abort();
            }
        }
    }
}
View Full Code Here


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

            throw sqle;
        }
View Full Code Here

      DatabaseManager.update(tempContext, bitstream);

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

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

        // bitstreams are deleted. This is OK; deleting them next
        // time around will be a no-op.
        catch (SQLException sqle)
        {
            if (verbose) System.err.println("Error: " + sqle.getMessage());
            context.abort();
            throw sqle;
        }
        catch (IOException ioe)
        {
            if (verbose) System.err.println("Error: " + ioe.getMessage());
View Full Code Here

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

    ////////////////////////////////////////
View Full Code Here

                                          line.getOptionValue('o'));
        }

        // Clean everything up
        context.restoreAuthSystemState();
        context.abort();
    }
}
View Full Code Here

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

        if (itemInfo == null)
        {
View Full Code Here

        finally
        {
            // Abort the context if it's still valid
            if ((context != null) && context.isValid())
            {
                context.abort();
            }
        }
    }

    /**
 
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
        {
            if (context != null)
            {
                context.abort();
            }
        }

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