/* * Copyright (c) 2010 Mysema Ltd. * All rights reserved. * */ package com.mysema.query.sql; import java.sql.Connection; import java.sql.ResultSet; import com.mysema.query.Projectable; import com.mysema.query.types.Expression; import com.mysema.query.types.SubQueryExpression; import com.mysema.query.types.query.ListSubQuery; /** * Query interface for SQL queries * * @author tiwe * */ public interface SQLQuery extends SQLCommonQuery, Projectable { /** * Creates an union expression for the given subqueries * * @param * @param sq * @return */ Union union(ListSubQuery... sq); /** * Creates an union expression for the given subqueries * * @param * @param sq * @return */ Union union(SubQueryExpression... sq); /** * Clone the state of the Query for the given Connection * * @param conn * @return */ SQLQuery clone(Connection conn); /** * Get the results as an JDBC result set * * @param args * @return */ ResultSet getResults(Expression... args); }