agentland.device.intelliCD
Class SQLCollection

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--agentland.device.intelliCD.SongContainer
                          |
                          +--agentland.device.intelliCD.SCollection
                                |
                                +--agentland.device.intelliCD.SQLCollection
All Implemented Interfaces:
Cloneable, Collection, List, Serializable, SongContainerElement

public class SQLCollection
extends SCollection
implements Serializable

An SCollection which uses SQL connections to populate itself. To be perfectly precise, it uses SQLProcessor objects to do the actual work, while it sits on the sidelines, sips tea, and waits for them to pass the results back. SQLCollection, like its superclass SCollection is serializable, so it can be passed across a network.

See Also:
SQLProcessor, Serialized Form

Fields inherited from class agentland.device.intelliCD.SongContainer
author, id, parent, title
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SQLCollection()
           
 
Method Summary
 void addProcessor(SQLProcessor sp)
          Adds the given SQLProcessor to the list of processable items.
static void main(String[] args)
           
 void process(Connection cnxn, String where)
          Tells the SQLProcessor objects to load their data.
 
Methods inherited from class agentland.device.intelliCD.SCollection
addContainer, addContainer, addSong, containerIterator, lookupContainer, lookupSong, prune, songIterator
 
Methods inherited from class agentland.device.intelliCD.SongContainer
add, add, addFromContainer, copyParent, copyParentTree, copySubtree, equals, getAuthor, getElement, getID, getName, getParent, getSCE, getSongsRecursive, getTitle, hashCode, iconName, init, lightweightCopy, lookup, lookupContainer, printWithPrefix, remove, set, setAuthor, setID, setParent, setTitle, shallowCopy, toString
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

SQLCollection

public SQLCollection()
Method Detail

addProcessor

public void addProcessor(SQLProcessor sp)
Adds the given SQLProcessor to the list of processable items.

process

public void process(Connection cnxn,
                    String where)
Tells the SQLProcessor objects to load their data.
Parameters:
cnxn - The database connection to pass to the SQLProcessors.
See Also:
SQLProcessor.process(Connection, SCollection, String)

main

public static void main(String[] args)