|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OpenDriver
This interface defines methods for meta data handling (tables, columns, etc...). All custom drivers must implement this interface. For more information on the usage of this interface, refer to the custom driver sample code.
| Method Summary | |
|---|---|
void |
fetch(int requestedSize,
ColumnSet columnSet)
Fetch at most requestedSize number of columns in the columnSet. |
void |
fetch(int requestedSize,
OwnerSet ownerSet)
If the driver supports Owners, fetches at most requestedSize number of owners. |
void |
fetch(int requestedSize,
QualifierSet qualifierSet)
If the driver supports Qualifiers, fetches at most the requestedSize number of qualifiers. |
void |
fetch(int requestedSize,
TableSet tableSet)
Fetches at most requestedSize number of tables in the tableSet. |
boolean |
foreignKeysAvailable()
Returns True: the driver supports foreign keys. |
void |
getColumns(java.lang.String qualifier,
java.lang.String owner,
java.lang.String tableName)
Gets all the columns for a give table, qualifier and owner. |
java.lang.String |
getCurrentOwner()
Retrieves the current user name as known to this datasource. |
java.lang.String |
getCurrentQualifier()
Retrieves the current qualifier names available in this datasource. |
void |
getForeignKeys(java.lang.String qualifier,
java.lang.String owner,
java.lang.String tableName)
Gets the foreign keys associated with a give table based on tableName, owner and qualifer. |
short |
getMaxColumnNameLength(short defaultValue)
Returns the maximum size for column's name. |
short |
getMaxOwnerNameLength(short defaultValue)
Returns the maximum size for the owner's name. |
short |
getMaxQualifierNameLength(short defaultValue)
Returns the maximum size for the qualifier's name. |
short |
getMaxTableNameLength(short defaultValue)
Returns the maximum size for table's name. |
void |
getOwners(java.lang.String qualifier)
Retrieves the owners for a given qualifier(catalog) |
void |
getPrimaryKey(java.lang.String qualifier,
java.lang.String owner,
java.lang.String tableName)
Gets the primary key for a table, based on tableName, owner and qualifer. |
void |
getQualifiers()
Gets all the qualifiers(catalogs) available. |
void |
getReferentialDependencies(java.lang.String qualifier,
java.lang.String owner,
java.lang.String tableName)
Gets the foreign key columns that reference the given table's primary key columns. |
void |
getTables(java.lang.String qualifier,
java.lang.String owner,
java.lang.String pattern,
java.util.Collection types)
Fetches all the tables for a given owner, qualifier and pattern. |
boolean |
ownersAvailable()
Returns True: the driver support owners. |
boolean |
primaryKeyAvailable()
Returns True: the driver supports primary key. |
boolean |
qualifiersAvailable()
Returns True if the driver supports qualifiers (catalog). |
| Methods inherited from interface com.businessobjects.connectionserver.datasources.ddk.DBDriver |
|---|
abort, arrayBindSupported, arrayFetchSupported, bindColumns, close, commit, connect, connectionProfile, disconnect, execute, fetch, freeResources, getColumnCount, getColumnDescriptions, getUpdateCount, maxRowsSupported, nextResults, ping, prepare, prepare, queryTimeOutSupported, rollback, setArrayBindSize, setArrayFetchSize, setMaxRows, setQueryTimeOut |
| Method Detail |
|---|
java.lang.String getCurrentQualifier()
throws CSException
Retrieves the current qualifier names available in this datasource.
CSException - The feature is not implemented or a datasource access error occurs.
java.lang.String getCurrentOwner()
throws CSException
Retrieves the current user name as known to this datasource.
CSException - The feature is not implemented or a datasource access error occurs.
boolean qualifiersAvailable()
throws CSException
Returns True if the driver supports qualifiers (catalog).
CSException - The feature is not implemented or a datasource access error occurs.
boolean ownersAvailable()
throws CSException
Returns True: the driver support owners.
CSException - The feature is not implemented or a datasource access error occurs.
boolean primaryKeyAvailable()
throws CSException
Returns True: the driver supports primary key.
CSException - The feature is not implemented or a datasource access error occurs.
boolean foreignKeysAvailable()
throws CSException
Returns True: the driver supports foreign keys.
CSException - The feature is not implemented or a datasource access error occurs.short getMaxQualifierNameLength(short defaultValue)
Returns the maximum size for the qualifier's name.
defaultValue - A default value for the size.
short getMaxOwnerNameLength(short defaultValue)
Returns the maximum size for the owner's name.
defaultValue - A default value for the size.
short getMaxTableNameLength(short defaultValue)
Returns the maximum size for table's name.
defaultValue - A default value for the size
short getMaxColumnNameLength(short defaultValue)
Returns the maximum size for column's name.
defaultValue - A default value for the size
void getQualifiers()
throws CSException
Gets all the qualifiers(catalogs) available.
CSException - The feature is not implemented or a datasource access error occurs.
void fetch(int requestedSize,
QualifierSet qualifierSet)
throws CSException
If the driver supports Qualifiers, fetches at most the
requestedSize number of qualifiers.
requestedSize - The maximum number of qualifiers to fetch in the qualifierSet.qualifierSet - The QualifierSet to populate with qualifiers values.
CSException - The feature is not implemented or a datasource access error occurs
void getOwners(java.lang.String qualifier)
throws CSException
Retrieves the owners for a given qualifier(catalog)
qualifier - The qualifier (catalog) for which to retrieve the owners.
CSException - The feature is not implemented or
a datasource access error occurs.
void fetch(int requestedSize,
OwnerSet ownerSet)
throws CSException
If the driver supports Owners, fetches at most requestedSize number of owners.
requestedSize - The maximun number of owner to fetch in the OwnerSet.ownerSet - The OwnerSet to populate with owners values.
CSException - If the feature is not implemented or
a datasource access error occurs.
void getTables(java.lang.String qualifier,
java.lang.String owner,
java.lang.String pattern,
java.util.Collection types)
throws CSException
Fetches all the tables for a given owner, qualifier and pattern.
qualifier - The qualifier(catalog) nameowner - The owner namepattern - A table name patterntypes - A list of table types, which could be from this list
of table types:
CSException - If the feature is not implemented or if a datasource access error occurs
void fetch(int requestedSize,
TableSet tableSet)
throws CSException
Fetches at most requestedSize number of tables in the tableSet.
This method is called after a call to
getTables(String, String, String, Collection), to populate the tableSet.
requestedSize - The maximun number of table meta informations to fetch in the TableSettableSet - The TableSet to populate with owners values
CSException - The feature is not implemented or a datasource access error occurs.
void getColumns(java.lang.String qualifier,
java.lang.String owner,
java.lang.String tableName)
throws CSException
Gets all the columns for a give table, qualifier and owner.
qualifier - The qualifier of the table.owner - The owner of the table.tableName - The name of the table .
CSException - The feature is not implemented or a datasource access error occurs
void fetch(int requestedSize,
ColumnSet columnSet)
throws CSException
Fetch at most requestedSize number of columns in the columnSet.
This method is called after a call to getColumns(String, String, String)
to populate the columnSet.
requestedSize - The maximum number of columns meta-informations to fetch
in the ColumnSet.columnSet - The ColumnSet to populate with column's meta information.
CSException - The feature is not implemented or a datasource access error occurs.
void getPrimaryKey(java.lang.String qualifier,
java.lang.String owner,
java.lang.String tableName)
throws CSException
Gets the primary key for a table, based on tableName, owner and qualifer.
qualifier - The qualifier name of the tableowner - The owner name of the tabletableName - The name of the table
CSException - The feature is not implemented or a datasource access error occurs.
void getForeignKeys(java.lang.String qualifier,
java.lang.String owner,
java.lang.String tableName)
throws CSException
Gets the foreign keys associated with a give table based on tableName, owner and qualifer.
qualifier - The qualifier of the tableowner - The owner of the tabletableName - The name of the table
CSException - The feature is not implemented or a datasource access error occurs.
void getReferentialDependencies(java.lang.String qualifier,
java.lang.String owner,
java.lang.String tableName)
throws CSException
Gets the foreign key columns that reference the given table's primary key columns.
qualifier - The qualifier name of the table.owner - The owner name of the table.tableName - The name of the table.
CSException - The feature is not implemented or
a datasource access error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||