|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Service interface allowing to retrieve and manipulate scores in the persistence store (depending on the implementation used).
| Method Summary | |
void |
delete(int id)
Method allowing to delete a instrument |
java.util.List |
getAll()
Method returning the complete list of instruments. |
float |
getCurrentValue()
Method returning the current value of the inventory |
float |
getPurchaseValue()
Method returning the purchase value of the inventory |
int |
getTotalNumber()
Method counting the total number of instruments in the inventory |
Instrument |
load(int id)
Method returning a instrument corresponding to the id |
Instrument |
save(Instrument instrument,
boolean newInstrument)
Method allowing to store a instrument (both update and create) |
java.util.List |
search(java.lang.String searchString)
Method allowing to search for instruments based on an search string suc as: 'name' = $name AND 'composer' = $composer OR 'arranger' = $arranger |
| Method Detail |
public java.util.List getAll()
throws java.lang.Exception
java.lang.Exception
public Instrument save(Instrument instrument,
boolean newInstrument)
throws java.lang.Exception
java.lang.Exception
public void delete(int id)
throws java.lang.Exception
id - the identifier of the instrument
java.lang.Exception
public Instrument load(int id)
throws java.lang.Exception
id -
java.lang.Exception
public java.util.List search(java.lang.String searchString)
throws java.lang.Exception
searchString -
java.lang.Exceptionpublic float getCurrentValue()
public float getPurchaseValue()
public int getTotalNumber()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||