|
|||||||||||
| 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 score |
java.util.List |
getAll()
Method returning the complete list of scores. |
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 scores in the inventory |
Score |
load(int id)
Method returning a score corresponding to the id |
Score |
save(Score score,
boolean newScore)
Method allowing to store a score (both update and create) |
java.util.List |
search(java.lang.String searchString)
Method allowing to search for scores 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 Score save(Score score,
boolean newScore)
throws java.lang.Exception
java.lang.Exception
public void delete(int id)
throws java.lang.Exception
id - the identifier of the score
java.lang.Exception
public Score 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 | ||||||||||