mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
[DS-734] Improve efficiency of Database accesses
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5706 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -480,11 +480,10 @@ public class Bundle extends DSpaceObject
|
||||
AuthorizeManager.inheritPolicies(ourContext, this, b);
|
||||
|
||||
// Add the mapping row to the database
|
||||
TableRow mappingRow = DatabaseManager.create(ourContext,
|
||||
"bundle2bitstream");
|
||||
TableRow mappingRow = DatabaseManager.row("bundle2bitstream");
|
||||
mappingRow.setColumn("bundle_id", getID());
|
||||
mappingRow.setColumn("bitstream_id", b.getID());
|
||||
DatabaseManager.update(ourContext, mappingRow);
|
||||
DatabaseManager.insert(ourContext, mappingRow);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user