|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.datamodel.GlobalCrawlerTrapListDAO dk.netarkivet.harvester.datamodel.GlobalCrawlerTrapListDBDAO
public class GlobalCrawlerTrapListDBDAO
A singleton giving access to global crawler traps.
Constructor Summary | |
---|---|
protected |
GlobalCrawlerTrapListDBDAO()
protected constructor of this class. |
Method Summary | |
---|---|
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. |
void |
delete(int id)
Deletes a crawler trap list from the database. |
boolean |
exists(java.lang.String name)
Does crawlertrap with this name already exist. |
java.util.List<GlobalCrawlerTrapList> |
getAllActive()
Get all active crawler traps. |
java.util.List<java.lang.String> |
getAllActiveTrapExpressions()
Get a merged list (without duplicates) of all currently-active crawler trap expressions. |
java.util.List<GlobalCrawlerTrapList> |
getAllInActive()
Get all inactive crawler traps. |
GlobalCrawlerTrapList |
read(int id)
Get a traplist from the database. |
void |
update(GlobalCrawlerTrapList trapList)
Update a trap list. |
Methods inherited from class dk.netarkivet.harvester.datamodel.GlobalCrawlerTrapListDAO |
---|
getInstance, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GlobalCrawlerTrapListDBDAO()
Method Detail |
---|
public java.util.List<GlobalCrawlerTrapList> getAllActive()
GlobalCrawlerTrapListDAO
getAllActive
in class GlobalCrawlerTrapListDAO
public java.util.List<GlobalCrawlerTrapList> getAllInActive()
GlobalCrawlerTrapListDAO
getAllInActive
in class GlobalCrawlerTrapListDAO
public java.util.List<java.lang.String> getAllActiveTrapExpressions()
GlobalCrawlerTrapListDAO
getAllActiveTrapExpressions
in class GlobalCrawlerTrapListDAO
public int create(GlobalCrawlerTrapList trapList)
GlobalCrawlerTrapListDAO
create
in class GlobalCrawlerTrapListDAO
trapList
- The list to persist
public void delete(int id)
GlobalCrawlerTrapListDAO
delete
in class GlobalCrawlerTrapListDAO
id
- the id of the list to be deletedpublic void update(GlobalCrawlerTrapList trapList)
update
in class GlobalCrawlerTrapListDAO
trapList
- the trap list to updatepublic GlobalCrawlerTrapList read(int id)
GlobalCrawlerTrapListDAO
read
in class GlobalCrawlerTrapListDAO
id
- the id of the traplist to be read.
public boolean exists(java.lang.String name)
exists
in class GlobalCrawlerTrapListDAO
name
- The name for a crawlertrap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |