test.tester.model.dao
Interface MappedTable

All Known Implementing Classes:
Article, ArticlePicture, Category, Download, Link, Member, Story, StoryPicture

public interface MappedTable

All classes that intend to make a persistence between a database table and a object should implement this interface.


Method Summary
 void delete()
          When you have some data, this can be updated or inserted as a row into the database using this method.
 void save()
          When you have some data, this can be updated or inserted as a row into the database using this method.
 void set(java.sql.ResultSet set)
          Given a ResultSet, parses it and then set all the fields to the fields of the current row from the ResultSet.
 

Method Detail

save

public void save()
          throws DAOException
When you have some data, this can be updated or inserted as a row into the database using this method.

DAOException

delete

public void delete()
            throws DAOException
When you have some data, this can be updated or inserted as a row into the database using this method.

DAOException

set

public void set(java.sql.ResultSet set)
         throws DAOException
Given a ResultSet, parses it and then set all the fields to the fields of the current row from the ResultSet. this way you "link" this object to the table row.

DAOException