SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWDBQEConnectionInfo Class Referenceabstract

#include <rw/test/dbcore/RWDBQEConnectionInfo.h>

Inherited by RWDBQEDB2ConnectionInfo, RWDBQEMSSQLConnectionInfo, RWDBQEMySQLConnectionInfo, RWDBQEODBCConnectionInfo, RWDBQEOracleConnectionInfo, RWDBQEPostgresConnectionInfo, and RWDBQESybaseConnectionInfo.

Public Member Functions

virtual ~RWDBQEConnectionInfo ()
 
virtual void extract (const RWDBConnection &conn)=0
 
RWCString getDatabaseName () const
 
DatabaseType getDatabaseType () const
 
RWCString getDatabaseVersion () const
 
int getDatabaseVersionID () const
 
RWCString getDriverManagerName () const
 
RWCString getDriverManagerVersion () const
 
int getDriverManagerVersionID () const
 
RWCString getDriverName () const
 
RWCString getDriverVersion () const
 
int getDriverVersionID () const
 
RWCString getServerName () const
 

Detailed Description

Provide information about a database connection.

Constructor & Destructor Documentation

virtual RWDBQEConnectionInfo::~RWDBQEConnectionInfo ( )
virtual

Destructor

Member Function Documentation

virtual void RWDBQEConnectionInfo::extract ( const RWDBConnection conn)
pure virtual

Extract connection information from the connection conn.

RWCString RWDBQEConnectionInfo::getDatabaseName ( ) const

Return the name of the database. If the database name is unknown or cannot be determined, return an empty string.

DatabaseType RWDBQEConnectionInfo::getDatabaseType ( ) const

Return the type of the database. If the database type is unknown or cannot be determined, return RWDBQEConnectionInfo::UNKNOWN.

RWCString RWDBQEConnectionInfo::getDatabaseVersion ( ) const

Return the version of the database as a string. If the database version is unknown or cannot be determined, return an empty string.

int RWDBQEConnectionInfo::getDatabaseVersionID ( ) const

Return the version of the database as an int. If the database version is unknown or cannot be determined, return 0.

RWCString RWDBQEConnectionInfo::getDriverManagerName ( ) const

Return the name of the database driver manager. If the driver manager name is unknown, not applicable, or cannot be determined, return an empty string.

RWCString RWDBQEConnectionInfo::getDriverManagerVersion ( ) const

Return the version of the database driver manager as a string. If the driver manager version is unknown, not applicable, or cannot be determined, return an empty string.

int RWDBQEConnectionInfo::getDriverManagerVersionID ( ) const

Return the version of the database driver manager as an int. If the driver manager version is unknown, not applicable, or cannot be determined, return 0.

RWCString RWDBQEConnectionInfo::getDriverName ( ) const

Return the name of the database driver. If the driver name is unknown, not applicable, or cannot be determined, return an empty string.

RWCString RWDBQEConnectionInfo::getDriverVersion ( ) const

Return the version of the database driver as a string. If the driver version is unknown, not applicable, or cannot be determined, return an empty string.

int RWDBQEConnectionInfo::getDriverVersionID ( ) const

Return the version of the database driver as an int. If the driver version is unknown, not applicable, or cannot be determined, return 0.

RWCString RWDBQEConnectionInfo::getServerName ( ) const

Return the name of the server. If the server name is unknown or cannot be determined, return an empty string.

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.