Logo Search packages:      
Sourcecode: mysql-connector-java version File versions

java.sql.Statement com::mysql::jdbc::jdbc2::optional::ConnectionWrapper::createStatement ( int  resultSetType,
int  resultSetConcurrency 
) throws SQLException [inline]

Passes call to method on physical connection instance. Notifies listeners of any caught exceptions before re-throwing to client.

See also:
java.sql.Connection::createStatement()

Definition at line 435 of file ConnectionWrapper.java.

References com::mysql::jdbc::jdbc2::optional::WrapperBase::checkAndFireConnectionError().

                                                      {
        checkClosed();

        try {
            return new StatementWrapper(this, this.mpc,
                this.mc.createStatement(resultSetType, resultSetConcurrency));
        } catch (SQLException sqlException) {
            checkAndFireConnectionError(sqlException);
        }

        return null; // we don't reach this code, compiler can't tell
    }


Generated by  Doxygen 1.6.0   Back to index