public class ItemGetter
extends java.lang.Object
Constructor and Description |
---|
ItemGetter(AlephConnection connection)
uses a given connection to Aleph database to retrieve items from the
Aleph database
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEtat(Item item)
retrieves the budget used to buy an item
|
Item |
getItemByBarCode(java.lang.String barcode) |
java.util.List<Item> |
getItems(Manifestation document)
retrieves items connected to an existing document
|
public ItemGetter(AlephConnection connection) throws java.sql.SQLException
connection
- an AlephConnection
-objectjava.sql.SQLException
- exception querying the Aleph databasepublic java.util.List<Item> getItems(Manifestation document) throws java.sql.SQLException
document
- an existing documentjava.sql.SQLException
- exception querying the Aleph databasepublic java.lang.String getEtat(Item item) throws java.sql.SQLException
item
- item for which the budget code is retrievedjava.sql.SQLException
- exception querying the Aleph databasepublic Item getItemByBarCode(java.lang.String barcode) throws java.sql.SQLException
java.sql.SQLException