Examples of WallSelectQueryContext


Examples of com.alibaba.druid.wall.spi.WallVisitorUtils.WallSelectQueryContext

        Object leftValue = left.getAttribute(EVAL_VALUE);
        Object rightValue = right.getAttributes().get(EVAL_VALUE);

        if (x.getOperator() == SQLBinaryOperator.Like) {
            if (isAlwayTrueLikePattern(x.getRight())) {
                final WallSelectQueryContext wallSelectQueryContext = WallVisitorUtils.getWallSelectQueryContext();
                if (wallSelectQueryContext != null) {
                    wallSelectQueryContext.setTrueLike(Boolean.TRUE);
                }
                x.putAttribute(EVAL_VALUE, Boolean.TRUE);
                return false;
            }
        }
View Full Code Here

Examples of com.alibaba.druid.wall.spi.WallVisitorUtils.WallSelectQueryContext

        Object leftValue = left.getAttribute(EVAL_VALUE);
        Object rightValue = right.getAttributes().get(EVAL_VALUE);

        if (x.getOperator() == SQLBinaryOperator.Like) {
            if (isAlwayTrueLikePattern(x.getRight())) {
                final WallSelectQueryContext wallSelectQueryContext = WallVisitorUtils.getWallSelectQueryContext();
                if (wallSelectQueryContext != null) {
                    wallSelectQueryContext.setTrueLike(Boolean.TRUE);
                }
                x.putAttribute(EVAL_VALUE, Boolean.TRUE);
                return false;
            }
        }
View Full Code Here

Examples of com.alibaba.druid.wall.spi.WallVisitorUtils.WallSelectQueryContext

        Object leftValue = left.getAttribute(EVAL_VALUE);
        Object rightValue = right.getAttributes().get(EVAL_VALUE);

        if (x.getOperator() == SQLBinaryOperator.Like) {
            if (isAlwayTrueLikePattern(x.getRight())) {
                final WallSelectQueryContext wallSelectQueryContext = WallVisitorUtils.getWallSelectQueryContext();
                if (wallSelectQueryContext != null) {
                    wallSelectQueryContext.setTrueLike(Boolean.TRUE);
                }
                x.putAttribute(EVAL_VALUE, Boolean.TRUE);
                return false;
            }
        }
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.