All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xdev.jadoth.sqlengine.internal.LEFT_JOIN Maven / Gradle / Ivy

/*
 * XDEV Application Framework - XDEV Application Framework
 * Copyright © 2003 XDEV Software (https://xdev.software)
 *
 * This program 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 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 program.  If not, see .
 */
package com.xdev.jadoth.sqlengine.internal;

import java.util.HashMap;

import com.xdev.jadoth.sqlengine.SQL;
import com.xdev.jadoth.sqlengine.internal.interfaces.TableExpression;




/**
 * The Class LEFT_JOIN.
 * 
 * @author Thomas Muenz
 */
public class LEFT_JOIN extends JoinClause
{	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7784749477971409310L;

	

	/**
	 * Instantiates a new lEF t_ join.
	 */
	protected LEFT_JOIN() {
		super(null, null, null);
	}
	
	/**
	 * Instantiates a new lEF t_ join.
	 * 
	 * @param table the table
	 * @param joinCondition the join condition
	 */
	public LEFT_JOIN(final TableExpression table, final Object joinCondition) {
		super(table, joinCondition);
	}
	
	/**
	 * Instantiates a new lEF t_ join.
	 * 
	 * @param parentFromClause the parent from clause
	 * @param table the table
	 * @param joinCondition the join condition
	 */
	public LEFT_JOIN(final FROM parentFromClause, final TableExpression table, final Object joinCondition) {
		super(parentFromClause, table, joinCondition);
	}
	
	protected LEFT_JOIN(final LEFT_JOIN copySource, final FROM parentFromClause)
	{
		super(copySource, parentFromClause);
	}


	/**
	 * @return
	 * @see com.xdev.jadoth.sqlengine.internal.SqlClause#keyword()
	 */
	@Override
	public String keyword() {
		return SQL.LANG.LEFT_JOIN;
	}

	/**
	 * @return
	 */
	@Override
	public LEFT_JOIN copy()
	{
		return new LEFT_JOIN(this, null);
	}
	/**
	 * @param alreadyCopied
	 * @return
	 */
	@Override
	protected LEFT_JOIN copy(final HashMap, SqlClause> alreadyCopied)
	{
		return new LEFT_JOIN(this, copySqlClause(this.parentFromClause, alreadyCopied));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy