public class DocumentGetter
extends java.lang.Object
Constructor and Description |
---|
DocumentGetter(AlephConnection connection)
uses a given connection to Aleph database to build an instance of the
DocumentGetter -object |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Manifestation> |
getDocumentsByCsv(java.io.InputStream csvFile)
builds a set of documents from a given csv file.
|
java.util.Set<Manifestation> |
getDocumentsByEtat(java.lang.String etat)
retrieves the documents connected to a budget code
|
java.util.Set<Manifestation> |
getDocumentsByNotation(java.lang.String notation)
retrieves the documents connected to a whole notation
|
java.util.Set<Manifestation> |
getDocumentsByShelfmark(java.lang.String shelfmark,
java.lang.Boolean exact)
retrieves the documents connected to a shelfmark
|
public DocumentGetter(AlephConnection connection) throws java.sql.SQLException
DocumentGetter
-objectconnection
- an AlephConnection
-objectjava.sql.SQLException
- exception querying the Aleph databasepublic java.util.Set<Manifestation> getDocumentsByShelfmark(java.lang.String shelfmark, java.lang.Boolean exact) throws java.sql.SQLException
shelfmark
- the shelfmark of the documents retrieved from the Aleph
databaseexact
- boolean indicating whether other editions are to be retrieved
as welljava.sql.SQLException
- exception querying the Aleph databasepublic java.util.Set<Manifestation> getDocumentsByEtat(java.lang.String etat) throws java.sql.SQLException
etat
- the budget code of the documents retrieved from the Aleph
databasejava.sql.SQLException
- exception querying the Aleph databasepublic java.util.Set<Manifestation> getDocumentsByNotation(java.lang.String notation) throws java.sql.SQLException
notation
- the notation of the documents retrieved from the Aleph
databasejava.sql.SQLException
- exception querying the Aleph databasepublic java.util.Set<Manifestation> getDocumentsByCsv(java.io.InputStream csvFile) throws java.sql.SQLException
csvFile
- a csv file as input containing the document numbers for the
documents to be buildjava.sql.SQLException
- exception querying the Aleph database