Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw.util
Class XmlSimpleSQL  view XmlSimpleSQL download XmlSimpleSQL.java

java.lang.Object
  extended byorg.mitre.cvw.util.XmlSimpleSQL

public class XmlSimpleSQL
extends java.lang.Object

Represents a simple SQL query (using only SELECT, FROM, WHERE) and result

Version:
1.0

Field Summary
private  org.mitre.cvw.docserv.AttributeSignature as
           
private  java.lang.String columnName
           
private  java.util.Hashtable currentRecord
           
private  boolean dbquery
           
private  java.lang.String elementName
           
private static java.lang.String prolog
           
private  boolean query
           
private  boolean record
           
private  boolean result
           
private  java.util.Vector resultSet
           
private  java.lang.String selects
           
private  int selectType
           
private  java.lang.String table
           
private  java.util.Hashtable wheres
           
 
Constructor Summary
XmlSimpleSQL()
           
XmlSimpleSQL(org.mitre.cvw.docserv.AttributeSignature selectItems, java.lang.String tableItem, java.util.Hashtable whereItems)
           
XmlSimpleSQL(java.lang.String selectItem, int type, java.lang.String tableItem, java.util.Hashtable whereItems)
           
 
Method Summary
 void add(java.lang.String entry)
           
 void characterData(CharacterDataEvent event)
           
 void comment(CommentEvent event)
           
 void endCdataSection(EndCdataSectionEvent event)
           
 void endDocument()
           
 void endDocumentTypeDeclaration(EndDocumentTypeDeclarationEvent event)
           
 void endElement(EndElementEvent event)
           
 void endEntityReference(EndEntityReferenceEvent event)
           
 void endProlog(EndPrologEvent event)
           
 int getDataType()
           
 java.util.Vector getResults()
           
 java.lang.String getSelect()
           
 java.lang.String getTable()
           
 java.util.Hashtable getWheres()
           
 void load(java.io.InputStream in)
          Reads an XML formatted history document from an input stream.
 void markupDeclaration(MarkupDeclarationEvent event)
           
 void processingInstruction(ProcessingInstructionEvent pi)
           
 void startCdataSection(StartCdataSectionEvent event)
           
 void startDocument()
           
 void startDocumentTypeDeclaration(StartDocumentTypeDeclarationEvent event)
           
 void startElement(StartElementEvent event)
           
 void startEntityReference(StartEntityReferenceEvent event)
           
 void store(java.io.OutputStream out, java.lang.String title)
          Writes the values stored within this class to an output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultSet

private java.util.Vector resultSet

selects

private java.lang.String selects

as

private org.mitre.cvw.docserv.AttributeSignature as

selectType

private int selectType

table

private java.lang.String table

wheres

private java.util.Hashtable wheres

dbquery

private boolean dbquery

query

private boolean query

result

private boolean result

record

private boolean record

currentRecord

private java.util.Hashtable currentRecord

elementName

private java.lang.String elementName

columnName

private java.lang.String columnName

prolog

private static final java.lang.String prolog
See Also:
Constant Field Values
Constructor Detail

XmlSimpleSQL

public XmlSimpleSQL(java.lang.String selectItem,
                    int type,
                    java.lang.String tableItem,
                    java.util.Hashtable whereItems)

XmlSimpleSQL

public XmlSimpleSQL(org.mitre.cvw.docserv.AttributeSignature selectItems,
                    java.lang.String tableItem,
                    java.util.Hashtable whereItems)

XmlSimpleSQL

public XmlSimpleSQL()
Method Detail

load

public void load(java.io.InputStream in)
          throws java.io.IOException
Reads an XML formatted history document from an input stream.


add

public void add(java.lang.String entry)

getResults

public java.util.Vector getResults()

getDataType

public int getDataType()

getSelect

public java.lang.String getSelect()

getTable

public java.lang.String getTable()

getWheres

public java.util.Hashtable getWheres()

startDocument

public void startDocument()
                   throws java.io.IOException

endDocument

public void endDocument()
                 throws java.io.IOException

startElement

public void startElement(StartElementEvent event)
                  throws java.io.IOException

characterData

public void characterData(CharacterDataEvent event)
                   throws java.io.IOException

endElement

public void endElement(EndElementEvent event)
                throws java.io.IOException

processingInstruction

public void processingInstruction(ProcessingInstructionEvent pi)
                           throws java.io.IOException

endProlog

public void endProlog(EndPrologEvent event)
               throws java.io.IOException

comment

public void comment(CommentEvent event)
             throws java.io.IOException

startCdataSection

public void startCdataSection(StartCdataSectionEvent event)
                       throws java.io.IOException

endCdataSection

public void endCdataSection(EndCdataSectionEvent event)
                     throws java.io.IOException

startEntityReference

public void startEntityReference(StartEntityReferenceEvent event)
                          throws java.io.IOException

endEntityReference

public void endEntityReference(EndEntityReferenceEvent event)
                        throws java.io.IOException

startDocumentTypeDeclaration

public void startDocumentTypeDeclaration(StartDocumentTypeDeclarationEvent event)
                                  throws java.io.IOException

endDocumentTypeDeclaration

public void endDocumentTypeDeclaration(EndDocumentTypeDeclarationEvent event)
                                throws java.io.IOException

markupDeclaration

public void markupDeclaration(MarkupDeclarationEvent event)
                       throws java.io.IOException

store

public void store(java.io.OutputStream out,
                  java.lang.String title)
           throws java.io.IOException
Writes the values stored within this class to an output stream