DB Link
API Reference Guide
Product Documentation:

Visualization DB Link
Documentation Home
List of all members | Public Member Functions | Protected Member Functions | Friends
IldDbmsModel Class Reference

Twin class for IldDbms, with inheritance capability. More...

#include <ildblink/dbmsmodl.h>

Inheritance diagram for IldDbmsModel:
IldBaseModel IldDbms IldIldBase IldIldBase

Public Member Functions

 IldDbmsModel (const char *dbmsName, const char *conStr)
 As IldNewDbms(const char*, const char*).
 
 IldDbmsModel (const char *dbmsName, const char *database, const char *userName, const char *password)
 As IldNewDbms(const char*, const char*, const char*, const char*).
 
virtual IldDbmsautoCommitOff (IldRequest *request=0, const char *transName=0)
 As IldDbms::autoCommitOff(IldRequest*, const char*).
 
virtual IldDbmsautoCommitOn (IldRequest *request=0, const char *transName=0)
 As IldDbms::autoCommitOn(IldRequest*, const char*).
 
virtual IldDbmscancel ()
 As IldDbms::cancel().
 
virtual IldDbmscommit (IldRequest *request=0, const char *transName=0)
 As IldDbms::commit(IldRequest*, const char*).
 
virtual IldDbmsconnect (const char *connString)
 As IldDbms::connect(const char*).
 
virtual IldDbmsconnect (const char *database, const char *userName, const char *password)
 As IldDbms::connect(const char*, const char*, const char*).
 
virtual IldDbmsdisconnect ()
 As IldDbms::disconnect().
 
IldDbmsexecute (const char *query, IlInt *rowCount=0)
 As IldDbms::execute(const char*, IlInt*).
 
virtual void freeEntity (IldSchemaEntity *ent)
 As IldDbms::freeEntity(IldSchemaEntity*).
 
virtual IldDbmsfreeNames (char **names, char **owners=0)
 As IldDbms::freeNames(char**, char**).
 
virtual void freeTypeInfo (const IldSQLType **)
 As IldDbms::freeTypeInfo(const IldSQLType*).
 
virtual IldADTDescriptorgetAbstractType (const char *typeName, const char *owner=0)
 As IldDbms::getAbstractType(const char*, const char*).
 
virtual IldADTDescriptorgetAbstractType (IlInt typeId)
 As IldDbms::getAbstractType(IlInt).
 
const char * getDatabase () const
 As IldDbms::getDatabase().
 
const char * getDbmsServer () const
 As IldDbms::getDbmsServer().
 
virtual IlUInt getDbmsVersion ()
 As IldDbms::getDbmsVersion().
 
virtual const char * getDbmsVersions ()
 As IldDbms::getDbmsVersions().
 
virtual IlUInt getDefaultColArraySize () const
 As IldDbms::getDefaultColArraySize().
 
virtual IlUInt getDefaultParamArraySize () const
 As IldDbms::getDefaultParamArraySize().
 
const IldDiagnosticgetError () const
 As IldIldBase::getError.
 
IlInt getErrorCode () const
 As IldIldBase::getErrorCode.
 
const char * getErrorConnection () const
 As IldIldBase::getErrorConnection.
 
const char * getErrorMessage () const
 As IldIldBase::getErrorMessage.
 
const char * getErrorName () const
 As IldIldBase::getErrorName.
 
IldErrorOrigin getErrorOrigin () const
 As IldIldBase::getErrorOrigin.
 
virtual IldErrorReportergetErrorReporter () const
 As IldDbms::getErrorReporter().
 
const char * getErrorSqlstate () const
 As IldIldBase::getErrorSqlState.
 
virtual IlAny getHook () const
 As IldDbms::getHook().
 
virtual IldDbmsgetInfo (IldInfoItem info, IlInt *intVal, char *charVal)
 As IldDbms::getInfo(IldInfoItem, IlInt*, char*).
 
const IldDiagnosticgetInformation () const
 As IldIldBase::getInformation.
 
IlInt getInformationCode () const
 As IldIldBase::getInformationCode.
 
