Merging in Mimir tweaks

master
Oliver Kennedy 2015-05-25 16:44:07 -04:00
parent 7ce66c0cd6
commit 2eecfde84a
39 changed files with 793 additions and 791 deletions

View File

@ -24,6 +24,7 @@ package net.sf.jsqlparser.expression;
import java.util.List;
import net.sf.jsqlparser.expression.*;
import net.sf.jsqlparser.statement.select.PlainSelect;
/**
@ -61,7 +62,7 @@ public class CaseExpression implements Expression {
private Expression switchExpression;
private List whenClauses;
private List<WhenClause> whenClauses;
private Expression elseExpression;
@ -100,14 +101,14 @@ public class CaseExpression implements Expression {
/**
* @return Returns the whenClauses.
*/
public List getWhenClauses() {
public List<WhenClause> getWhenClauses() {
return whenClauses;
}
/**
* @param whenClauses The whenClauses to set.
*/
public void setWhenClauses(List whenClauses) {
public void setWhenClauses(List<WhenClause> whenClauses) {
this.whenClauses = whenClauses;
}

View File

@ -1,42 +1,42 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class Addition extends BinaryExpression {
public Addition(){ super(); }
public Addition(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "+";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "+";
}
}

View File

@ -1,42 +1,42 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class BitwiseAnd extends BinaryExpression {
public BitwiseAnd(){ super(); }
public BitwiseAnd(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "&";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "&";
}
}

View File

@ -1,42 +1,42 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class BitwiseOr extends BinaryExpression {
public BitwiseOr(){ super(); }
public BitwiseOr(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "|";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "|";
}
}

View File

@ -1,42 +1,42 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class BitwiseXor extends BinaryExpression {
public BitwiseXor(){ super(); }
public BitwiseXor(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "^";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "^";
}
}

View File

@ -1,20 +1,20 @@
package net.sf.jsqlparser.expression.operators.arithmetic;
package net.sf.jsqlparser.expression.operators.arithmetic;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class Concat extends BinaryExpression {
public Concat(){ super(); }
public Concat(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "||";
}
}
public Concat(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "||";
}
}

View File

@ -1,42 +1,42 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class Division extends BinaryExpression {
public Division(){ super(); }
public Division(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "/";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "/";
}
}

View File

@ -1,41 +1,41 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class Multiplication extends BinaryExpression {
public Multiplication(){ super(); }
public Multiplication(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "*";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "*";
}
}

View File

@ -1,42 +1,42 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class Subtraction extends BinaryExpression {
public Subtraction(){ super(); }
public Subtraction(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "-";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "-";
}
}

View File

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<editmodel:ObjectDiagramEditModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:editmodel="editmodel.xmi" metadata="nsuml-1.4"/>

View File

@ -1,43 +1,43 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.conditional;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.conditional;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class AndExpression extends BinaryExpression {
public AndExpression(){ super(); }
public AndExpression(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "AND";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "AND";
}
}

View File

@ -1,43 +1,43 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.conditional;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.conditional;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class OrExpression extends BinaryExpression {
public OrExpression(){ super(); }
public OrExpression(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "OR";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "OR";
}
}

View File

@ -1,42 +1,42 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class EqualsTo extends BinaryExpression {
public EqualsTo(){ super(); }
public EqualsTo(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "=";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "=";
}
}

View File

@ -24,26 +24,27 @@
import java.util.List;
import net.sf.jsqlparser.expression.*;
import net.sf.jsqlparser.statement.select.PlainSelect;
/**
* A list of expressions, as in SELECT A FROM TAB WHERE B IN (expr1,expr2,expr3)
*/
public class ExpressionList implements ItemsList {
private List expressions;
private List<Expression> expressions;
public ExpressionList() {
}
public ExpressionList(List expressions) {
public ExpressionList(List<Expression> expressions) {
this.expressions = expressions;
}
public List getExpressions() {
public List<Expression> getExpressions() {
return expressions;
}
public void setExpressions(List list) {
public void setExpressions(List<Expression> list) {
expressions = list;
}

View File

@ -1,42 +1,42 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class GreaterThan extends BinaryExpression {
public GreaterThan(){ super(); }
public GreaterThan(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return ">";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return ">";
}
}

View File

@ -1,42 +1,42 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class GreaterThanEquals extends BinaryExpression {
public GreaterThanEquals(){ super(); }
public GreaterThanEquals(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return ">=";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return ">=";
}
}

View File

@ -1,43 +1,43 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class MinorThan extends BinaryExpression {
public MinorThan(){ super(); }
public MinorThan(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "<";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "<";
}
}

View File

@ -1,43 +1,43 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class MinorThanEquals extends BinaryExpression {
public MinorThanEquals(){ super(); }
public MinorThanEquals(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "<=";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "<=";
}
}

View File

@ -1,43 +1,43 @@
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.relational;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class NotEqualsTo extends BinaryExpression {
public NotEqualsTo(){ super(); }
public NotEqualsTo(Expression lhs, Expression rhs){ super(lhs, rhs); }
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "<>";
}
}
public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "<>";
}
}

View File

@ -1,24 +1,24 @@
/* Generated By:JavaCC: Do not edit this line. CCJSqlParser.java */
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
@ -99,8 +99,8 @@ import net.sf.jsqlparser.statement.select.WithItem;
import net.sf.jsqlparser.statement.truncate.Truncate;
import net.sf.jsqlparser.statement.update.Update;
/**
* The parser generated by JavaCC
/**
* The parser generated by JavaCC
*/
public class CCJSqlParser implements CCJSqlParserConstants {

View File

@ -1,24 +1,24 @@
/* Generated By:JavaCC: Do not edit this line. CCJSqlParserConstants.java */
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/

View File

@ -1,24 +1,24 @@
/* Generated By:JavaCC: Do not edit this line. CCJSqlParserTokenManager.java */
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/

View File

@ -1,25 +1,25 @@
/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 5.0 */
/* JavaCCOptions:KEEP_LINE_COL=null */
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/

View File

@ -1,25 +1,25 @@
/* Generated By:JavaCC: Do not edit this line. SimpleCharStream.java Version 5.0 */
/* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/

View File

@ -1,25 +1,25 @@
/* Generated By:JavaCC: Do not edit this line. Token.java Version 5.0 */
/* JavaCCOptions:TOKEN_EXTENDS=,KEEP_LINE_COL=null,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/

View File

@ -1,25 +1,25 @@
/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 5.0 */
/* JavaCCOptions: */
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
/* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/

View File

@ -8,9 +8,9 @@ import net.sf.jsqlparser.statement.select.PlainSelect;
public class ColDataType {
private String dataType;
private List argumentsStringList;
private List<String> argumentsStringList;
public List getArgumentsStringList() {
public List<String> getArgumentsStringList() {
return argumentsStringList;
}
@ -18,7 +18,7 @@ public class ColDataType {
return dataType;
}
public void setArgumentsStringList(List list) {
public void setArgumentsStringList(List<String> list) {
argumentsStringList = list;
}

View File

@ -14,17 +14,17 @@ import net.sf.jsqlparser.statement.select.PlainSelect;
public class ColumnDefinition {
private String columnName;
private ColDataType colDataType;
private List columnSpecStrings;
private List<String> columnSpecStrings;
/**
* A list of strings of every word after the datatype of the column.<br>
* Example ("NOT", "NULL")
*/
public List getColumnSpecStrings() {
public List<String> getColumnSpecStrings() {
return columnSpecStrings;
}
public void setColumnSpecStrings(List list) {
public void setColumnSpecStrings(List<String> list) {
columnSpecStrings = list;
}

View File

@ -13,9 +13,9 @@ import net.sf.jsqlparser.statement.select.PlainSelect;
public class CreateTable implements Statement {
private Table table;
private List tableOptionsStrings;
private List columnDefinitions;
private List indexes;
private List<String> tableOptionsStrings;
private List<ColumnDefinition> columnDefinitions;
private List<Index> indexes;
public void accept(StatementVisitor statementVisitor) {
statementVisitor.visit(this);
@ -35,22 +35,22 @@ public class CreateTable implements Statement {
/**
* A list of {@link ColumnDefinition}s of this table.
*/
public List getColumnDefinitions() {
public List<ColumnDefinition> getColumnDefinitions() {
return columnDefinitions;
}
public void setColumnDefinitions(List list) {
public void setColumnDefinitions(List<ColumnDefinition> list) {
columnDefinitions = list;
}
/**
* A list of options (as simple strings) of this table definition, as ("TYPE", "=", "MYISAM")
*/
public List getTableOptionsStrings() {
public List<String> getTableOptionsStrings() {
return tableOptionsStrings;
}
public void setTableOptionsStrings(List list) {
public void setTableOptionsStrings(List<String> list) {
tableOptionsStrings = list;
}
@ -58,11 +58,11 @@ public class CreateTable implements Statement {
* A list of {@link Index}es (for example "PRIMARY KEY") of this table.<br>
* Indexes created with column definitions (as in mycol INT PRIMARY KEY) are not inserted into this list.
*/
public List getIndexes() {
public List<Index> getIndexes() {
return indexes;
}
public void setIndexes(List list) {
public void setIndexes(List<Index> list) {
indexes = list;
}

View File

@ -10,13 +10,13 @@ import net.sf.jsqlparser.statement.select.PlainSelect;
public class Index {
private String type;
private List columnsNames;
private List<String> columnsNames;
private String name;
/**
* A list of strings of all the columns regarding this index
*/
public List getColumnsNames() {
public List<String> getColumnsNames() {
return columnsNames;
}
@ -31,7 +31,7 @@ public class Index {
return type;
}
public void setColumnsNames(List list) {
public void setColumnsNames(List<String> list) {
columnsNames = list;
}

View File

@ -25,7 +25,7 @@ package net.sf.jsqlparser.statement.insert;
import java.util.List;
import net.sf.jsqlparser.expression.operators.relational.ItemsList;
import net.sf.jsqlparser.schema.Table;
import net.sf.jsqlparser.schema.*;
import net.sf.jsqlparser.statement.Statement;
import net.sf.jsqlparser.statement.StatementVisitor;
import net.sf.jsqlparser.statement.select.PlainSelect;
@ -37,7 +37,7 @@ import net.sf.jsqlparser.statement.select.PlainSelect;
*/
public class Insert implements Statement {
private Table table;
private List columns;
private List<Column> columns;
private ItemsList itemsList;
private boolean useValues = true;
@ -57,11 +57,11 @@ public class Insert implements Statement {
* Get the columns (found in "INSERT INTO (col1,col2..) [...]" )
* @return a list of {@link net.sf.jsqlparser.schema.Column}
*/
public List getColumns() {
public List<Column> getColumns() {
return columns;
}
public void setColumns(List list) {
public void setColumns(List<Column> list) {
columns = list;
}

View File

@ -24,8 +24,9 @@ package net.sf.jsqlparser.statement.replace;
import java.util.List;
import net.sf.jsqlparser.expression.*;
import net.sf.jsqlparser.expression.operators.relational.ItemsList;
import net.sf.jsqlparser.schema.Table;
import net.sf.jsqlparser.schema.*;
import net.sf.jsqlparser.statement.Statement;
import net.sf.jsqlparser.statement.StatementVisitor;
import net.sf.jsqlparser.statement.select.PlainSelect;
@ -36,9 +37,9 @@ import net.sf.jsqlparser.statement.select.SubSelect;
*/
public class Replace implements Statement {
private Table table;
private List columns;
private List<Column> columns;
private ItemsList itemsList;
private List expressions;
private List<Expression> expressions;
private boolean useValues = true;
public void accept(StatementVisitor statementVisitor) {
@ -57,7 +58,7 @@ public class Replace implements Statement {
* A list of {@link net.sf.jsqlparser.schema.Column}s either from a "REPLACE mytab (col1, col2) [...]" or a "REPLACE mytab SET col1=exp1, col2=exp2".
* @return a list of {@link net.sf.jsqlparser.schema.Column}s
*/
public List getColumns() {
public List<Column> getColumns() {
return columns;
}
@ -71,7 +72,7 @@ public class Replace implements Statement {
}
public void setColumns(List list) {
public void setColumns(List<Column> list) {
columns = list;
}
@ -83,11 +84,11 @@ public class Replace implements Statement {
* A list of {@link net.sf.jsqlparser.expression.Expression}s (from a "REPLACE mytab SET col1=exp1, col2=exp2"). <br>
* it is null in case of a "REPLACE mytab (col1, col2) [...]"
*/
public List getExpressions() {
public List<Expression> getExpressions() {
return expressions;
}
public void setExpressions(List list) {
public void setExpressions(List<Expression> list) {
expressions = list;
}

View File

@ -6,17 +6,17 @@ import java.util.List;
* A DISTINCT [ON (expression, ...)] clause
*/
public class Distinct {
private List onSelectItems;
private List<SelectExpressionItem> onSelectItems;
/**
* A list of {@link SelectItem}s expressions, as in "select DISTINCT ON (a,b,c) a,b FROM..."
* @return a list of {@link SelectItem}s expressions
*/
public List getOnSelectItems() {
public List<SelectExpressionItem> getOnSelectItems() {
return onSelectItems;
}
public void setOnSelectItems(List list) {
public void setOnSelectItems(List<SelectExpressionItem> list) {
onSelectItems = list;
}

View File

@ -24,6 +24,7 @@ package net.sf.jsqlparser.statement.select;
import java.util.List;
import net.sf.jsqlparser.schema.*;
import net.sf.jsqlparser.expression.Expression;
/**
@ -39,7 +40,7 @@ public class Join {
private boolean simple = false;
private FromItem rightItem;
private Expression onExpression;
private List usingColumns;
private List<Column> usingColumns;
/**
* Whether is a tab1,tab2 join
@ -149,11 +150,11 @@ public class Join {
/**
* Returns the "USING" list of {@link net.sf.jsqlparser.schema.Column}s (if any)
*/
public List getUsingColumns() {
public List<Column> getUsingColumns() {
return usingColumns;
}
public void setUsingColumns(List list) {
public void setUsingColumns(List<Column> list) {
usingColumns = list;
}

View File

@ -26,7 +26,7 @@ import java.util.Iterator;
import java.util.List;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.schema.Table;
import net.sf.jsqlparser.schema.*;
/**
*/
@ -35,13 +35,13 @@ import net.sf.jsqlparser.schema.Table;
*/
public class PlainSelect implements SelectBody {
private Distinct distinct = null;
private List selectItems;
private List<SelectItem> selectItems;
private Table into;
private FromItem fromItem;
private List joins;
private List<Join> joins;
private Expression where;
private List groupByColumnReferences;
private List orderByElements;
private List<Column> groupByColumnReferences;
private List<OrderByElement> orderByElements;
private Expression having;
private Limit limit;
private Top top;
@ -64,7 +64,7 @@ public class PlainSelect implements SelectBody {
* The {@link SelectItem}s in this query (for example the A,B,C in "SELECT A,B,C")
* @return a list of {@link SelectItem}s
*/
public List getSelectItems() {
public List<SelectItem> getSelectItems() {
return selectItems;
}
@ -81,7 +81,7 @@ public class PlainSelect implements SelectBody {
}
public void setSelectItems(List list) {
public void setSelectItems(List<SelectItem> list) {
selectItems = list;
}
@ -94,11 +94,11 @@ public class PlainSelect implements SelectBody {
* The list of {@link Join}s
* @return the list of {@link Join}s
*/
public List getJoins() {
public List<Join> getJoins() {
return joins;
}
public void setJoins(List list) {
public void setJoins(List<Join> list) {
joins = list;
}
@ -106,11 +106,11 @@ public class PlainSelect implements SelectBody {
selectVisitor.visit(this);
}
public List getOrderByElements() {
public List<OrderByElement> getOrderByElements() {
return orderByElements;
}
public void setOrderByElements(List orderByElements) {
public void setOrderByElements(List<OrderByElement> orderByElements) {
this.orderByElements = orderByElements;
}
@ -151,11 +151,11 @@ public class PlainSelect implements SelectBody {
* It is null in case there is no GROUP BY clause
* @return a list of {@link Expression}s
*/
public List getGroupByColumnReferences() {
public List<Column> getGroupByColumnReferences() {
return groupByColumnReferences;
}
public void setGroupByColumnReferences(List list) {
public void setGroupByColumnReferences(List<Column> list) {
groupByColumnReferences = list;
}
@ -190,7 +190,7 @@ public class PlainSelect implements SelectBody {
}
public static String orderByToString(List orderByElements) {
public static String orderByToString(List<OrderByElement> orderByElements) {
return getFormatedList(orderByElements, "ORDER BY");
}

View File

@ -30,7 +30,7 @@ import net.sf.jsqlparser.statement.StatementVisitor;
public class Select implements Statement {
private SelectBody selectBody;
private List withItemsList;
private List<WithItem> withItemsList;
public void accept(StatementVisitor statementVisitor) {
statementVisitor.visit(this);
@ -48,7 +48,7 @@ public class Select implements Statement {
StringBuffer retval = new StringBuffer();
if (withItemsList != null && !withItemsList.isEmpty()) {
retval.append("WITH ");
for (Iterator iter = withItemsList.iterator(); iter.hasNext();) {
for (Iterator<WithItem> iter = withItemsList.iterator(); iter.hasNext();) {
WithItem withItem = (WithItem)iter.next();
retval.append(withItem);
if (iter.hasNext())
@ -60,11 +60,11 @@ public class Select implements Statement {
return retval.toString();
}
public List getWithItemsList() {
public List<WithItem> getWithItemsList() {
return withItemsList;
}
public void setWithItemsList(List withItemsList) {
public void setWithItemsList(List<WithItem> withItemsList) {
this.withItemsList = withItemsList;
}
}

View File

@ -28,8 +28,8 @@ import java.util.List;
*/
public class Union implements SelectBody {
private List plainSelects;
private List orderByElements;
private List<PlainSelect> plainSelects;
private List<OrderByElement> orderByElements;
private Limit limit;
private boolean distinct;
private boolean all;
@ -39,7 +39,7 @@ public class Union implements SelectBody {
selectVisitor.visit(this);
}
public List getOrderByElements() {
public List<OrderByElement> getOrderByElements() {
return orderByElements;
}
@ -47,15 +47,15 @@ public class Union implements SelectBody {
* the list of {@link PlainSelect}s in this UNION
* @return the list of {@link PlainSelect}s
*/
public List getPlainSelects() {
public List<PlainSelect> getPlainSelects() {
return plainSelects;
}
public void setOrderByElements(List orderByElements) {
public void setOrderByElements(List<OrderByElement> orderByElements) {
this.orderByElements = orderByElements;
}
public void setPlainSelects(List list) {
public void setPlainSelects(List<PlainSelect> list) {
plainSelects = list;
}

View File

@ -7,7 +7,7 @@ import net.sf.jsqlparser.statement.select.SelectBody;
*/
public class WithItem {
private String name;
private List withItemList;
private List<SelectExpressionItem> withItemList;
private SelectBody selectBody;
/**
@ -36,10 +36,10 @@ public class WithItem {
* The {@link SelectItem}s in this WITH (for example the A,B,C in "WITH mywith (A,B,C) AS ...")
* @return a list of {@link SelectItem}s
*/
public List getWithItemList() {
public List<SelectExpressionItem> getWithItemList() {
return withItemList;
}
public void setWithItemList(List withItemList) {
public void setWithItemList(List<SelectExpressionItem> withItemList) {
this.withItemList = withItemList;
}

View File

@ -25,7 +25,7 @@ package net.sf.jsqlparser.statement.update;
import java.util.List;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.schema.Table;
import net.sf.jsqlparser.schema.*;
import net.sf.jsqlparser.statement.Statement;
import net.sf.jsqlparser.statement.StatementVisitor;
@ -35,8 +35,8 @@ import net.sf.jsqlparser.statement.StatementVisitor;
public class Update implements Statement {
private Table table;
private Expression where;
private List columns;
private List expressions;
private List<Column> columns;
private List<Expression> expressions;
public void accept(StatementVisitor statementVisitor) {
statementVisitor.visit(this);
@ -62,7 +62,7 @@ public class Update implements Statement {
* The {@link net.sf.jsqlparser.schema.Column}s in this update (as col1 and col2 in UPDATE col1='a', col2='b')
* @return a list of {@link net.sf.jsqlparser.schema.Column}s
*/
public List getColumns() {
public List<Column> getColumns() {
return columns;
}
@ -70,15 +70,15 @@ public class Update implements Statement {
* The {@link Expression}s in this update (as 'a' and 'b' in UPDATE col1='a', col2='b')
* @return a list of {@link Expression}s
*/
public List getExpressions() {
public List<Expression> getExpressions() {
return expressions;
}
public void setColumns(List list) {
public void setColumns(List<Column> list) {
columns = list;
}
public void setExpressions(List list) {
public void setExpressions(List<Expression> list) {
expressions = list;
}