Package net.sf.soapjdbc.mysql

Source Code of net.sf.soapjdbc.mysql.Connection

package net.sf.soapjdbc.mysql;

import java.sql.CallableStatement;
import java.sql.DatabaseMetaData;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Savepoint;
import java.sql.Statement;
import java.util.Map;

import net.sf.soapjdbc.SoapJdbcConnection;
import net.sf.soapjdbc.SoapJdbcPreparedStatement;
import net.sf.soapjdbc.SoapJdbcStatement;

public class Connection implements java.sql.Connection {

    private SoapJdbcConnection mWrappedConnection;
   
    public Connection( SoapJdbcConnection wrappedConnection ) {
        mWrappedConnection = wrappedConnection;

    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#clearWarnings()
     */
    public void clearWarnings() throws SQLException {
        mWrappedConnection.clearWarnings();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#close()
     */
    public void close() throws SQLException {
        mWrappedConnection.close();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#commit()
     */
    public void commit() throws SQLException {
        mWrappedConnection.commit();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#createStatement()
     */
    public Statement createStatement() throws SQLException {
        return mWrappedConnection.createStatement();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#createStatement(int, int, int)
     */
    public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
        return mWrappedConnection.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#createStatement(int, int)
     */
    public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
        return mWrappedConnection.createStatement(resultSetType, resultSetConcurrency);
    }

    /* (Kein Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    public boolean equals(Object obj) {
        return mWrappedConnection.equals(obj);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#getAutoCommit()
     */
    public boolean getAutoCommit() throws SQLException {
        return mWrappedConnection.getAutoCommit();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#getCatalog()
     */
    public String getCatalog() throws SQLException {
        return mWrappedConnection.getCatalog();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#getHoldability()
     */
    public int getHoldability() throws SQLException {
        return mWrappedConnection.getHoldability();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#getMetaData()
     */
    public DatabaseMetaData getMetaData() throws SQLException {
        return mWrappedConnection.getMetaData();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#getTransactionIsolation()
     */
    public int getTransactionIsolation() throws SQLException {
        return mWrappedConnection.getTransactionIsolation();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#getTypeMap()
     */
    public Map<String, Class<?>> getTypeMap() throws SQLException {
        return mWrappedConnection.getTypeMap();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#getWarnings()
     */
    public SQLWarning getWarnings() throws SQLException {
        return mWrappedConnection.getWarnings();
    }

    /* (Kein Javadoc)
     * @see java.lang.Object#hashCode()
     */
    public int hashCode() {
        return mWrappedConnection.hashCode();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#isClosed()
     */
    public boolean isClosed() {
        return mWrappedConnection.isClosed();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#isReadOnly()
     */
    public boolean isReadOnly() throws SQLException {
        return mWrappedConnection.isReadOnly();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#nativeSQL(java.lang.String)
     */
    public String nativeSQL(String sql) throws SQLException {
        return mWrappedConnection.nativeSQL(sql);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#prepareCall(java.lang.String, int, int, int)
     */
    public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
        return mWrappedConnection.prepareCall(sql, resultSetType, resultSetConcurrency, resultSetHoldability);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#prepareCall(java.lang.String, int, int)
     */
    public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
        return mWrappedConnection.prepareCall(sql, resultSetType, resultSetConcurrency);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#prepareCall(java.lang.String)
     */
    public CallableStatement prepareCall(String sql) throws SQLException {
        return mWrappedConnection.prepareCall(sql);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#prepareStatement(java.lang.String, int, int, int)
     */
    public java.sql.PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
        return mWrappedConnection.prepareStatement(sql, resultSetType, resultSetConcurrency, resultSetHoldability);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#prepareStatement(java.lang.String, int, int)
     */
    public java.sql.PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
        return mWrappedConnection.prepareStatement(sql, resultSetType, resultSetConcurrency);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#prepareStatement(java.lang.String, int)
     */
    public java.sql.PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
        return mWrappedConnection.prepareStatement(sql, autoGeneratedKeys);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#prepareStatement(java.lang.String, int[])
     */
    public java.sql.PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
        return mWrappedConnection.prepareStatement(sql, columnIndexes);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#prepareStatement(java.lang.String, java.lang.String[])
     */
    public java.sql.PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
        return mWrappedConnection.prepareStatement(sql, columnNames);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#prepareStatement(java.lang.String)
     */
    public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException {
        return mWrappedConnection.prepareStatement(sql);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#releaseSavepoint(java.sql.Savepoint)
     */
    public void releaseSavepoint(Savepoint savepoint) throws SQLException {
        mWrappedConnection.releaseSavepoint(savepoint);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#rollback()
     */
    public void rollback() throws SQLException {
        mWrappedConnection.rollback();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#rollback(java.sql.Savepoint)
     */
    public void rollback(Savepoint savepoint) throws SQLException {
        mWrappedConnection.rollback(savepoint);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#setAutoCommit(boolean)
     */
    public void setAutoCommit(boolean autoCommit) throws SQLException {
        mWrappedConnection.setAutoCommit(autoCommit);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#setCatalog(java.lang.String)
     */
    public void setCatalog(String catalog) throws SQLException {
        mWrappedConnection.setCatalog(catalog);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#setHoldability(int)
     */
    public void setHoldability(int holdability) throws SQLException {
        mWrappedConnection.setHoldability(holdability);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#setReadOnly(boolean)
     */
    public void setReadOnly(boolean readOnly) throws SQLException {
        mWrappedConnection.setReadOnly(readOnly);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#setSavepoint()
     */
    public Savepoint setSavepoint() throws SQLException {
        return mWrappedConnection.setSavepoint();
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#setSavepoint(java.lang.String)
     */
    public Savepoint setSavepoint(String name) throws SQLException {
        return mWrappedConnection.setSavepoint(name);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#setTransactionIsolation(int)
     */
    public void setTransactionIsolation(int level) throws SQLException {
        mWrappedConnection.setTransactionIsolation(level);
    }

    /* (Kein Javadoc)
     * @see de.battleforge.jdo.jdbc.SoapJdbcConnection#setTypeMap(java.util.Map)
     */
    public void setTypeMap(Map<String, Class<?>> typeMap) throws SQLException {
        mWrappedConnection.setTypeMap(typeMap);
    }

    /* (Kein Javadoc)
     * @see java.lang.Object#toString()
     */
    public String toString() {
        return mWrappedConnection.toString();
    }

    protected String getCharsetNameForIndex(int i) {
        return null;
       
    }

    public boolean versionMeetsMinimum(int i, int j, int k) {
        //mWrappedConnection.;
        return false;
    }

    protected String getEncoding() {
        return null;
       
    }

    public boolean getUseSqlStateCodes() {
        return false;
       
    }

    public String getCharacterSetMetadata() {
        return "UTF-8";
       
    }

    public SingleByteCharsetConverter getCharsetConverter(String encoding) {
        return null;
       
    }

    public boolean getUseUnicode() {
        return true;
       
    }

    public boolean getTinyInt1isBit() {
        return false;
       
    }

    public boolean getTransformedBitIsBoolean() {
        return false;
       
    }

    public int getMaxBytesPerChar(String characterSet) {
        return 1;
       
    }

    public boolean getCapitalizeTypeNames() {
        return false;
       
    }

    public boolean supportsQuotedIdentifiers() {
        return true;
       
    }

    public boolean useAnsiQuotedIdentifiers() {
        return false;
    }

    public Statement getMetadataSafeStatement() {
        return new SoapJdbcStatement(mWrappedConnection);
       
    }

    public String getServerVersion() throws SQLException {
        return mWrappedConnection.getMetaData().getDatabaseProductVersion();
       
    }

    public int getServerMinorVersion() throws SQLException {
        return mWrappedConnection.getMetaData().getDatabaseMinorVersion();
       
    }

    public int getServerMajorVersion() throws SQLException {
        return mWrappedConnection.getMetaData().getDatabaseMajorVersion();

    }

    public boolean getNullNamePatternMatchesAll() {
        return true;
       
    }

    public boolean getUseHostsInPrivileges() {
        return false;
       
    }

    public boolean isNoBackslashEscapesSet() {
        return true;
       
    }

    public boolean lowerCaseTableNames() {
        return true;
       
    }

    public PreparedStatement clientPrepareStatement(String string) {
        return new PreparedStatement( new SoapJdbcPreparedStatement(mWrappedConnection, string) );

    }

    public String getURL() throws SQLException {
        return mWrappedConnection.getMetaData().getURL();
       
    }

    public String getUser() throws SQLException {
        return mWrappedConnection.getMetaData().getUserName();
    }

    public boolean getEmulateLocators() {
        return true;
       
    }

    public boolean getOverrideSupportsIntegrityEnhancementFacility() {
        return false;
       
    }

    public boolean supportsIsolationLevel() {
        return false;
       
    }

    public boolean supportsTransactions() {
        return false;
       
    }

    public boolean getNullCatalogMeansCurrent() {
        return true;
       
    }

    protected SoapJdbcConnection getWrappedConnection() {
        return mWrappedConnection;
       
    }
}
TOP

Related Classes of net.sf.soapjdbc.mysql.Connection

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.