Examples of InformixExceptionSorter


Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

import com.alibaba.druid.pool.vendor.InformixExceptionSorter;

public class InformixExceptionSorterTest extends TestCase {

    public void test_informix() throws Exception {
        InformixExceptionSorter sorter = new InformixExceptionSorter();
        Assert.assertEquals(false, sorter.isExceptionFatal(new SQLException()));

        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -710)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79716)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79730)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79734)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79735)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79736)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79756)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79757)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79758)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79759)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79760)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79788)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79811)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79812)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79836)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79837)));
        Assert.assertEquals(true, sorter.isExceptionFatal(new SQLException("", "", -79879)));
        Assert.assertEquals(false, sorter.isExceptionFatal(new SQLException("", "", 100)));
    }
View Full Code Here

Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

        if (realDriverClassName.equals(JdbcConstants.MYSQL_DRIVER)) {
            this.exceptionSorter = new MySqlExceptionSorter();
        } else if (realDriverClassName.equals(JdbcConstants.ORACLE_DRIVER)) {
            this.exceptionSorter = new OracleExceptionSorter();
        } else if (realDriverClassName.equals("com.informix.jdbc.IfxDriver")) {
            this.exceptionSorter = new InformixExceptionSorter();

        } else if (realDriverClassName.equals("com.sybase.jdbc2.jdbc.SybDriver")) {
            this.exceptionSorter = new SybaseExceptionSorter();

        } else if (realDriverClassName.equals("com.alibaba.druid.mock.MockDriver")) {
View Full Code Here

Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

        if (realDriverClassName.equals("com.mysql.jdbc.Driver")) {
            this.exceptionSorter = new MySqlExceptionSorter();
        } else if (realDriverClassName.equals("oracle.jdbc.driver.OracleDriver")) {
            this.exceptionSorter = new OracleExceptionSorter();
        } else if (realDriverClassName.equals("com.informix.jdbc.IfxDriver")) {
            this.exceptionSorter = new InformixExceptionSorter();

        } else if (realDriverClassName.equals("com.sybase.jdbc2.jdbc.SybDriver")) {
            this.exceptionSorter = new SybaseExceptionSorter();

        } else if (realDriverClassName.equals("com.alibaba.druid.mock.MockDriver")) {
View Full Code Here

Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

        if (realDriverClassName.equals(JdbcConstants.MYSQL_DRIVER)) {
            this.exceptionSorter = new MySqlExceptionSorter();
        } else if (realDriverClassName.equals(JdbcConstants.ORACLE_DRIVER)) {
            this.exceptionSorter = new OracleExceptionSorter();
        } else if (realDriverClassName.equals("com.informix.jdbc.IfxDriver")) {
            this.exceptionSorter = new InformixExceptionSorter();

        } else if (realDriverClassName.equals("com.sybase.jdbc2.jdbc.SybDriver")) {
            this.exceptionSorter = new SybaseExceptionSorter();

        } else if (realDriverClassName.equals("com.alibaba.druid.mock.MockDriver")) {
View Full Code Here

Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

            } else if (realDriverClassName.equals("com.microsoft.jdbc.sqlserver.SQLServerDriver")) {
                this.validConnectionChecker = new MSSQLValidConnectionChecker();

            } else if (realDriverClassName.equals("com.informix.jdbc.IfxDriver")) {
                this.exceptionSorter = new InformixExceptionSorter();

            } else if (realDriverClassName.equals("com.sybase.jdbc2.jdbc.SybDriver")) {
                this.exceptionSorter = new SybaseExceptionSorter();

            } else if (realDriverClassName.equals("com.alibaba.druid.mock.MockDriver")) {
View Full Code Here

Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

        if (realDriverClassName.equals(JdbcConstants.MYSQL_DRIVER)) {
            this.exceptionSorter = new MySqlExceptionSorter();
        } else if (realDriverClassName.equals(JdbcConstants.ORACLE_DRIVER)) {
            this.exceptionSorter = new OracleExceptionSorter();
        } else if (realDriverClassName.equals("com.informix.jdbc.IfxDriver")) {
            this.exceptionSorter = new InformixExceptionSorter();

        } else if (realDriverClassName.equals("com.sybase.jdbc2.jdbc.SybDriver")) {
            this.exceptionSorter = new SybaseExceptionSorter();

        } else if (realDriverClassName.equals("com.alibaba.druid.mock.MockDriver")) {
View Full Code Here

Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

        if (realDriverClassName.equals("com.mysql.jdbc.Driver")) {
            this.exceptionSorter = new MySqlExceptionSorter();
        } else if (realDriverClassName.equals("oracle.jdbc.driver.OracleDriver")) {
            this.exceptionSorter = new OracleExceptionSorter();
        } else if (realDriverClassName.equals("com.informix.jdbc.IfxDriver")) {
            this.exceptionSorter = new InformixExceptionSorter();

        } else if (realDriverClassName.equals("com.sybase.jdbc2.jdbc.SybDriver")) {
            this.exceptionSorter = new SybaseExceptionSorter();

        } else if (realDriverClassName.equals("com.alibaba.druid.mock.MockDriver")) {
View Full Code Here

Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

        if (realDriverClassName.equals(JdbcConstants.MYSQL_DRIVER)) {
            this.exceptionSorter = new MySqlExceptionSorter();
        } else if (realDriverClassName.equals(JdbcConstants.ORACLE_DRIVER)) {
            this.exceptionSorter = new OracleExceptionSorter();
        } else if (realDriverClassName.equals("com.informix.jdbc.IfxDriver")) {
            this.exceptionSorter = new InformixExceptionSorter();

        } else if (realDriverClassName.equals("com.sybase.jdbc2.jdbc.SybDriver")) {
            this.exceptionSorter = new SybaseExceptionSorter();

        } else if (realDriverClassName.equals("com.alibaba.druid.mock.MockDriver")) {
View Full Code Here

Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

        if (realDriverClassName.equals("com.mysql.jdbc.Driver")) {
            this.exceptionSorter = new MySqlExceptionSorter();
        } else if (realDriverClassName.equals("oracle.jdbc.driver.OracleDriver")) {
            this.exceptionSorter = new OracleExceptionSorter();
        } else if (realDriverClassName.equals("com.informix.jdbc.IfxDriver")) {
            this.exceptionSorter = new InformixExceptionSorter();

        } else if (realDriverClassName.equals("com.sybase.jdbc2.jdbc.SybDriver")) {
            this.exceptionSorter = new SybaseExceptionSorter();

        } else if (realDriverClassName.equals("com.alibaba.druid.mock.MockDriver")) {
View Full Code Here

Examples of com.alibaba.druid.pool.vendor.InformixExceptionSorter

            } else if (realDriverClassName.equals("com.microsoft.jdbc.sqlserver.SQLServerDriver")) {
                this.validConnectionChecker = new MSSQLValidConnectionChecker();

            } else if (realDriverClassName.equals("com.informix.jdbc.IfxDriver")) {
                this.exceptionSorter = new InformixExceptionSorter();

            } else if (realDriverClassName.equals("com.sybase.jdbc2.jdbc.SybDriver")) {
                this.exceptionSorter = new SybaseExceptionSorter();

            } else if (realDriverClassName.equals("com.alibaba.druid.mock.MockDriver")) {
View Full Code Here
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.