|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.Table
com.crystaldecisions.sdk.occa.report.data.Procedure
public class Procedure
This object represents a procedure that is stored in the database. These procedures are referred to as "stored procedures."
Procedures are stored in the database to avoid undue network traffic.
For example, a long SQL statement can be stored in the database
to avoid passing it back and forth over the network.
It is also possible for the stored procedure to have parameters.
In this case, only the argument values need to be transferred
across the network. If a report connects to a database that
has a stored procedure, and that stored procedure has parameters,
the
IDataDefinition.getParameterFields()
method will return these parameters.
You cannot change the definition of these parameters, but it is
possible to modify their current values. Additionally, the
procedure is stored in the table in a manner
similar to a normal record. Use the
com.crystaldecisions.sdk.occa.report.application.RowsetController#browseFieldValues
method
to examine the contents of the stored procedure.
Use the interface IProcedure
to get and set the current
values for the parameters of stored procedures,
unless you are cloning or copying the object.
Constructor Summary | |
---|---|
Procedure()
|
|
Procedure(IProcedure 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 |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
void |
enumerateMembers(IMemberVisitor visitor)
|
DataSourceParameterFormulas |
getParameterFormulas()
For internal use only. |
Fields<IParameterField> |
getParameters()
Gets the stored procedure parameters as Fields objects. |
boolean |
hasContent(java.lang.Object srcProcedure)
|
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
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 |
setParameterFormulas(DataSourceParameterFormulas parameterFormulas)
For internal use only. |
void |
setParameters(Fields<IParameterField> parameters)
Sets the stored procedure parameters as Fields objects. |
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.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.ITable |
---|
getAlias, getConnection, getConnectionInfo, getDataFields, getDescription, getIndexes, getName, getQualifiedName, setAlias, setConnection, setConnectionInfo, setDataFields, setDescription, setIndexes, setName, setQualifiedName |
Constructor Detail |
---|
public Procedure(IProcedure src)
public Procedure()
Method Detail |
---|
public java.lang.Object clone(boolean deepClone)
clone
in class Table
public void copyTo(java.lang.Object destObject, boolean deepCopy)
copyTo
in class Table
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.
createMember
in class Table
public void endElement(java.lang.String eleName, java.util.Map objState)
For internal use only.
endElement
in class Table
public Fields<IParameterField> getParameters()
IProcedure
Fields
objects.
getParameters
in interface IProcedure
Fields
objects.public DataSourceParameterFormulas getParameterFormulas()
public boolean hasContent(java.lang.Object srcProcedure)
hasContent
in class Table
public void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
For internal use only.
readElement
in class Table
public void save(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
save
in class Table
java.io.IOException
public void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
save
in class Table
java.io.IOException
public void saveContents(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
saveContents
in class Table
java.io.IOException
public void setParameters(Fields<IParameterField> parameters)
IProcedure
Fields
objects.
setParameters
in interface IProcedure
parameters
- The parameters as Fields
objects.public void setParameterFormulas(DataSourceParameterFormulas parameterFormulas)
public void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
Table
For internal use only.
startElement
in class Table
public void enumerateMembers(IMemberVisitor visitor)
enumerateMembers
in class Table
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |