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

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.data.Database
All Implemented Interfaces:
IDatabase, IClone

public class Database
extends java.lang.Object
implements IDatabase, IClone

This object contains a collection of tables from one or more database servers as well as a collection of TableJoin objects that define how the tables are linked.

Whenever possible, use the IDatabase interface to manipulate this object.

See Also:
DatabaseController

Constructor Summary
Database()
           
Database(IDatabase 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 doControllerModification(java.lang.Object newObject)
          For internal use only.
 void endElement(java.lang.String eleName, java.util.Map objState)
          For internal use only.
 void enumerateMembers(IMemberVisitor visitor)
          For internal use only.
 Connections getConnections()
          Gets information about the data source connections, including tables, logon credentials, etc.
 ControllableMixin getControllableMixin()
          For internal use only.
 TableJoins getTableJoins()
          Returns the table links that are used in the report from the database.
 Tables getTables()
          Returns the tables from the database that are used in the report.
 boolean hasContent(java.lang.Object srcDatabase)
           
 boolean isDirectlyControllable()
          For internal use only.
 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 setConnections(Connections connections)
          Sets the data source connections information.
 void setTableJoins(TableJoins tableJoins)
          Sets the table links that are used in the report from the database.
 void setTables(Tables tables)
          Sets the tables from the database that are used in the report.
 void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
          For internal use only.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Database

public Database(IDatabase src)

Database

public Database()
Method Detail

clone

public java.lang.Object clone(boolean deepClone)

copyTo

public void copyTo(java.lang.Object destObject,
                   boolean deepCopy)

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.


endElement

public void endElement(java.lang.String eleName,
                       java.util.Map objState)
For internal use only.


getTableJoins

public TableJoins getTableJoins()
Description copied from interface: IDatabase

Returns the table links that are used in the report from the database.

Specified by:
getTableJoins in interface IDatabase
Returns:
The table links as TableJoins objects.

getTables

public Tables getTables()
Description copied from interface: IDatabase

Returns the tables from the database that are used in the report.

Specified by:
getTables in interface IDatabase
Returns:
The tables as Tables objects.

hasContent

public boolean hasContent(java.lang.Object srcDatabase)

readElement

public void readElement(java.lang.String eleName,
                        java.lang.String sVal,
                        org.xml.sax.Attributes attrs,
                        java.util.Map objState)
For internal use only.


save

public void save(XMLWriter writer,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
For internal use only.

Throws:
java.io.IOException

save

public void save(XMLWriter writer,
                 java.lang.String sTag,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
For internal use only.

Throws:
java.io.IOException

saveContents

public void saveContents(XMLWriter writer,
                         XMLSerializationContext ctxt)
                  throws java.io.IOException
For internal use only.

Throws:
java.io.IOException

setTableJoins

public void setTableJoins(TableJoins tableJoins)
Description copied from interface: IDatabase

Sets the table links that are used in the report from the database.

Specified by:
setTableJoins in interface IDatabase
Parameters:
tableJoins - The table links as TableJoins objects.

setTables

public void setTables(Tables tables)
Description copied from interface: IDatabase

Sets the tables from the database that are used in the report.

Specified by:
setTables in interface IDatabase
Parameters:
tables - The tables as Tables objects.

startElement

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


getControllableMixin

public ControllableMixin getControllableMixin()
For internal use only.


doControllerModification

public void doControllerModification(java.lang.Object newObject)
                              throws ReportSDKException
For internal use only.

Throws:
ReportSDKException

isDirectlyControllable

public boolean isDirectlyControllable()
For internal use only.


enumerateMembers

public void enumerateMembers(IMemberVisitor visitor)
For internal use only.


getConnections

public Connections getConnections()
Description copied from interface: IDatabase
Gets information about the data source connections, including tables, logon credentials, etc.

Specified by:
getConnections in interface IDatabase
Returns:
a collections of IConnection objects

setConnections

public void setConnections(Connections connections)
Description copied from interface: IDatabase
Sets the data source connections information.

Specified by:
setConnections in interface IDatabase
Parameters:
connections - a collection of IConnection objects
See Also:
IConnection