be.dvw.administration.services.scores
Class ScoreServiceCastorImpl

java.lang.Object
  extended bybe.dvw.administration.services.scores.ScoreServiceCastorImpl
All Implemented Interfaces:
ScoreService

public class ScoreServiceCastorImpl
extends java.lang.Object
implements ScoreService

User: Toon Date: 4-jul-2005 Time: 19:31:26


Constructor Summary
ScoreServiceCastorImpl()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreServiceCastorImpl

public ScoreServiceCastorImpl()
Method Detail

getAll

public java.util.List getAll()
                      throws java.lang.Exception
Description copied from interface: ScoreService
Method returning the complete list of scores.

Specified by:
getAll in interface ScoreService
Returns:
List of scores
Throws:
java.lang.Exception

load

public Score load(int id)
           throws java.io.IOException,
                  org.exolab.castor.xml.ValidationException,
                  org.exolab.castor.xml.MarshalException
Description copied from interface: ScoreService
Method returning a score corresponding to the id

Specified by:
load in interface ScoreService
Parameters:
id -
Returns:
the score corresponding to the id
Throws:
java.io.IOException
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException

search

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

Specified by:
search in interface ScoreService
Parameters:
searchString -
Returns:
List of scores containing the search result
Throws:
java.lang.Exception

getPurchaseValue

public float getPurchaseValue()
Description copied from interface: ScoreService
Method returning the purchase value of the inventory

Specified by:
getPurchaseValue in interface ScoreService
Returns:
the purchase value

getTotalNumber

public int getTotalNumber()
Description copied from interface: ScoreService
Method counting the total number of scores in the inventory

Specified by:
getTotalNumber in interface ScoreService
Returns:
number of scores in the inventory

getCurrentValue

public float getCurrentValue()
Description copied from interface: ScoreService
Method returning the current value of the inventory

Specified by:
getCurrentValue in interface ScoreService
Returns:
the current value of the inventory (all scores) being the purchase value less the depreciation

save

public Score save(Score score,
                  boolean newScore)
           throws org.exolab.castor.xml.MarshalException,
                  org.exolab.castor.xml.ValidationException,
                  java.io.IOException
Description copied from interface: ScoreService
Method allowing to store a score (both update and create)

Specified by:
save in interface ScoreService
Returns:
the score as stored in the database
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException

delete

public void delete(int id)
            throws java.lang.Exception
Description copied from interface: ScoreService
Method allowing to delete a score

Specified by:
delete in interface ScoreService
Parameters:
id - the identifier of the score
Throws:
java.lang.Exception


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