@Test public void testIsDeleted() throws SQLException, AuthorizeException { assertFalse("testIsDeleted 0", bs.isDeleted()); bs.delete(); assertTrue("testIsDeleted 1", bs.isDeleted()); }
boolean isDeleted() throws SQLException { String query = "select count(*) as mycount from Bitstream where deleted = '1' and bitstream_id = ? "; TableRowIterator tri = DatabaseManager.query(bContext, query, bRow.getIntColumn("bitstream_id")); long count = 0; try { TableRow r = tri.next(); count = r.getLongColumn("mycount"); } finally { if (tri != null) { tri.close(); } } return count == 1; }
Bitstream extends DSpaceObject { boolean isDeleted() throws SQLException { String query = "select count(*) as mycount from Bitstream where deleted = '1' and bitstream_id = ? "; TableRowIterator tri = DatabaseManager.query(bContext, query, bRow.getIntColumn("bitstream_id")); long count = 0; try { TableRow r = tri.next(); count = r.getLongColumn("mycount"); } finally { if (tri != null) { tri.close(); } } return count == 1; } }
Bitstream extends DSpaceObject { boolean isDeleted() throws SQLException { String query = "select count(*) as mycount from Bitstream where deleted = '1' and bitstream_id = ? "; TableRowIterator tri = DatabaseManager.query(bContext, query, bRow.getIntColumn("bitstream_id")); long count = 0; try { TableRow r = tri.next(); count = r.getLongColumn("mycount"); } finally { if (tri != null) { tri.close(); } } return count == 1; } Bitstream(Context context, TableRow row); }
Bitstream extends DSpaceObject { boolean isDeleted() throws SQLException { String query = "select count(*) as mycount from Bitstream where deleted = '1' and bitstream_id = ? "; TableRowIterator tri = DatabaseManager.query(bContext, query, bRow.getIntColumn("bitstream_id")); long count = 0; try { TableRow r = tri.next(); count = r.getLongColumn("mycount"); } finally { if (tri != null) { tri.close(); } } return count == 1; } Bitstream(Context context, TableRow row); static Bitstream find(Context context, int id); static Bitstream[] findAll(Context context); int getID(); String getHandle(); int getSequenceID(); void setSequenceID(int sid); String getName(); void setName(String n); String getSource(); void setSource(String n); String getDescription(); void setDescription(String n); String getChecksum(); String getChecksumAlgorithm(); long getSize(); void setUserFormatDescription(String desc); String getUserFormatDescription(); String getFormatDescription(); BitstreamFormat getFormat(); void setFormat(BitstreamFormat f); void update(); InputStream retrieve(); Bundle[] getBundles(); int getType(); boolean isRegisteredBitstream(); int getStoreNumber(); DSpaceObject getParentObject(); }
Bitstream extends DSpaceObject { boolean isDeleted() throws SQLException { String query = "select count(*) as mycount from Bitstream where deleted = '1' and bitstream_id = ? "; TableRowIterator tri = DatabaseManager.query(bContext, query, bRow.getIntColumn("bitstream_id")); long count = 0; try { TableRow r = tri.next(); count = r.getLongColumn("mycount"); } finally { if (tri != null) { tri.close(); } } return count == 1; } Bitstream(Context context, TableRow row); static Bitstream find(Context context, int id); static Bitstream[] findAll(Context context); int getID(); String getHandle(); int getSequenceID(); void setSequenceID(int sid); String getName(); void setName(String n); String getSource(); void setSource(String n); String getDescription(); void setDescription(String n); String getChecksum(); String getChecksumAlgorithm(); long getSize(); void setUserFormatDescription(String desc); String getUserFormatDescription(); String getFormatDescription(); BitstreamFormat getFormat(); void setFormat(BitstreamFormat f); void update(); InputStream retrieve(); Bundle[] getBundles(); int getType(); boolean isRegisteredBitstream(); int getStoreNumber(); DSpaceObject getParentObject();  }