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

xdev.db.sql.SELECT 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 xdev.db.sql;


import java.util.List;

import com.xdev.jadoth.sqlengine.internal.ORDER_BY;
import com.xdev.jadoth.sqlengine.internal.SqlColumn;
import com.xdev.jadoth.sqlengine.internal.SqlExpression;
import com.xdev.jadoth.sqlengine.internal.SqlOrderItem;
import com.xdev.jadoth.sqlengine.internal.interfaces.SelectItem;

import xdev.db.DBConnection;
import xdev.lang.Copyable;


/**
 * A java representation of a SQL SELECT statement which is used by the
 * {@link DBConnection} class to perform reading queries.
 * 

* {@link DBConnection#query(SELECT, Object...)} *

* The methods of the SELECT class return the object back so you can chain the * method calls: * *

 * VirtualTable vt;
 * VirtualTableColumn column;
 * new SELECT().FROM(vt.toSqlTable()).WHERE(column.toSqlColumn().LIKE("Bla%"));
 * 
* * @author XDEV Software * @since 3.0 */ public class SELECT extends SqlObject implements Copyable