jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb
Interface Storeable

All Known Implementing Classes:
Collision, Fit, LogFile, Model, Paper, PlotSwitch, RealPlot, RunSeriesCollection

public interface Storeable

Implemented by all JetWeb Objects which can be stored in and read back from the database.


Method Summary
 int getId()
          Get the unique ID of the object
 boolean retrieve()
          Populate the object in memory from the database.
 boolean store()
          Write the object in memory to the database.
 

Method Detail

store

boolean store()
              throws JetWebException
Write the object in memory to the database. If the ID does not exist in the DB the object is inserted as a new entry. If the ID exists, that entry is updated.

Returns:
true if the object was inserted, false otherwise.
Throws:
JetWebException


retrieve

boolean retrieve()
                 throws JetWebException
Populate the object in memory from the database. Return true if the information retrieved is up to date.

Throws:
JetWebException


getId

int getId()
Get the unique ID of the object