#include <connection.h>
Transaction isolation constants.
virtual odbc::Connection::~Connection | ( | ) | [virtual] |
Destructor.
Closes the connection
void odbc::Connection::setAutoCommit | ( | bool | autoCommit | ) |
Sets the autocommit state of this connection.
autoCommit | true for on, false for off |
DatabaseMetaData* odbc::Connection::getMetaData | ( | ) |
Returns meta information for this connection.
Note that the returned object is 'owned' by this connection and should in no way be deleted by the caller.
Example: DatabaseMetaData* dmd = cnt->getMetaData();
Statement* odbc::Connection::createStatement | ( | ) |
Creates a non-prepared statement.
Example: std::auto_ptr<Statement> stmt = std::auto_ptr<Statement>(cnt->createStatement());
Statement* odbc::Connection::createStatement | ( | int | resultSetType, | |
int | resultSetConcurrency | |||
) |
PreparedStatement* odbc::Connection::prepareStatement | ( | const std::string & | sql | ) |
Create a prepared statement.
Example: std::auto_ptr<PreparedStatement> pstmt = std::auto_ptr<PreparedStatement>(cnt->prepareStatement(s));
sql | The string to prepare, optionally containing parameter markers (? ). |
PreparedStatement* odbc::Connection::prepareStatement | ( | const std::string & | sql, | |
int | resultSetType, | |||
int | resultSetConcurrency | |||
) |
Create a prepared statement.
Example: std::auto_ptr<PreparedStatement> pstmt = std::auto_ptr<PreparedStatement>(cnt->prepareStatement(s, x, y));
CallableStatement* odbc::Connection::prepareCall | ( | const std::string & | sql | ) |
Create a callable prepared statement.
Example: std::auto_ptr<CallableStatement> cstmt = std::auto_ptr<CallableStatement>(cnt->prepareCall(s));
sql | The string to prepare, optionally containing parameter markers for input and/or output parameters |
CallableStatement* odbc::Connection::prepareCall | ( | const std::string & | sql, | |
int | resultSetType, | |||
int | resultSetConcurrency | |||
) |
Create a callable prepared statement.
Example: std::auto_ptr<CallableStatement> cstmt = std::auto_ptr<CallableStatement>(cnt->prepareCall(s, x, y));