Package org.dspace.core

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


                            "proppatch failed, no document returned.");
                }

                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                outputPretty.output(outdoc, baos);
                context.complete();
                return baos.toString();
            }
        }
        catch (IOException ie)
        {
View Full Code Here


            if (result == null)
            {
                throw new LNIRemoteException("Resource not found.");
            }
           
            context.complete();

            return result;
        }
        catch (IOException ie)
        {
View Full Code Here

            }
           
            int status = resource.copyDriver(destination, depth, overwrite,
                    keepProperties);
           
            context.complete();

            return status;
        }
        catch (IOException ie)
        {
View Full Code Here

                    break;

                }
            }

            context.complete();
        } catch (SQLException sql) {
            throw new EntityException("Internal Server Error", "SQL Problem", 500);
        } catch (IOException io) {
            throw new EntityException("Internal Server Error", "Could not execute query", 500);
        }
View Full Code Here

                      "handle.resource_type_id=2) WHERE  text_value LIKE 'http://hdl.handle.net/%';";
                updated = DatabaseManager.updateQuery(context, sql, new Object[] {});
                System.out.println(updated + " metadata values updated");

                // Commit the changes
                context.complete();

                System.out.print("Re-creating browse and search indexes... ");               

                // Reinitialise the browse system
                IndexBrowse.main(new String[] {"-i"});
View Full Code Here

             */
            bitstream.setColumn("store_number", incoming);

            DatabaseManager.update(tempContext, bitstream);

            tempContext.complete();
        }
        catch (SQLException sqle)
        {
            if (tempContext != null)
            {
View Full Code Here

      bitstream.setColumn("deleted", true);
      bitstream.setColumn("internal_id", sInternalId);
      bitstream.setColumn("store_number", assetstore);
      DatabaseManager.update(tempContext, bitstream);

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

                    context.commit();
                    System.out.println(" Done!");
                }
            }

            context.complete();
        }
        // Aborting will leave the DB objects around, even if the
        // bitstreams are deleted. This is OK; deleting them next
        // time around will be a no-op.
        catch (SQLException sqle)
View Full Code Here

        {
            if (context != null)
            {
                try
                {
                    context.complete();
                }
                catch (SQLException sqle)
                {
                }
            }
View Full Code Here

        {
            if (context != null)
            {
                try
                {
                    context.complete();
                }
                catch (SQLException sqle)
                {
                }
            }
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.