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
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 |
SQLCollection
public SQLCollection()
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)