public enum DatePart extends Enum<DatePart>
Enum Constant and Description |
---|
DAY
The day
|
HOUR
The hour
|
MINUTE
The minute
|
MONTH
The month
|
SECOND
The second
|
YEAR
The year
|
Modifier and Type | Method and Description |
---|---|
String |
toSQL() |
static DatePart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatePart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatePart YEAR
public static final DatePart MONTH
public static final DatePart DAY
public static final DatePart HOUR
public static final DatePart MINUTE
public static final DatePart SECOND
public static DatePart[] values()
for (DatePart c : DatePart.values()) System.out.println(c);
public static DatePart valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toSQL()
Copyright © 2017. All Rights Reserved.