dataabstraction
Interface Persistent

All Known Implementing Classes:
PersistentUser, PersistentDefect

public abstract interface Persistent

Persistent is an interface that must be implemented by objects in the BugTracker application that are persisted through the object-relational layer. This interace provides standard methds that must be implemented by Persistent classes


Method Summary
 void drop()
          remove this object from storage
 void fetch()
          retrieve this object from storage
 void insert()
          create this object in storage
 boolean rowExists()
          determines if this object has been stored before.
 void update()
          update the stored state of this object
 

Method Detail

fetch

public void fetch()
           throws java.sql.SQLException
retrieve this object from storage

drop

public void drop()
          throws java.sql.SQLException
remove this object from storage

insert

public void insert()
            throws java.sql.SQLException
create this object in storage

update

public void update()
            throws java.sql.SQLException
update the stored state of this object

rowExists

public boolean rowExists()
determines if this object has been stored before.
Returns:
true if it already exists in storage, false if not