querydsl/querydsl-sql/src/main/java/com/mysema/query/sql/Union.java
Timo Westkämper d606f8e58a worked on mssql dialect
refactored Template usage in SerializerBase
added inheritance tests
2010-03-13 17:08:10 +00:00

40 lines
698 B
Java

/*
* Copyright (c) 2010 Mysema Ltd.
* All rights reserved.
*
*/
package com.mysema.query.sql;
import java.sql.SQLException;
import java.util.List;
import com.mysema.query.types.OrderSpecifier;
/**
* Union defines an interface for Union queries
*
* @author tiwe
*
* @param <RT>
*/
// TODO : provide more projection types
public interface Union<RT> {
/**
* Define the ordering of the query results
*
* @param o
* @return
*/
Union<RT> orderBy(OrderSpecifier<?>... o);
/**
* Retrieve the results
*
* @return
* @throws SQLException
*/
List<RT> list() throws SQLException;
}