|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<QueryMode>
org.spicefactory.pimento.service.QueryMode
public enum QueryMode
Represents the mode for a single query.
| Enum Constant Summary | |
|---|---|
EXECUTE_UPDATE
A query that executes an update. |
|
RESULT_LIST
A query that produces a result list. |
|
SINGLE_RESULT
A query that produces a single result. |
|
| Method Summary | |
|---|---|
static QueryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static QueryMode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final QueryMode SINGLE_RESULT
EntityManager.getSingleResult.
public static final QueryMode RESULT_LIST
EntityManager.getResultList.
public static final QueryMode EXECUTE_UPDATE
EntityManager.executeUpdate.
This query mode is not permitted by default. You can allow
such a query type with PimentoConfig.setExecuteUpdatePermitted.
| Method Detail |
|---|
public static final QueryMode[] values()
for(QueryMode c : QueryMode.values())
System.out.println(c);
public static QueryMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||