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 |
---|---|
java.lang.String |
toSQL() |
static DatePart |
valueOf(java.lang.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(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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toSQL()
Copyright © 2014. All Rights Reserved.