const char * getInformationMessage () const
 As IldIldBase::getInformationMessage.
 
const char * getName () const
 As IldDbms::getName().
 
IlInt getNumberOfActiveConnections () const
 As IldDbms::getNumberOfActiveConnections().
 
virtual IlUInt getNumberOfEntities ()
 As IldDbms::getNumberOfEntitiess().
 
virtual IlUInt getNumberOfRequests () const
 As IldDbms::getNumberOfRequests().
 
virtual IldCallablegetProcedure (const char *procName, const char *owner=0)
 As IldDbms::getProcedure(const char*, const char*).
 
virtual IldCallablegetProcedure (IlInt procId)
 As IldDbms::getProcedure(IlInt).
 
virtual IldRelationgetRelation (const char *relName, const char *owner=0)
 As IldDbms::getRelation(const char*, const char*).
 
virtual IldRelationgetRelation (IlInt relId)
 As IldDbms::getRelation(IlInt).
 
virtual IldSynonymgetSynonym (const char *synName, const char *owner=0)
 As IldDbms::getSynonym(const char*, const char*).
 
virtual IldSynonymgetSynonym (IlInt synId)
 As IldDbms::getSynonym(IlInt).
 
virtual const IldSQLType ** getTypeInfo (short cTy=IldSQLAllTypes)
 As IldDbms::getTypeInfo(short).
 
const char * getUser () const
 As IldDbms::getUser().
 
virtual IlBoolean isAsync () const
 As IldDbms::isAsync().
 
virtual IlBoolean isAsyncSupported () const
 As IldDbms::isAsyncSupported().
 
virtual IlBoolean isCompleted () const
 As IldDbms::isCompleted().
 
virtual IlBoolean isConnected () const
 As IldDbms::isConnected().
 
IlBoolean isErrorRaised () const
 As IldIldBase::isErrorRaised.
 
IlBoolean isInformationRaised () const
 As IldIldBase::isInformationRaised.
 
virtual IlBoolean isReadOnlyCapable () const
 As IldDbms::isReadOnlyCapable().
 
virtual IlBoolean isScrollableCapable () const
 As IldDbms::isScrollableCapable().
 
virtual IlBoolean isTransactionEnabled ()
 As IldDbms::isTransactionEnabled().
 
virtual IlBoolean isTransactionReadOnly () const
 As IldDbms::isTransactionReadOnly().
 
int operator! () const
 As IldIldBase::operator!.
 
virtual IldADTDescriptorreadAbstractType (const char *typeName, const char *owner=0)
 As IldDbms::readAbstractType(const char*, const char*).
 
virtual IldADTDescriptorreadAbstractType (IlInt typeId)
 As IldDbms::readAbstractType(IlInt).
 
virtual char ** readAbstractTypeNames (const char *owner=0)
 As IldDbms::readAbstractTypeNames(const char*).
 
virtual IldRequestreadEntityNames (IldEntityType entType, const char *owner=0)
 As IldDbms::readEntityNames(IldEntityType, const char*).
 
virtual IldDbmsreadForeignKeys (IldRelation *relation)
 Build the descriptor of the relation foreign keys. More...
 
virtual IldDbmsreadIndexes (IldRelation *relation)
 Build the descriptor of the relation indexes. More...
 
virtual char ** readOwners ()
 As IldDbms::readOwners().
 
virtual IldDbmsreadPrimaryKey (IldRelation *relation)
 Build the descriptor of the relation primary key. More...
 
virtual IldCallablereadProcedure (const char *procName, const char *owner=0)
 As IldDbms::readProcedure(const char*, const char*).
 
virtual IldCallablereadProcedure (IlInt procId)
 As IldDbms::readProcedure(IlInt).
 
virtual char ** readProcedureNames (const char *owner=0)
 As IldDbms::readProcedureNames(const char*).
 
virtual IldRelationreadRelation (const char *relName, const char *owner=0)
 As IldDbms::readRelation(const char*, const char*).
 
virtual IldRelationreadRelation (IlInt relId)
 As IldDbms::readRelation(IlInt).
 
