be.dvw.administration.services.scores
Interface ScoreService

All Known Implementing Classes:
ScoreServiceCastorImpl

public interface ScoreService

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

getAll

public java.util.List getAll()
                      throws java.lang.Exception
Method returning the complete list of scores.

Returns:
List of scores
Throws:
java.lang.Exception

save

public Score save(Score score,
                  boolean newScore)
           throws java.lang.Exception
Method allowing to store a score (both update and create)

Returns:
the score as stored in the database
Throws:
java.lang.Exception

delete

public void delete(int id)
            throws java.lang.Exception
Method allowing to delete a score

Parameters:
id - the identifier of the score
Throws:
java.lang.Exception

load

public Score load(int id)
           throws java.lang.Exception
Method returning a score corresponding to the id

Parameters:
id -
Returns:
the score corresponding to the id
Throws:
java.lang.Exception

search

public java.util.List search(java.lang.String searchString)
                      throws java.lang.Exception
Method allowing to search for scores based on an search string suc as: 'name' = $name AND 'composer' = $composer OR 'arranger' = $arranger

Parameters:
searchString -
Returns:
List of scores containing the search result
Throws:
java.lang.Exception

getCurrentValue

public float getCurrentValue()
Method returning the current value of the inventory

Returns:
the current value of the inventory (all scores) being the purchase value less the depreciation

getPurchaseValue

public float getPurchaseValue()
Method returning the purchase value of the inventory

Returns:
the purchase value

getTotalNumber

public int getTotalNumber()
Method counting the total number of scores in the inventory

Returns:
number of scores in the inventory


Copyright © 2005 VZW Koninklijke Muziekvereniging 'De Vrije Werklieden' Lebbeke. All Rights Reserved.