Constructor and Description |
---|
SelectBuilder(BooleanExpression<T> e) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<T> |
any() |
com.google.common.base.Optional<T> |
any(javax.persistence.EntityManager em) |
static <R extends Entity<R>> |
builder(BooleanExpression<R> e) |
SelectBuilder<T> |
entityClass(Class<T> cls) |
SelectBuilder<T> |
info(Info info) |
List<T> |
many() |
List<T> |
many(javax.persistence.EntityManager em) |
com.google.common.base.Optional<T> |
one()
Returns either absent or a single item wrapped in an
Optional . |
com.google.common.base.Optional<T> |
one(javax.persistence.EntityManager em)
Returns either absent or a single item wrapped in an
Optional . |
SelectBuilder<T> |
select(BooleanExpression<T> exp) |
public SelectBuilder(BooleanExpression<T> e)
public static <R extends Entity<R>> SelectBuilder<R> builder(BooleanExpression<R> e)
public SelectBuilder<T> select(BooleanExpression<T> exp)
public SelectBuilder<T> entityClass(Class<T> cls)
public SelectBuilder<T> info(Info info)
public com.google.common.base.Optional<T> one()
Optional
.
Throws a RuntimeException
if more than one is returned from the
query.public com.google.common.base.Optional<T> one(javax.persistence.EntityManager em)
Optional
.
Throws a RuntimeException
if more than one is returned from the
query.em
- public com.google.common.base.Optional<T> any(javax.persistence.EntityManager em)
public com.google.common.base.Optional<T> any()
Copyright © 2012–2022. All rights reserved.