Examples of WallTableStat


Examples of com.alibaba.druid.wall.WallTableStat

    }
   
    public void testOracle() throws Exception {
        WallProvider provider = new OracleWallProvider();
        Assert.assertTrue(provider.checkValid(sql));
        WallTableStat tableStat =  provider.getTableStat("t");
        Assert.assertEquals(1, tableStat.getUpdateCount());
    }
View Full Code Here

Examples of com.alibaba.druid.wall.WallTableStat

    }
   
    public void testPG() throws Exception {
        WallProvider provider = new PGWallProvider();
        Assert.assertTrue(provider.checkValid(sql));
        WallTableStat tableStat =  provider.getTableStat("t");
        Assert.assertEquals(1, tableStat.getUpdateCount());
    }
View Full Code Here

Examples of com.alibaba.druid.wall.WallTableStat

    }
   
    public void testSQLServer() throws Exception {
        WallProvider provider = new SQLServerWallProvider();
        Assert.assertTrue(provider.checkValid(sql));
        WallTableStat tableStat =  provider.getTableStat("t");
        Assert.assertEquals(1, tableStat.getUpdateCount());
    }
View Full Code Here

Examples of com.alibaba.druid.wall.WallTableStat

        WallSqlStat whiteStat_1 = provider.getSqlStat(whiteSql_1);
        WallSqlStat whiteStat_2 = provider.getSqlStat(whiteSql_2);
        Assert.assertSame(whiteStat_1, whiteStat_2);
        provider.addFetchRowCount(whiteStat_1, 3);
        WallTableStat wallTableStat = provider.getTableStat("t1");
        Assert.assertNotNull(wallTableStat);
        Assert.assertEquals(3, wallTableStat.getFetchRowCount());

        Assert.assertTrue(provider.checkValid(whiteSql_1));
        Assert.assertTrue(provider.checkValid(whiteSql_2));
       
        Assert.assertFalse(provider.checkValid(blackSql_1));
View Full Code Here

Examples of com.alibaba.druid.wall.WallTableStat

    private String sql = "insert into t (fid, fname) values (?, ?)";

    public void testMySql() throws Exception {
        WallProvider provider = new MySqlWallProvider();
        Assert.assertTrue(provider.checkValid(sql));
        WallTableStat tableStat =  provider.getTableStat("t");
        Assert.assertEquals(1, tableStat.getInsertCount());
    }
View Full Code Here

Examples of com.alibaba.druid.wall.WallTableStat

    }
   
    public void testOracle() throws Exception {
        WallProvider provider = new OracleWallProvider();
        Assert.assertTrue(provider.checkValid(sql));
        WallTableStat tableStat =  provider.getTableStat("t");
        Assert.assertEquals(1, tableStat.getInsertCount());
    }
View Full Code Here

Examples of com.alibaba.druid.wall.WallTableStat

    }
   
    public void testPG() throws Exception {
        WallProvider provider = new PGWallProvider();
        Assert.assertTrue(provider.checkValid(sql));
        WallTableStat tableStat =  provider.getTableStat("t");
        Assert.assertEquals(1, tableStat.getInsertCount());
    }
View Full Code Here

Examples of com.alibaba.druid.wall.WallTableStat

    }
   
    public void testSQLServer() throws Exception {
        WallProvider provider = new SQLServerWallProvider();
        Assert.assertTrue(provider.checkValid(sql));
        WallTableStat tableStat =  provider.getTableStat("t");
        Assert.assertEquals(1, tableStat.getInsertCount());
    }
View Full Code Here

Examples of com.alibaba.druid.wall.WallTableStat

    public void testMySql() throws Exception {
        WallProvider provider = new MySqlWallProvider();
        provider.getConfig().setCreateTableAllow(true);
       
        Assert.assertTrue(provider.checkValid(sql));
        WallTableStat tableStat =  provider.getTableStat("t");
        Assert.assertEquals(1, tableStat.getCreateCount());
    }
View Full Code Here

Examples of com.alibaba.druid.wall.WallTableStat

    public void testOracle() throws Exception {
        WallProvider provider = new OracleWallProvider();
        provider.getConfig().setCreateTableAllow(true);
       
        Assert.assertTrue(provider.checkValid(sql));
        WallTableStat tableStat =  provider.getTableStat("t");
        Assert.assertEquals(1, tableStat.getCreateCount());
    }
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.