getBackEnd
method,
which
returns the pointer to the actual backend object that implements the
given functionality. The knowledge of the actual backend allows the
client application to get access to all low-level details that are
involved.
BLOB b(sql); |
BLOB
object and uses two calls
to the getBackEnd
function (on both the Session
and the BLOB
objects) to get access to the actual backend
objects. Assuming that it is the "oracle"
backend which
is in use, the downcasts allow to access all relevant low-level handles
and use them in the call
to the OCILobDisableBuffering
function. This way, the
BLOB handle was configured in a way that the SOCI library itself would
not allow.
RowID rid(sql); // sql is a Session object |
RowID
("something" that
identifies the
row in the table) from the table and uses the getBackEnd
function to
extract the actual object that implements this functionality. Assuming
that it is the "postgresql"
backend which is in use, the
downcast is
performed to use the PostgreSQLRowIDBackEnd
interface to
get the actual
OID value that is a physical, low-level implementation of row
identifier on PostgreSQL databases.#include
the appropriate backend's header file.Previous
(Statements, procedures and transactions) |
Next (Backend reference) |