virtual char ** readRelationNames (char **&owners)
 As IldDbms::readRelationNames(char**& owners).
 
virtual char ** readRelationNames (const char *owner=0)
 As IldDbms::readRelationNames(const char*).
 
virtual char ** readRelationOwners (const char *relName=0)
 As IldDbms::readRelationOwners(const char*).
 
virtual IldDbmsreadSpecialColumns (IldRelation *relation)
 Build the descriptor of the relation special columns. More...
 
virtual IldSynonymreadSynonym (const char *synName, const char *owner=0)
 As IldDbms::readSynonym(const char*, const char*).
 
virtual IldSynonymreadSynonym (IlInt synId)
 As IldDbms::readSynonym(IlInt).
 
virtual char ** readSynonymNames (const char *owner=0)
 As IldDbms::readSynonymNames(const char*).
 
virtual IldRequestreadTablePrivileges (const char *catalog, const char *schema, const char *table)
 As IldDbms::readTablePrivileges(const char*, const char*, const char*).
 
virtual void removeEntity (IldSchemaEntity *ent)
 As IldDbms::removeEntity(IldSchemaEntity*).
 
virtual void removeRelation (IldRelation *rel)
 As IldDbms::removeRelation(IldRelation*).
 
virtual IldDbmsrollback (IldRequest *request=0, const char *transName=0)
 As IldDbms::rollback(IldRequest*, const char*).
 
virtual IldDbmssetAsync (IlBoolean)
 As IldDbms::setAsync(IlBoolean).
 
virtual IldDbmssetDefaultColArraySize (IlUInt size)
 As IldDbms::setDefaultColArraySize(IlUInt).
 
virtual IldDbmssetDefaultParamArraySize (IlUInt size)
 As IldDbms::setDefaultParamArraySize(IlUInt).
 
virtual IldDbmssetErrorReporter (IldErrorReporter *reporter)
 As IldDbms::setErrorReporter(IldErrorReporter*).
 
virtual IldDbmssetHook (IlAny hook)
 As IldDbms::setHook().
 
virtual void setNumericUse (IlBoolean flag)
 As IldIldBase::setNumericUse.
 
virtual void setStringDateUse (IlBoolean flag=IlTrue)
 As IldIldBase::setStringDateUse.
 
virtual void setStringNumericUse (IlBoolean flag=IlTrue)
 As IldIldBase::setStringNumericUse.
 
virtual IldDbmssetTimeOut (short secs)
 As IldDbms::setTimeOut(short).
 
virtual IldDbmssetTransactionReadOnly (IlBoolean flag=IlTrue)
 As IldDbms::setTransactionReadOnly().
 
virtual IldDbmsstartTransaction (IldRequest *request=0, const char *transName=0)
 As IldDbms::startTransaction(IldRequest*, const char*).
 
virtual IldDbmssubscribeEvent (const char *name, IldNotifFunction usrCB, IlAny usrData)
 As IldDbms::subscribeEvent(const char*, IldNotifFunction, IlAny).
 
virtual IldDbmsunSubscribeEvent (const char *name)
 As IldDbms::unSubscribeEvent(const char*).
 
virtual IlBoolean useNumeric () const
 As IldIldBase::useNumeric.
 
virtual IlBoolean useStringDate () const
 As IldIldBase::useStringDate.
 
virtual IlBoolean useStringNumeric () const
 As IldIldBase::useStringNumeric.
 
- Public Member Functions inherited from IldBaseModel
const IldDiagnosticgetError () const
 As IldIldBase::getError.
 
IlInt getErrorCode () const
 As IldIldBase::getErrorCode.
 
const char * getErrorConnection () const
 As IldIldBase::getErrorConnection.
 
const char * getErrorMessage () const
 As IldIldBase::getErrorMessage.
 
const char * getErrorName () const
 As IldIldBase::getErrorName.
 
IldErrorOrigin getErrorOrigin () const
 As IldIldBase::getErrorOrigin.
 
const char * getErrorSqlstate () const
 As IldIldBase::getErrorSqlState.
 
