|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.dvw.administration.services.instruments.InstrumentServiceCastorImpl
User: Toon Date: 4-jul-2005 Time: 19:31:26
Constructor Summary | |
InstrumentServiceCastorImpl()
|
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InstrumentServiceCastorImpl()
Method Detail |
public java.util.List getAll() throws java.lang.Exception
InstrumentService
getAll
in interface InstrumentService
java.lang.Exception
public Instrument load(int id) throws java.io.IOException, org.exolab.castor.xml.ValidationException, org.exolab.castor.xml.MarshalException
InstrumentService
load
in interface InstrumentService
id
-
java.io.IOException
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
public java.util.List search(java.lang.String searchString) throws java.lang.Exception
InstrumentService
search
in interface InstrumentService
searchString
-
java.lang.Exception
public float getPurchaseValue()
InstrumentService
getPurchaseValue
in interface InstrumentService
public int getTotalNumber()
InstrumentService
getTotalNumber
in interface InstrumentService
public float getCurrentValue()
InstrumentService
getCurrentValue
in interface InstrumentService
public Instrument save(Instrument instrument, boolean newInstrument) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, java.io.IOException
InstrumentService
save
in interface InstrumentService
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException
public void delete(int id) throws java.lang.Exception
InstrumentService
delete
in interface InstrumentService
id
- the identifier of the instrument
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |