Package io.ebean.annotation
Enum PartitionMode
- java.lang.Object
-
- java.lang.Enum<PartitionMode>
-
- io.ebean.annotation.PartitionMode
-
- All Implemented Interfaces:
Serializable,Comparable<PartitionMode>
public enum PartitionMode extends Enum<PartitionMode>
Common partition modes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PartitionModevalueOf(String name)Returns the enum constant of this type with the specified name.static PartitionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAY
public static final PartitionMode DAY
Daily partitioning.
-
WEEK
public static final PartitionMode WEEK
Weekly partitioning.
-
MONTH
public static final PartitionMode MONTH
Month based partitioning.
-
YEAR
public static final PartitionMode YEAR
Year based partitioning.
-
-
Method Detail
-
values
public static PartitionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PartitionMode c : PartitionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PartitionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-