public interface FeatureSelect extends StatementFactoryFeature
| Modifier and Type | Method and Description |
|---|---|
<E> SelectStatement<E,?> |
selectFrom(EntityAlias<?> alias,
Class<E> toClass,
PropertyPath<?>... constructorArgs)
Creates
SelectStatement for a projection to a transfer-object having an according constructor. |
SelectStatement<Object[],?> |
selectFrom(EntityAlias<?> alias,
PropertyPath<?>... paths)
Creates
SelectStatement for a tuple of the given {paths (
{@code SELECT path1, path2, ... |
<E> SelectStatement<E,?> |
selectFrom(EntityAlias<E> alias)
Creates a regular
SelectStatement (SELECT FROM alias.source [AS alias.name] ...). |
<E> SelectStatement<E,?> selectFrom(EntityAlias<E> alias)
SelectStatement (SELECT FROM alias.source [AS alias.name] ...).E - the generic type of the entity to select.alias - the EntityAlias to select from.SelectStatement.SelectStatement<Object[],?> selectFrom(EntityAlias<?> alias, PropertyPath<?>... paths)
SelectStatement for a tuple of the given {paths (
SELECT path1, path2, ... FROM alias.source [AS alias.name] ...).alias - the EntityAlias to select from.paths - the PropertyPaths to select.SelectStatement.<E> SelectStatement<E,?> selectFrom(EntityAlias<?> alias, Class<E> toClass, PropertyPath<?>... constructorArgs)
SelectStatement for a projection to a transfer-object having an according constructor. In JPA this
is called a constructor query (
SELECT NEW package.Classname(arg1, arg2, ...) FROM alias.source [AS alias.name] ...). If not natively
supported this is implemented as a projection based on a tuple
selection.E - the generic type of the transfer-object to select.alias - the EntityAlias to select from.toClass - the transfer-object to use. Will be instantiated via the Constructor
matching to the value types of the constructorArgs.constructorArgs - the selection paths (or aggregate expressions).SelectStatement.Copyright © 2001–2016 mmm-Team. All rights reserved.