|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DateFormats>
com.bm.testsuite.dataloader.DateFormats
public enum DateFormats
Represents date formats for CVS initial data set.
Enum Constant Summary | |
---|---|
DEFAULT_DATE
|
|
DEFAULT_DATE_TIME
|
|
DEFAULT_TIME
|
|
USER_DATE
|
|
USER_DATE_TIME
|
|
USER_TIME
|
Method Summary | |
---|---|
java.util.Date |
parse(java.lang.String toParse)
Parse the specified instance |
void |
parseToPreparedStatemnt(java.lang.String toParse,
java.sql.PreparedStatement ps,
int pos)
|
DateFormats |
setUserDefinedFomatter(java.lang.String pattern)
Allows to set a user defined formatter. |
static DateFormats[] |
systemValues()
|
java.lang.String |
toPattern()
Returns the pattern for formatting. |
static DateFormats |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DateFormats[] |
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 DateFormats DEFAULT_DATE_TIME
public static final DateFormats DEFAULT_DATE
public static final DateFormats DEFAULT_TIME
public static final DateFormats USER_DATE_TIME
public static final DateFormats USER_DATE
public static final DateFormats USER_TIME
Method Detail |
---|
public static final DateFormats[] values()
for(DateFormats c : DateFormats.values()) System.out.println(c);
public static DateFormats 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 namepublic DateFormats setUserDefinedFomatter(java.lang.String pattern)
dateFormatter
- -
the date formatter
public java.util.Date parse(java.lang.String toParse) throws java.text.ParseException
toParse
-
java.text.ParseException
public void parseToPreparedStatemnt(java.lang.String toParse, java.sql.PreparedStatement ps, int pos) throws java.text.ParseException, java.sql.SQLException
java.text.ParseException
java.sql.SQLException
public java.lang.String toPattern()
public static DateFormats[] systemValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |