diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-05-27 11:41:47 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-05-27 11:41:47 -0400 |
| commit | ad17b3065c4d3831fd7a7b17d3cb1e793ff7a20c (patch) | |
| tree | 1544427bc86c8562d28f96e0a1121d21a2d1a4be /sqlelements/src/main/java/org/israfil/sqlelements/constraints/And.java | |
Diffstat (limited to 'sqlelements/src/main/java/org/israfil/sqlelements/constraints/And.java')
| -rw-r--r-- | sqlelements/src/main/java/org/israfil/sqlelements/constraints/And.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sqlelements/src/main/java/org/israfil/sqlelements/constraints/And.java b/sqlelements/src/main/java/org/israfil/sqlelements/constraints/And.java new file mode 100644 index 0000000..14d82e1 --- /dev/null +++ b/sqlelements/src/main/java/org/israfil/sqlelements/constraints/And.java @@ -0,0 +1,51 @@ +/* + * SQLElements object-oriented SQL parsing and generation library + * + * Copyright (c) 2003, 2004, 2005 Israfil Consulting Services Corporation + * Copyright (c) 2003, 2004, 2005 Christian Edward Gruber + * All Rights Reserved + * + * 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 SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library; if not, please visit http://www.gnu.org/licenses/lgpl.html + * + * $Id: And.java 18 2005-12-10 20:08:16Z cgruber $ + */ +package org.israfil.sqlelements.constraints; + +import java.util.Set; + + +/** + * Represents an AND operator in a SQL WHERE clause. + * + * @author <a href="mailto:cgruber@israfil.net">Christian Edward Gruber </a> + * @author Latest: $Author: cgruber $ + * @version $Revision: 18 $ + */ +public class And extends NaryConstraint { + + public And(Constraint ... constraints) { + super("and",constraints); + } + + public And(Set<Constraint> constraints) { + super("and",constraints); + } + +} |
