mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-24 21:07:26 +08:00
40 lines
698 B
Java
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;
|
|
|
|
}
|