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 TableLink objects that define how the tables are linked. Use the IDatabase interface to manipulate this object.


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, com.crystaldecisions.xml.serialization.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.
 TableLinks getTableLinks()
          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)
           
 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(com.crystaldecisions.xml.serialization.XMLWriter writer, com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
          For internal use only.
 void save(com.crystaldecisions.xml.serialization.XMLWriter writer, java.lang.String sTag, com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
          For internal use only.
 void saveContents(XMLWriter writer, XMLSerializationContext ctxt)
          For internal use only.
 void setTableLinks(TableLinks tableLinks)
          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,
                                     com.crystaldecisions.xml.serialization.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.


getTableLinks

public TableLinks getTableLinks()
Description copied from interface: IDatabase

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

Specified by:
getTableLinks in interface IDatabase
Returns:
The table links as TableLinks 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(com.crystaldecisions.xml.serialization.XMLWriter writer,
                 com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Throws:
java.io.IOException

save

public void save(com.crystaldecisions.xml.serialization.XMLWriter writer,
                 java.lang.String sTag,
                 com.crystaldecisions.xml.serialization.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

setTableLinks

public void setTableLinks(TableLinks tableLinks)
Description copied from interface: IDatabase

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

Specified by:
setTableLinks in interface IDatabase
Parameters:
tableLinks - The table links as TableLinks 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.