Inheritance diagram for SQLDBC::SQLDBC_Connection:
Connection to the database kernel.
This class combines the functions necesary for managing a connection to the database. If a new connection object is created, it is not connected. The connection to the database is established when a successful connect() call was performed.
Definition at line 3359 of file SQLDBC.h.
|
Cancels the running database request that is executed on the connection. For cancellation of a running SQL statement it is neccessary to call the cancel method asynchronously. Because of the asynchronous processing it is not guaranteed that the cancellation will be succeed. The returncode of the original function indicates whether the function completed or was cancelled. In case of cancelation the original function returns with the sql code -102 'SQL statement cancelled'. The the cancel methode returns with SQLDBC_OK if it has been send the cancel request to the database.
|
|
Deletes the error has been stored.
|
|
Deletes the warning stored in the SQLWarning object.
|
|
Closes the SQLDBC_Connection. Releases the database and interface runtime resources immediately instead of waiting for them to be released by the destructor. The current transaction is rolled back.
After you called this method, you are able to connect again using one of the
|
|
Commits all changes to the database session. All changes made since the previous COMMIT/ROLLBACK statement are stored, any database locks held by this SQLDBC_Connection object are released.
|
|
Closes the SQLDBC_Connection. Releases the database and interface runtime resources immediately instead of waiting for them to be released by the destructor. The current transaction is committed.
connect methods. |
|
Opens a new database session using the runtime abstraction interface. This method attaches the connection object an existing session. It is recommended that you implement the virtual method getSession and releaseSession in the Runtime Abstraction Interface.
|
|
Opens a new database session using the runtime abstraction interface. This method attaches the connection object an existing session. It is recommended that you implement the virtual method getSession and releaseSession in the Runtime Abstraction Interface.
|
|
Opens a new database session using the SQLDBC_ConnectProperties object. This method interprets all character arguments as zero-terminated ASCII strings.
|
|
Opens a new database session using the SQLDBC_ConnectProperties object. This method interpres all character arguments as zero-terminated ASCII strings. User name and password must be in userpwdEncoding code.
|
|
Opens a new database session using the SQLDBC_ConnectProperties object. For the connection options not specified, the following default values are used:
|
|
Opens a new database session using the default values for the options. The method accepts all character arguments as zero-terminated ASCII strings.
|
|
Opens a new database session using the default values for the options. This method interprets all character arguments as zero-terminated ASCII strings. User name and password must be in userpwdEncoding code.
|
|
Opens a new database session using the default values for the options.
|
|
Opens a new database session using an explicit URL and a CONNECT statement. This method should be used only for custom connections together with a custom implementation of the SQLDBC_IRuntime interface.
|
|
Creates an SQLDBC_PreparedStatement object for sending SQL statements to the database. An SQLDBC_PreparedStatement object is 'prepared' in the database server and can use binding variables for input/output parameters.
|
|
Creates an SQLDBC_Statement object for sending SQL statements to the database. SQL statements without parameters are normally executed using SQLDBC_Statement objects. Applications executing SQL statements several times or binding parameters for input and/or output must use SQLDBC_PreparedStatement objects.
|
|
Closes the SQLDBC_Connection. Releases the database and interface runtime resources immediately instead of waiting for them to be released by the destructor. No SQL statement that handles the current transaction is sent to the database, so the transaction may be implicitely rolled back by the database server.
After you called this method, you are able to connect again using one of the
|
|
Returns a reference to the ErrorHndl object.
|
|
Returns whether the connection is in AUTCOMMIT mode.
|
|
Retrieve active features of the connection. This method retrieves the active connection features of the current connection. The active connection features are basically all (explicitely or implicitely) connect properties that have been set if the database kernel can fulfill them. The method requires that a connection has been established before.
|
|
Returns the currently active date/time format.
|
|
Returns the kernel version. It will be returned in the following format: <major_release><minor_releaser><correction_level>
|
|
Returns the transaction isolation level.
|
|
Returns whether if the connection to the database was established.
|
|
Returns whether the database is an unicode database or not.
|
|
Releases an SQLDBC_PreparedStatement.
|
|
Releases an SQLDBC_Statement.
|
|
Undoes all changes made in the current transaction and releases any database locks held by this connection object.
|
|
Sets the AUTOCOMMIT mode for the connection.
|
|
Sets the SQL mode.
|
|
Sets the transaction isolation level.
|
|
Returns a reference to an SQLWarning object stored in the SQLDBC_ConnectionItem object.
|