com.crystaldecisions.sdk.occa.report.data
Class CommandTable

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.data.Table
      extended by com.crystaldecisions.sdk.occa.report.data.Procedure
          extended by com.crystaldecisions.sdk.occa.report.data.CommandTable
All Implemented Interfaces:
ICommandTable, IProcedure, ITable, IClone

public class CommandTable
extends Procedure
implements ICommandTable

This object allows you to construct an SQL statement and add it to a report's database as a table. When possible, use the ICommandTable interface.


Constructor Summary
CommandTable()
           
CommandTable(ICommandTable src)
           
 
Method Summary
 java.lang.Object clone(boolean deepClone)
           
 void copyTo(java.lang.Object destObject, boolean deepCopy)
           
 java.lang.Object createMember(java.lang.String eleName, org.xml.sax.Attributes attrs, XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
          For internal use only.
 void disconnect()
           
 void endElement(java.lang.String eleName, java.util.Map objState)
          For internal use only.
 java.lang.String getCommandText()
           Returns the command text.
 java.lang.String getLinkedURI()
           
 int getVersion()
           
 boolean hasContent(java.lang.Object srcCommandTable)
           
 boolean isConnected()
           
 void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
          For internal use only.
 void refresh()
           
 void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt)
          For internal use only.
 void save(XMLWriter writer, XMLSerializationContext ctxt)
          For internal use only.
 void saveContents(XMLWriter writer, XMLSerializationContext ctxt)
          For internal use only.
 void setCommandText(java.lang.String text)
           Sets the command text.
 void setLinkedURI(java.lang.String URI)
           
 void setVersion(int version)
           
 void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
          For internal use only.
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.data.Procedure
enumerateMembers, getParameterFormulas, getParameters, setParameterFormulas, setParameters
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.data.Table
doControllerModification, getAlias, getConnection, getConnectionInfo, getControllableMixin, getDataFields, getDescription, getIndexes, getName, getQualifiedName, isDirectlyControllable, setAlias, setConnection, setConnectionInfo, setDataFields, setDescription, setIndexes, setName, setQualifiedName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.crystaldecisions.sdk.occa.report.data.IProcedure
getParameters, setParameters
 
Methods inherited from interface com.crystaldecisions.sdk.occa.report.data.ITable
getAlias, getConnection, getConnectionInfo, getDataFields, getDescription, getIndexes, getName, getQualifiedName, setAlias, setConnection, setConnectionInfo, setDataFields, setDescription, setIndexes, setName, setQualifiedName
 

Constructor Detail

CommandTable

public CommandTable(ICommandTable src)

CommandTable

public CommandTable()
Method Detail

clone

public java.lang.Object clone(boolean deepClone)
Overrides:
clone in class Procedure

copyTo

public void copyTo(java.lang.Object destObject,
                   boolean deepCopy)
Overrides:
copyTo in class Procedure

createMember

public java.lang.Object createMember(java.lang.String eleName,
                                     org.xml.sax.Attributes attrs,
                                     XMLSerializationContext ctxt,
                                     java.util.Map objState,
                                     boolean[] bLoaded)

For internal use only.

Overrides:
createMember in class Procedure

endElement

public void endElement(java.lang.String eleName,
                       java.util.Map objState)

For internal use only.

Overrides:
endElement in class Procedure

getCommandText

public java.lang.String getCommandText()
Description copied from interface: ICommandTable

Returns the command text. The command text is a SQL statement added through the CommandTable to the report.

Specified by:
getCommandText in interface ICommandTable
Returns:
The command text (SQL statement) as a String.

hasContent

public boolean hasContent(java.lang.Object srcCommandTable)
Overrides:
hasContent in class Procedure

readElement

public void readElement(java.lang.String eleName,
                        java.lang.String sVal,
                        org.xml.sax.Attributes attrs,
                        java.util.Map objState)
Description copied from class: Procedure

For internal use only.

Overrides:
readElement in class Procedure

save

public void save(XMLWriter writer,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
Description copied from class: Procedure

For internal use only.

Overrides:
save in class Procedure
Throws:
java.io.IOException

save

public void save(XMLWriter writer,
                 java.lang.String sTag,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
Description copied from class: Procedure

For internal use only.

Overrides:
save in class Procedure
Throws:
java.io.IOException

saveContents

public void saveContents(XMLWriter writer,
                         XMLSerializationContext ctxt)
                  throws java.io.IOException
Description copied from class: Procedure

For internal use only.

Overrides:
saveContents in class Procedure
Throws:
java.io.IOException

setCommandText

public void setCommandText(java.lang.String text)
Description copied from interface: ICommandTable

Sets the command text. The command text is a SQL statement added through the CommandTable to the report.

Specified by:
setCommandText in interface ICommandTable
Parameters:
text - The command text (SQL statement) as a String.

startElement

public void startElement(java.lang.String eleName,
                         java.util.Map objState,
                         org.xml.sax.Attributes attrs)

For internal use only.

Overrides:
startElement in class Procedure

getLinkedURI

public java.lang.String getLinkedURI()

getVersion

public int getVersion()

setLinkedURI

public void setLinkedURI(java.lang.String URI)

setVersion

public void setVersion(int version)

isConnected

public boolean isConnected()

disconnect

public void disconnect()

refresh

public void refresh()