public class JournalTitleDAO
extends java.lang.Object
JournalTitle
objects.Constructor and Description |
---|
JournalTitleDAO() |
Modifier and Type | Method and Description |
---|---|
static void |
deletePackage(javax.persistence.EntityManager em,
java.lang.String issn)
deletes all journal titles with a given ISSN stored in the database
|
static java.util.List<JournalTitle> |
getJournals()
returns a list of all journal titles stored in the database
|
static JournalTitle |
getJournalTitle(javax.persistence.EntityManager em,
java.lang.String issn,
int year)
returns a specific journal title for an issn and a year
|
static JournalTitle |
getJournalTitle(java.lang.String issn,
int year)
returns a specific journal title for an issn and a year
|
static java.util.List<JournalTitle> |
getJournalTitlesByIssn(javax.persistence.EntityManager em,
java.lang.String issn)
returns a list of journal titles for an issn
|
static java.util.List<JournalTitle> |
getJournalTitlesByIssn(java.lang.String issn)
returns a list of journal titles for an issn
|
static java.util.List<JournalTitle> |
getJournalTitlesByZDBID(javax.persistence.EntityManager em,
java.lang.String zdbID)
returns a list of journal titles for a ZDB ID
|
static java.util.List<JournalTitle> |
getJournalTitlesByZDBID(javax.persistence.EntityManager em,
java.lang.String zdbID,
int year)
returns a specific journal title for a ZDB ID and a year
|
static java.util.List<java.lang.String> |
listAllIssns()
returns a list of the ISSNs of all journal titles stored in the database
|
static java.util.List<java.lang.String> |
listAllIssns(javax.persistence.EntityManager em)
returns a list of the ISSNs of all journal titles stored in the database
|
static void |
persistJournal(javax.persistence.EntityManager em,
JournalTitle journalTitle)
persists a journal title to the database
|
static void |
persistJournal(JournalTitle journalTitle)
persists a journal title to the database
|
static void |
persistJournals(javax.persistence.EntityManager em,
java.util.List<JournalTitle> journalTitles)
persists a list of journal titles to the database
|
static void |
persistJournals(java.util.List<JournalTitle> journalTitles)
persists a list of journal titles to the database
|
public static java.util.List<JournalTitle> getJournalTitlesByIssn(java.lang.String issn)
issn
- the issn of the journal titlespublic static java.util.List<JournalTitle> getJournalTitlesByIssn(javax.persistence.EntityManager em, java.lang.String issn)
issn
- the issn of the journal titlesem
- the entity manager of the databasepublic static java.util.List<JournalTitle> getJournalTitlesByZDBID(javax.persistence.EntityManager em, java.lang.String zdbID)
zdbID
- the ZDB ID of the journal titlesem
- the entity manager of the databasepublic static java.util.List<JournalTitle> getJournalTitlesByZDBID(javax.persistence.EntityManager em, java.lang.String zdbID, int year)
zdbID
- the ZDB ID of the journalyear
- the yearem
- the entity manager of the databasepublic static JournalTitle getJournalTitle(javax.persistence.EntityManager em, java.lang.String issn, int year)
issn
- the issn of the journal titlesyear
- the yearem
- the entity manager of the databasepublic static JournalTitle getJournalTitle(java.lang.String issn, int year)
issn
- the issn of the journal titlesyear
- the yearpublic static java.util.List<java.lang.String> listAllIssns()
public static java.util.List<java.lang.String> listAllIssns(javax.persistence.EntityManager em)
em
- the entity manager of the databasepublic static java.util.List<JournalTitle> getJournals()
public static void deletePackage(javax.persistence.EntityManager em, java.lang.String issn)
issn
- the ISSN of the journal titlesem
- the entity manager of the databasepublic static void persistJournal(JournalTitle journalTitle)
journalTitle
- the journal title to be persistedpublic static void persistJournal(javax.persistence.EntityManager em, JournalTitle journalTitle)
journalTitle
- the journal title to be persistedem
- the entity manager of the databasepublic static void persistJournals(java.util.List<JournalTitle> journalTitles)
journalTitles
- the journal titles to be persistedpublic static void persistJournals(javax.persistence.EntityManager em, java.util.List<JournalTitle> journalTitles)
journalTitles
- the journal titles to be persistedem
- the entity manager of the database