Package com.alibaba.druid.sql.dialect.postgresql.visitor

Examples of com.alibaba.druid.sql.dialect.postgresql.visitor.PGASTVisitor


        }

        @Override
        protected void accept0(SQLASTVisitor visitor) {
            if (visitor instanceof PGASTVisitor) {
              PGASTVisitor pgVisitor = (PGASTVisitor) visitor;

                if (pgVisitor.visit(this)) {
                    if (pgVisitor instanceof PGOutputVisitor)
                    {
                        PGOutputVisitor pgv = (PGOutputVisitor) pgVisitor;
                        pgv.print(this.rowCount.toString());
                        if (this.offset != null)
                        {
                            pgv.print(" OFFSET ");
                            pgv.print(this.offset.toString());
                        }
                    }
                    else
                    {
                        acceptChild(visitor, offset);
                        acceptChild(visitor, rowCount);
                    }
                }
                pgVisitor.endVisit(this);
            }
        }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.sql.dialect.postgresql.visitor.PGASTVisitor

Copyright © 2018 www.massapicom. 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.