public class VersionDAO extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BITSTREAM_ID |
protected static String |
EPERSON_ID |
protected static String |
HISTORY_ID |
protected static String |
ITEM_ID |
protected static String |
ORE_BITSTREAM_ID |
protected static String |
TABLE_NAME |
protected static String |
VERSION_DATE |
protected static String |
VERSION_HANDLE |
protected static String |
VERSION_ID |
protected static String |
VERSION_NUMBER |
protected static String |
VERSION_SUMMARY |
protected static String |
VERSION_VERSIONlOG |
| Constructor and Description |
|---|
VersionDAO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addBitstreams(org.dspace.core.Context context,
int versionId,
org.dspace.content.Bundle[] bundles) |
VersionImpl |
create(org.dspace.core.Context context,
int itemId,
boolean isWorkspace) |
void |
delete(org.dspace.core.Context c,
int versionID) |
VersionImpl |
find(org.dspace.core.Context context,
int id) |
static org.dspace.content.Bitstream[] |
findAllBitstreams(org.dspace.core.Context context,
int verisonId) |
VersionImpl |
findByItem(org.dspace.core.Context c,
org.dspace.content.Item item) |
VersionImpl |
findByItemId(org.dspace.core.Context context,
int itemId)
This method should always return the latest version if there are more than one.
|
VersionImpl |
findByItemIdInprogress(org.dspace.core.Context context,
int itemId) |
List<Version> |
findByVersionHistory(org.dspace.core.Context context,
int versionHistoryId) |
static Version[] |
search(org.dspace.core.Context context,
String query,
int offset,
int limit) |
static int |
searchResultCount(org.dspace.core.Context context,
String query) |
void |
update(VersionImpl version) |
protected static final String TABLE_NAME
protected static final String VERSION_ID
protected static final String ITEM_ID
protected static final String VERSION_NUMBER
protected static final String EPERSON_ID
protected static final String VERSION_DATE
protected static final String VERSION_SUMMARY
protected static final String VERSION_VERSIONlOG
protected static final String HISTORY_ID
protected static final String BITSTREAM_ID
protected static final String ORE_BITSTREAM_ID
protected static final String VERSION_HANDLE
public VersionImpl find(org.dspace.core.Context context, int id)
public VersionImpl findByItem(org.dspace.core.Context c, org.dspace.content.Item item)
public VersionImpl findByItemId(org.dspace.core.Context context, int itemId)
context - itemId - public VersionImpl findByItemIdInprogress(org.dspace.core.Context context, int itemId)
public List<Version> findByVersionHistory(org.dspace.core.Context context, int versionHistoryId)
public VersionImpl create(org.dspace.core.Context context, int itemId, boolean isWorkspace)
public void delete(org.dspace.core.Context c,
int versionID)
public void update(VersionImpl version)
public static Version[] search(org.dspace.core.Context context, String query, int offset, int limit) throws SQLException
SQLExceptionpublic static int searchResultCount(org.dspace.core.Context context,
String query)
throws SQLException
SQLExceptionpublic static org.dspace.content.Bitstream[] findAllBitstreams(org.dspace.core.Context context,
int verisonId)
public static void addBitstreams(org.dspace.core.Context context,
int versionId,
org.dspace.content.Bundle[] bundles)
throws SQLException
SQLExceptionCopyright © 2014 DuraSpace. All rights reserved.