|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.datamodel.GlobalCrawlerTrapListDAO
public abstract class GlobalCrawlerTrapListDAO
A Data Access Object for managing persistent collections of global crawler traps.
Constructor Summary | |
---|---|
GlobalCrawlerTrapListDAO()
|
Method Summary | |
---|---|
abstract int |
create(GlobalCrawlerTrapList trapList)
This method creates the object in the database and has the side effect of setting the trapLists id field to the auto-generated id in the database. |
abstract void |
delete(int id)
Deletes a crawler trap list from the database. |
abstract boolean |
exists(java.lang.String name)
Does crawlertrap with this name already exist |
abstract java.util.List<GlobalCrawlerTrapList> |
getAllActive()
Get all active crawler traps. |
abstract java.util.List<java.lang.String> |
getAllActiveTrapExpressions()
Get a merged list (without duplicates) of all currently-active crawler trap expressions. |
abstract java.util.List<GlobalCrawlerTrapList> |
getAllInActive()
Get all inactive crawler traps. |
static GlobalCrawlerTrapListDAO |
getInstance()
Factory method to return the singleton instance of this class. |
abstract GlobalCrawlerTrapList |
read(int id)
Get a traplist from the database. |
static void |
reset()
Resets the singleton instance of this class. |
abstract void |
update(GlobalCrawlerTrapList trapList)
Updates a given global crawler trap list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalCrawlerTrapListDAO()
Method Detail |
---|
public static GlobalCrawlerTrapListDAO getInstance()
public static void reset()
public abstract java.util.List<GlobalCrawlerTrapList> getAllActive()
public abstract java.util.List<GlobalCrawlerTrapList> getAllInActive()
public abstract java.util.List<java.lang.String> getAllActiveTrapExpressions()
public abstract int create(GlobalCrawlerTrapList trapList) throws ArgumentNotValid
trapList
- The list to persist
ArgumentNotValid
- if the trapList is null.public abstract void delete(int id) throws UnknownID
id
- the id of the list to be deleted
UnknownID
- if the argument doesn not correspond to a known
trap list.public abstract void update(GlobalCrawlerTrapList trapList) throws UnknownID
trapList
- the trap list to update
UnknownID
- if the id of the trapList argument does not correspond
to an existing trap list in the database.public abstract GlobalCrawlerTrapList read(int id) throws UnknownID
id
- the id of the traplist to be read.
UnknownID
- if the id does not correspond to a known traplist in
the database.public abstract boolean exists(java.lang.String name)
name
- The name for a crawlertrap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |