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)
           
 void endElement(java.lang.String eleName, java.util.Map objState)
           
 Connections getConnections()
          For internal use only
 Tables getConnectionTables(java.lang.String connectionName)
          For internal use only.
 IField getDBFieldByUniqueName(java.lang.String fieldUniqueName)
          For internal use only.
 ITable getTableByAlias(java.lang.String tableAlias)
          For internal use only
 ITable getTableByName(java.lang.String tableName)
          For internal use only
 TableJoins getTableJoins()
          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)
           
 void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt)
           
 void save(XMLWriter writer, XMLSerializationContext ctxt)
           
 void saveContents(XMLWriter writer, XMLSerializationContext ctxt)
           
 void setConnections(Connections connections)
          For internal use only
 void setTableJoins(TableJoins tableJoins)
          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)
           
 
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)

endElement

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

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 collection.
See Also:
ITableLink

getTableJoins

public TableJoins getTableJoins()
Description copied from interface: IDatabase
For internal use only

Specified by:
getTableJoins in interface IDatabase

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)

save

public void save(XMLWriter writer,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
Throws:
java.io.IOException

save

public void save(XMLWriter writer,
                 java.lang.String sTag,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
Throws:
java.io.IOException

saveContents

public void saveContents(XMLWriter writer,
                         XMLSerializationContext ctxt)
                  throws java.io.IOException
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 collection.
See Also:
ITableLink

setTableJoins

public void setTableJoins(TableJoins tableJoins)
Description copied from interface: IDatabase
For internal use only

Specified by:
setTableJoins in interface IDatabase

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)

getConnections

public Connections getConnections()
Description copied from interface: IDatabase
For internal use only

Specified by:
getConnections in interface IDatabase

setConnections

public void setConnections(Connections connections)
Description copied from interface: IDatabase
For internal use only

Specified by:
setConnections in interface IDatabase

getTableByName

public ITable getTableByName(java.lang.String tableName)
Description copied from interface: IDatabase
For internal use only

Specified by:
getTableByName in interface IDatabase

getTableByAlias

public ITable getTableByAlias(java.lang.String tableAlias)
Description copied from interface: IDatabase
For internal use only

Specified by:
getTableByAlias in interface IDatabase

getDBFieldByUniqueName

public IField getDBFieldByUniqueName(java.lang.String fieldUniqueName)
For internal use only.

Specified by:
getDBFieldByUniqueName in interface IDatabase

getConnectionTables

public Tables getConnectionTables(java.lang.String connectionName)
Description copied from interface: IDatabase
For internal use only.

Specified by:
getConnectionTables in interface IDatabase