AbstractDynamicQuery
, AbstractMultipleEntityQuery
, AbstractQuery
, AbstractSingleEntityQuery
, CountByHashAndRangeKeyQuery
, CountByHashKeyQuery
, MultipleEntityQueryExpressionQuery
, MultipleEntityQueryRequestQuery
, MultipleEntityScanExpressionQuery
, QueryExpressionCountQuery
, QueryRequestCountQuery
, ScanExpressionCountQuery
, SingleEntityLoadByHashAndRangeKeyQuery
, SingleEntityLoadByHashKeyQuery
, StaticQuery
public interface Query<T>
Modifier and Type | Method | Description |
---|---|---|
List<T> |
getResultList() |
Execute a SELECT query and return the query results as a List.
|
T |
getSingleResult() |
Execute a SELECT query that returns a single result.
|
boolean |
isScanCountEnabled() |
|
boolean |
isScanEnabled() |
|
void |
setScanCountEnabled(boolean scanCountEnabled) |
|
void |
setScanEnabled(boolean scanEnabled) |
List<T> getResultList()
IllegalStateException
- if called for a Java Persistence query language UPDATE or DELETE
statementT getSingleResult()
void setScanEnabled(boolean scanEnabled)
void setScanCountEnabled(boolean scanCountEnabled)
boolean isScanCountEnabled()
boolean isScanEnabled()
Copyright © 2018. All rights reserved.