|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OrderCorrectionType>
org.eclipse.persistence.annotations.OrderCorrectionType
public enum OrderCorrectionType
The OrderCorrectionType enum is used with OrderCorrection annotation that could be applied together with OrderColumn annotation. OrderCorrectionType defines a strategy taken in case the order list read from the data base is invalid (has nulls, duplicates, negative values, values greater/equal to list size - the only valid order list of n elements is: {0, 1,..., n-1}). OrderCorrectionType also could be set directly into CollectionMapping using setListOrderCorrectionType method.
OrderCorrection
,
CollectionMapping
Enum Constant Summary | |
---|---|
EXCEPTION
Don't correct, throw QueryException with error code QueryException.LIST_ORDER_FIELD_WRONG_VALUE Example: a list of three objects: in the data base: {null, objectA}; {2, objectB}, {5, ObjectC}; read into application - exception. |
|
READ
Order of the list read into application is corrected, but no knowledge is kept about the invalid list order left in the data base. |
|
READ_WRITE
Order of the list read into application is corrected, and remembered that the invalid list order left in the data base. |
Method Summary | |
---|---|
static OrderCorrectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OrderCorrectionType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OrderCorrectionType READ
public static final OrderCorrectionType READ_WRITE
public static final OrderCorrectionType EXCEPTION
Method Detail |
---|
public static OrderCorrectionType[] values()
for (OrderCorrectionType c : OrderCorrectionType.values()) System.out.println(c);
public static OrderCorrectionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |