public class HarvestedItem
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static HarvestedItem |
create(Context c,
int itemId,
java.lang.String itemOAIid)
Create a new harvested item row for a specified item id.
|
void |
delete() |
static void |
exists(Context c) |
static HarvestedItem |
find(Context c,
int item_id)
Find the harvest parameters corresponding to the specified DSpace item
|
java.util.Date |
getHarvestDate() |
static Item |
getItemByOAIId(Context context,
java.lang.String itemOaiID,
int collectionID)
Retrieve a DSpace Item that corresponds to this particular combination of owning collection and OAI ID.
|
java.lang.String |
getItemID() |
java.lang.String |
getOaiID()
Get the oai_id associated with this item
|
void |
setHarvestDate(java.util.Date date) |
void |
setOaiID(java.lang.String itemOaiID)
Set the oai_id associated with this item
|
void |
update() |
public static void exists(Context c) throws java.sql.SQLException
java.sql.SQLExceptionpublic static HarvestedItem find(Context c, int item_id) throws java.sql.SQLException
java.sql.SQLExceptionpublic static Item getItemByOAIId(Context context, java.lang.String itemOaiID, int collectionID) throws java.sql.SQLException
context - itemOaiID - the string used by the OAI-PMH provider to identify the itemcollectionID - id of the local collection that the item should be found injava.sql.SQLExceptionpublic static HarvestedItem create(Context c, int itemId, java.lang.String itemOAIid) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getItemID()
public java.lang.String getOaiID()
public void setOaiID(java.lang.String itemOaiID)
public void setHarvestDate(java.util.Date date)
public java.util.Date getHarvestDate()
public void delete()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void update()
throws java.sql.SQLException,
java.io.IOException,
AuthorizeException
java.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionCopyright © 2018 DuraSpace. All Rights Reserved.