10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Connection Class<br />

Connection Class<br />

The Connection class represents a connection with a specific database. Within the context<br />

of a connection, SQL statements are executed and results are returned.<br />

To create a connection, use the syntax:<br />

Connection();<br />

Summary of Connection Methods<br />

Table 8–6 Connection Methods<br />

Method Summary<br />

changePassword() on page 8-39 Change the password for the current user.<br />

commit() on page 8-39 Commit changes made since the previous commit or rollback<br />

and release any database locks held by the session.<br />

createStatement() on page 8-39 Create a Statement object to execute SQL statements.<br />

flushCache() on page 8-40 Flush the object cache associated with the connection.<br />

getClientCharSet() on page 8-40 Return the default client character set.<br />

getClientNCHARCharSet() on Return the default client NCHAR character set.<br />

page 8-40<br />

getMetaData() on page 8-40 Return the metadata for an object accessible from the<br />

connection.<br />

getOCIServer() on page 8-41 Return the OCI server context associated with the<br />

connection.<br />

getOCIServiceContext() on page 8-42 Return the OCI service context associated with the<br />

connection.<br />

getOCISession() on page 8-42 Return the OCI session context associated with the<br />

connection.<br />

rollback() on page 8-42 Roll back all changes made since the previous commit or<br />

rollback and release any database locks held by the session.<br />

terminateStatement() on page 8-42 Close a Statement object and free all resources associated<br />

with it.<br />

8-38 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!