agentland.device.intelliCD
Class CDProcessor

java.lang.Object
  |
  +--agentland.device.intelliCD.SQLProcessor
        |
        +--agentland.device.intelliCD.CDProcessor

public class CDProcessor
extends SQLProcessor

Fetches CDs from the database. The processor gets told which CD player to get information for.

See Also:
SQLProcessor

Fields inherited from class agentland.device.intelliCD.SQLProcessor
curLocation
 
Constructor Summary
CDProcessor(Player p)
           
 
Method Summary
 Song buildSong(ResultSet rs, SongContainer sc)
          Creates a song from a ResultSet.
 String getType()
          Fetches the type of data being accessed.
protected  String songQuery(int coll_id)
           
 
Methods inherited from class agentland.device.intelliCD.SQLProcessor
buildContainer, cleanContainer, containerQuery, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDProcessor

public CDProcessor(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.

songQuery

protected String songQuery(int coll_id)
Overrides:
songQuery in class SQLProcessor

getType

public String getType()
Description copied from class: SQLProcessor
Fetches the type of data being accessed. This is used to get the right information out of the database.
Overrides:
getType in class SQLProcessor