Package org.dspace.core

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


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


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

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

    }
View Full Code Here

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

    }
View Full Code Here

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

    @Override
View Full Code Here

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

        return eperson;
    }
View Full Code Here

        finally
        {
            if (context != null && context.isValid())
            {
                // Nothing is actually written
                context.abort();
            }
        }
        log.info("#### END: -----" + new Date() + " ----- ####");
        // System.exit(0);
    }
View Full Code Here

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

    /**
 
View Full Code Here

                mapOut.close();
            }

            mapOut = null;

            c.abort();
            e.printStackTrace();
            System.out.println(e);
            status = 1;
        }
View Full Code Here

            c.restoreAuthSystemState();
            c.complete();
        }
        catch (Exception e)
        {
            c.abort();
            System.err.println("Error commiting changes to database: " + e.getMessage());
            System.err.println("Aborting most recent changes.");
            System.exit(1);
        }
    }
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.