agentland.device.intelliCD.software
Class SoftwareProcessor

java.lang.Object
  |
  +--agentland.device.intelliCD.SQLProcessor
        |
        +--agentland.device.intelliCD.software.SoftwareProcessor
Direct Known Subclasses:
Mp3Processor

public abstract class SoftwareProcessor
extends SQLProcessor

A version of SQLProcessor which loads software songs from the database. This does the right thing to make sure it's a software song, however, the specific type of song still needs to be specified in a subclass.

See Also:
Mp3Processor

Fields inherited from class agentland.device.intelliCD.SQLProcessor
curLocation
 
Constructor Summary
SoftwareProcessor(Player p)
           
 
Method Summary
 Song buildSong(ResultSet rs, SongContainer sc)
          Creates a song from a ResultSet.
 
Methods inherited from class agentland.device.intelliCD.SQLProcessor
buildContainer, cleanContainer, containerQuery, getType, process, songQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftwareProcessor

public SoftwareProcessor(Player p)
Method Detail

buildSong

public Song buildSong(ResultSet rs,
                      SongContainer sc)
               throws SQLException
Description copied from class: SQLProcessor
Creates a song from a ResultSet. This should be used by subclasses to make a song of the correct type. This method should not modify the result set at all. It must only call get...() methods to retrieve values. This method should add the created song into the song container, through whatever method is appropriate.
Overrides:
buildSong in class SQLProcessor
Following copied from class: agentland.device.intelliCD.SQLProcessor
Parameters:
rs - A ResultSet holding a row of a song.
sc - The SongContainer to add this song into.
Returns:
the song corresponding to the ResultSet.