|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.crystaldecisions.reports.sdk.DatabaseController
A database controller which provides an interface for some database related operations.
Method Summary | |
IDatabase |
getDatabase()
Returns an IDatabase object which holds information like tables in the report. |
void |
logon(java.lang.String sUser,
java.lang.String sPassword)
Sets all of the tables in the report with a specified user name and password. |
void |
setDataSource(java.util.Collection domainData,
java.lang.Class domainClass,
java.lang.String oldTableAlias,
java.lang.String newTableName)
Sets a given collection into an existing datasource. |
void |
setDataSource(java.sql.ResultSet data,
java.lang.String oldTableAlias,
java.lang.String newTableName)
Sets a given database result set into an existing datasource. |
void |
setTableLocation(ITable curTable,
ITable newTable)
Changes table location of curTable to a new table. |
void |
setTableLocationEx(java.lang.Object curTable,
java.lang.Object newObject)
Sets table location specified by curTable. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public IDatabase getDatabase()
public void setTableLocation(ITable curTable, ITable newTable) throws ReportSDKException
curTable
- an ITable representing an existing table in the reportnewTable
- an ITable representing the new table to change to
ReportSDKException
- if set location failed for any reasonpublic void setTableLocationEx(java.lang.Object curTable, java.lang.Object newObject) throws ReportSDKException
curTable
- One of the following:newObject
- One of the following:ReportSDKException
public void setDataSource(java.sql.ResultSet data, java.lang.String oldTableAlias, java.lang.String newTableName) throws ReportSDKException
data
- a java.sql.ResultSet objectoldTableAlias
- name of an existing table to replacenewTableName
- name of the table after replacement
ReportSDKException
public void setDataSource(java.util.Collection domainData, java.lang.Class domainClass, java.lang.String oldTableAlias, java.lang.String newTableName) throws ReportSDKException
domainData
- domainClass
- oldTableAlias
- name of an existing table to replacenewTableName
- name of the table after replacement
ReportSDKException
public void logon(java.lang.String sUser, java.lang.String sPassword) throws com.crystaldecisions.sdk.occa.report.lib.ReportSDKException
Sets all of the tables in the report with a specified user name and password.
This is a helper function that applies logon information to all of the database connections
used in the report; use this method instead of setting the ConnectionInfo
for each.
sUser
- The user name.sPassword
- The password.
ReportSDKException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |