public class JournalPriceGetter
extends java.lang.Object
Constructor and Description |
---|
JournalPriceGetter(AlephConnection connection)
uses a given connection to Aleph database to prepare the statements
|
Modifier and Type | Method and Description |
---|---|
java.util.Hashtable<java.lang.Integer,java.lang.Double> |
getCollectionPrice(JournalCollection collection)
when queried with a single journal collection, the prices from the Aleph database are retrieved and a list of journal collections for each year is returned.
|
java.util.Hashtable<java.lang.Integer,java.lang.Double> |
getJournalPrice(java.lang.String issn)
when queried with a single journal title, the prices from the Aleph database are retrieved and a list of journal titles for each year is returned.
|
public JournalPriceGetter(AlephConnection connection) throws java.sql.SQLException
connection
- an AlephConnection
-objectjava.sql.SQLException
- exception querying the Aleph databasepublic java.util.Hashtable<java.lang.Integer,java.lang.Double> getCollectionPrice(JournalCollection collection) throws java.sql.SQLException
collection
- an journal collectionjava.sql.SQLException
- exception querying the Aleph databasepublic java.util.Hashtable<java.lang.Integer,java.lang.Double> getJournalPrice(java.lang.String issn) throws java.sql.SQLException
issn
- the ISSN of an journal titlejava.sql.SQLException
- exception querying the Aleph database