const IldDiagnosticgetInformation () const
 As IldIldBase::getInformation.
 
IlInt getInformationCode () const
 As IldIldBase::getInformationCode.
 
const char * getInformationMessage () const
 As IldIldBase::getInformationMessage.
 
IlBoolean isErrorRaised () const
 As IldIldBase::isErrorRaised.
 
IlBoolean isInformationRaised () const
 As IldIldBase::isInformationRaised.
 
int operator! () const
 As IldIldBase::operator!.
 
void setError (IldDiagnostic *)
 As IldIldBase::setError.
 
void setInformation (IldDiagnostic *)
 As IldIldBase::setInformation.
 
virtual void setNumericUse (IlBoolean flag)
 As IldIldBase::setNumericUse.
 
virtual void setStringDateUse (IlBoolean flag=IlTrue)
 As IldIldBase::setStringDateUse.
 
virtual void setStringNumericUse (IlBoolean flag=IlTrue)
 As IldIldBase::setStringNumericUse.
 
virtual IlBoolean useNumeric () const
 As IldIldBase::useNumeric.
 
virtual IlBoolean useStringDate () const
 As IldIldBase::useStringDate.
 
virtual IlBoolean useStringNumeric () const
 As IldIldBase::useStringNumeric.
 
- Public Member Functions inherited from IldIldBase
virtual ~IldIldBase ()
 Destructor for the base class of DB Link session and cursor classes. More...
 
void clearDiagnostics ()
 Set diagnostic flags to false. More...
 
- Public Member Functions inherited from IldDbms
virtual ~IldDbms ()
 This virtual destructor is invoked when the current object is being destroyed. More...
 

Protected Member Functions

IldRequestgetFreeRequest ()
 Get a new request. More...
 

Friends

class IldRequestModel
 

Detailed Description

Twin class for IldDbms, with inheritance capability.

Library: dbkernel

Since the IldDbms and IldRequest classes cannot be inherited, new classes IldDbmsModel and IldRequestModel are provided. They offer the same functionalities as the IldDbms and IldRequest classes, and they can be inherited.

Therefore, the description of the various member functions is essentially the same as the description given in the IldDbms class. Differences are the following :

Member Function Documentation

◆ getFreeRequest()

IldRequest* IldDbmsModel::getFreeRequest ( )
protectedvirtual

Get a new request.

Returns
A pointer to an IldRequest instance.

The object may be one that already exists and has been released, or it may be a new object.

This member function can raise the following errors:

  • ILD_DBMS_NOT_CONNECTED
  • ILD_MEMORY_EXHAUSTED
  • Any error detected by the RDBMS itself.

In case of error, this member function returns a null pointer or an error request object.

For more information on these return values, see the section "Erroneous IldDbms and IldRequest Objects" in the Rogue Wave DB Link User's Manual.

Implements IldDbms.

◆ readForeignKeys()

virtual IldDbms& IldDbmsModel::readForeignKeys ( IldRelation rel)
virtual

Build the descriptor of the relation foreign keys.

Parameters
relThe relation whose foreign keys descriptors are to be retrieved.
Returns
The current object by reference.

Implements IldDbms.

◆ readIndexes()

virtual IldDbms& IldDbmsModel::readIndexes ( IldRelation rel)
virtual

Build the descriptor of the relation indexes.

Parameters
relThe relation whose index descriptors are to be retrieved.
Returns
The current object by reference.

Implements IldDbms.

◆ readPrimaryKey()

virtual IldDbms& IldDbmsModel::readPrimaryKey ( IldRelation rel)
virtual

Build the descriptor of the relation primary key.

Parameters
relThe realtion whose primary descriptor is to be built.
Returns
The current object by reference.

Implements IldDbms.

◆ readSpecialColumns()

virtual IldDbms& IldDbmsModel::readSpecialColumns ( IldRelation rel)
virtual

Build the descriptor of the relation special columns.

Parameters
relThe relation whose special columns descriptor is to be built.
Returns
The current object by reference.

Implements IldDbms.