public class JournalDAO
extends java.lang.Object
Journal
objects.Constructor and Description |
---|
JournalDAO() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteJournals()
deletes all journals from the database
|
static Journal |
getJournalByIssn(javax.persistence.EntityManager em,
java.lang.String issn)
returns a journal for a given issn
|
static Journal |
getJournalByIssn(java.lang.String issn)
returns a journal for a given issn
|
static Journal |
getJournalByZDBID(javax.persistence.EntityManager em,
java.lang.String zdbID)
returns a journal for a given ZDB ID
|
static Journal |
getJournalByZDBID(java.lang.String zdbID)
returns a journal for a given ZDB ID
|
static void |
persistJournal(Journal journal)
persists a journal to the database
|
static void |
persistJournals(java.util.List<Journal> journals)
persists a list of journals to the database
|
public static Journal getJournalByIssn(java.lang.String issn)
issn
- the issnpublic static Journal getJournalByIssn(javax.persistence.EntityManager em, java.lang.String issn)
issn
- the issnem
- the entity managerpublic static Journal getJournalByZDBID(java.lang.String zdbID)
zdbID
- the ZDB IDpublic static Journal getJournalByZDBID(javax.persistence.EntityManager em, java.lang.String zdbID)
zdbID
- the ZDB IDem
- entity managerpublic static void persistJournal(Journal journal)
journal
- the journal to be persistedpublic static void persistJournals(java.util.List<Journal> journals)
journals
- the list of journals to be persistedlpublic static void deleteJournals()