Skip to content

Commit

Permalink
changed license header to represent the projects dual license
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpz committed Feb 6, 2019
1 parent 373c6cb commit 4ad996f
Show file tree
Hide file tree
Showing 554 changed files with 3,472 additions and 2,232 deletions.
3 changes: 0 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@
<canUpdateDescription>false</canUpdateDescription>
<licenseName>dual_lgpl_ap2</licenseName>
<licenseResolver>${project.baseUri}/src/license</licenseResolver>
<roots>
<root>src/main/java</root>
</roots>
</configuration>
<executions>
<execution>
Expand Down
11 changes: 10 additions & 1 deletion src/license/licenses.properties
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
dual_lgpl_ap2=Dual License GNU LGPL 2.1 or Apache License 2.0
###
# #%L
# JSQLParser library
# %%
# Copyright (C) 2004 - 2019 JSQLParser
# %%
# Dual licensed under GNU LGPL 2.1 or Apache License 2.0
# #L%
###
dual_lgpl_ap2=Dual License GNU LGPL 2.1 or Apache License 2.0
8 changes: 2 additions & 6 deletions src/main/java/net/sf/jsqlparser/JSQLParserException.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2013 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
package net.sf.jsqlparser;

/**
* An exception class with stack trace informations
*/
public class JSQLParserException extends Exception {

/* The serial class version */
private static final long serialVersionUID = -1099039459759769980L;
private Throwable cause = null;

Expand Down
8 changes: 2 additions & 6 deletions src/main/java/net/sf/jsqlparser/expression/Alias.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2014 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
package net.sf.jsqlparser.expression;

/**
*
* @author toben
*/
public class Alias {

private String name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2013 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
Expand Down
12 changes: 2 additions & 10 deletions src/main/java/net/sf/jsqlparser/expression/AnalyticExpression.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2013 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
Expand All @@ -15,14 +15,6 @@
import java.util.List;
import net.sf.jsqlparser.expression.operators.relational.ExpressionList;

/**
* Analytic function. The name of the function is variable but the parameters following the special
* analytic function path. e.g. row_number() over (order by test). Additional there can be an
* expression for an analytical aggregate like sum(col) or the "all collumns" wildcard like
* count(*).
*
* @author tw
*/
public class AnalyticExpression extends ASTNodeAccessImpl implements Expression {

private final OrderByClause orderBy = new OrderByClause();
Expand Down
26 changes: 2 additions & 24 deletions src/main/java/net/sf/jsqlparser/expression/AnalyticType.java
Original file line number Diff line number Diff line change
@@ -1,36 +1,14 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2017 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
/*
* Copyright (C) 2017 JSQLParser.
*
* 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., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*/
package net.sf.jsqlparser.expression;

/**
*
* @author Tobias Warneke (t.warneke@gmx.net)
*/
public enum AnalyticType {
OVER,
WITHIN_GROUP
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2013 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
Expand All @@ -12,11 +12,6 @@
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
import net.sf.jsqlparser.statement.select.SubSelect;

/**
* Combines ANY and SOME expressions.
*
* @author toben
*/
public class AnyComparisonExpression extends ASTNodeAccessImpl implements Expression {

private final SubSelect subSelect;
Expand Down
26 changes: 2 additions & 24 deletions src/main/java/net/sf/jsqlparser/expression/AnyType.java
Original file line number Diff line number Diff line change
@@ -1,36 +1,14 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2015 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
/*
* Copyright (C) 2015 JSQLParser.
*
* 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., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*/
package net.sf.jsqlparser.expression;

/**
*
* @author toben
*/
public enum AnyType {

ANY,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2013 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
Expand All @@ -11,10 +11,6 @@

import net.sf.jsqlparser.parser.ASTNodeAccessImpl;

/**
* A basic class for binary expressions, that is expressions having a left member and a right member
* which are in turn expressions.
*/
public abstract class BinaryExpression extends ASTNodeAccessImpl implements Expression {

private Expression leftExpression;
Expand Down
41 changes: 2 additions & 39 deletions src/main/java/net/sf/jsqlparser/expression/CaseExpression.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2013 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
Expand All @@ -14,37 +14,6 @@
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
import net.sf.jsqlparser.statement.select.PlainSelect;

/**
* CASE/WHEN expression.
*
* Syntax: <code><pre>
* CASE
* WHEN condition THEN expression
* [WHEN condition THEN expression]...
* [ELSE expression]
* END
* </pre></code>
*
* <br/>
* or <br/>
* <br/>
*
* <code><pre>
* CASE expression
* WHEN condition THEN expression
* [WHEN condition THEN expression]...
* [ELSE expression]
* END
* </pre></code>
*
* See also: https://aurora.vcu.edu/db2help/db2s0/frame3.htm#casexp
* http://sybooks.sybase.com/onlinebooks/group-as/asg1251e /commands/
*
* @ebt-link;pt=5954?target=%25N%15_52628_START_RESTART_N%25
*
*
* @author Havard Rast Blok
*/
public class CaseExpression extends ASTNodeAccessImpl implements Expression {

private Expression switchExpression;
Expand All @@ -56,16 +25,10 @@ public void accept(ExpressionVisitor expressionVisitor) {
expressionVisitor.visit(this);
}

/**
* @return Returns the switchExpression.
*/
public Expression getSwitchExpression() {
return switchExpression;
}

/**
* @param switchExpression The switchExpression to set.
*/
public void setSwitchExpression(Expression switchExpression) {
this.switchExpression = switchExpression;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2013 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
Expand All @@ -12,10 +12,6 @@
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
import net.sf.jsqlparser.statement.create.table.ColDataType;

/**
*
* @author tw
*/
public class CastExpression extends ASTNodeAccessImpl implements Expression {

private Expression leftExpression;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,16 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2016 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
/*
* Copyright (C) 2016 JSQLParser.
*
* 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., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*/
package net.sf.jsqlparser.expression;

import net.sf.jsqlparser.parser.ASTNodeAccessImpl;

/**
*
* @author toben
*/
public class DateTimeLiteralExpression extends ASTNodeAccessImpl implements Expression {

private String value;
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/net/sf/jsqlparser/expression/DateValue.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2013 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
Expand All @@ -13,9 +13,6 @@

import java.sql.Date;

/**
* A Date in the form {d 'yyyy-mm-dd'}
*/
public class DateValue extends ASTNodeAccessImpl implements Expression {

private Date value;
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/net/sf/jsqlparser/expression/DoubleValue.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2013 JSQLParser
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
Expand All @@ -11,9 +11,6 @@

import net.sf.jsqlparser.parser.ASTNodeAccessImpl;

/**
* Every number with a point or a exponential format is a DoubleValue
*/
public class DoubleValue extends ASTNodeAccessImpl implements Expression {

private double value;
Expand Down
Loading

0 comments on commit 4ad996f

Please sign in to comment.