HasDatabaseConnection Class
(CDP2SQL::HasDatabaseConnection)Generic base class for all the database holder objects. Should not be used directly. More...
| Header: | #include <HasDatabaseConnection> |
| Inherited By: | CDP2SQL::Database, CDP2SQL::Query, CDP2SQL::Statement, and CDP2SQL::Transaction |
Public Functions
| virtual | ~HasDatabaseConnection() |
| bool | HasDBConnection() |
| bool | SetDatabase(HasDatabaseConnection &db) |
Detailed Description
Generic base class for all the database holder objects. Should not be used directly.
Member Function Documentation
[virtual] HasDatabaseConnection::~HasDatabaseConnection()
Destroys the instance of HasDatabaseConnection. The destructor is virtual.
bool HasDatabaseConnection::HasDBConnection()
Returns true if we have a database connection
bool HasDatabaseConnection::SetDatabase(HasDatabaseConnection &db)
Sets database connection from given database.
Can only set once. Returns false if already have connection.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.