public class HarvestedItem extends Object
| Modifier and Type | Method and Description |
|---|---|
static HarvestedItem |
create(Context c,
int itemId,
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
|
Date |
getHarvestDate() |
static Item |
getItemByOAIId(Context context,
String itemOaiID,
int collectionID)
Retrieve a DSpace Item that corresponds to this particular combination of owning collection and OAI ID.
|
String |
getItemID() |
String |
getOaiID()
Get the oai_id associated with this item
|
void |
setHarvestDate(Date date) |
void |
setOaiID(String itemOaiID)
Set the oai_id associated with this item
|
void |
update() |
public static void exists(Context c) throws SQLException
SQLExceptionpublic static HarvestedItem find(Context c, int item_id) throws SQLException
SQLExceptionpublic static Item getItemByOAIId(Context context, String itemOaiID, int collectionID) throws 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 inSQLExceptionpublic static HarvestedItem create(Context c, int itemId, String itemOAIid) throws SQLException
SQLExceptionpublic String getItemID()
public String getOaiID()
public void setOaiID(String itemOaiID)
public void setHarvestDate(Date date)
public Date getHarvestDate()
public void delete()
throws SQLException
SQLExceptionpublic void update()
throws SQLException,
IOException,
AuthorizeException
Copyright © 2013 DuraSpace. All Rights Reserved.