001package gudusoft.gsqlparser; 002 003 004public enum EIntervalType { 005 // year to month 006 itYear(0,"year"), 007 itYears(1,"years"), 008 itYearToYear(2,"year to year"), 009 itYearToMonth(3,"year to month"), 010 itMonth(4,"month"), 011 itMonthToMonth(5,"month to month"), 012 itMonths(6,"months"), 013 // day to second 014 itDay(10,"day"), 015 itDays(12,"days"), 016 itDayToDay(14,"day to day"), 017 itDayToHour(16,"day to hour"), 018 itDayToMinute(18,"day to minute"), 019 itDayToSecond(19,"day to second"), 020 itHour(20,"hour"), 021 itHours(21,"hours"), 022 itHourToHour(22,"hour to hour"), 023 itHourToMinute(23,"hour to minute"), 024 itHourToSecond(24,"hour to second"), 025 itMinute(30,"minute"), 026 itMinutes(31,"minutes"), 027 itMinuteToMinute(32,"minute to minute"), 028 itMinuteToSecond(33,"minute to second"), 029 itSecond(40,"second"), 030 itSeconds(41,"seconds"), 031 itMilliSeconds(42,"milliseconds"), 032 itMicroSeconds(43,"microseconds"), 033 itUnknown(100,"unknown"), 034 ; 035 036 private final int value; 037 private final String text; 038 039 public String getText() { 040 return text; 041 } 042 043 private EIntervalType(int value, String text) { 044 this.value = value; 045 this.text = text; 046 } 047 048 public int getValue() { 049 return value; 050 } 051}