Examples of AnyCalendar


Examples of anvil.core.time.AnyCalendar

          Time time = set.getTime(field);
          if (time != null) {
            Context context = Context.getInstance();
            Calendar cal = Calendar.getInstance(context.getTimeZone(), context.getLocale());
            cal.setTime(time);
            return new AnyCalendar(cal);
          } else {
            return Any.NULL;
          }
        }

      case Types.TIMESTAMP:
        {
          Timestamp time = set.getTimestamp(field);
          if (time != null) {
            Context context = Context.getInstance();
            Calendar cal = Calendar.getInstance(context.getTimeZone(), context.getLocale());
            cal.setTime(time);
            return new AnyCalendar(cal);
          } else {
            return Any.NULL;
          }
        }

      case Types.DATE:
        {
          Date date = set.getDate(field);
          if (date != null) {
            Context context = Context.getInstance();
            Calendar cal = Calendar.getInstance(context.getTimeZone(), context.getLocale());
            cal.setTime(date);
            return new AnyCalendar(cal);
          } else {
            return Any.NULL;
          }
        }
View Full Code Here

Examples of anvil.core.time.AnyCalendar

          Time time = stmt.getTime(field);
          if (time != null) {
            Context context = Context.getInstance();
            Calendar cal = Calendar.getInstance(context.getTimeZone(), context.getLocale());
            cal.setTime(time);
            return new AnyCalendar(cal);
          } else {
            return Any.NULL;
          }
        }

      case Types.TIMESTAMP:
        {
          Timestamp time = stmt.getTimestamp(field);
          if (time != null) {
            Context context = Context.getInstance();
            Calendar cal = Calendar.getInstance(context.getTimeZone(), context.getLocale());
            cal.setTime(time);
            return new AnyCalendar(cal);
          } else {
            return Any.NULL;
          }
        }

      case Types.DATE:
        {
          Date date = stmt.getDate(field);
          if (date != null) {
            Context context = Context.getInstance();
            Calendar cal = Calendar.getInstance(context.getTimeZone(), context.getLocale());
            cal.setTime(date);
            return new AnyCalendar(cal);
          } else {
            return Any.NULL;
          }
        }
View Full Code Here

Examples of anvil.core.time.AnyCalendar

  {
    long t = _connection.getExpiration();
    if (t != 0) {
      Calendar c = Calendar.getInstance();
      c.setTime(new Date(t));
      return new AnyCalendar(c);
    } else {
      return NULL;
    }
  }
View Full Code Here

Examples of anvil.core.time.AnyCalendar

  {
    long t = _connection.getDate();
    if (t != 0) {
      Calendar c = Calendar.getInstance();
      c.setTime(new Date(t));
      return new AnyCalendar(c);
    } else {
      return NULL;
    }
  }
View Full Code Here

Examples of anvil.core.time.AnyCalendar

  {
    long t = _connection.getLastModified();
    if (t != 0) {
      Calendar c = Calendar.getInstance();
      c.setTime(new Date(t));
      return new AnyCalendar(c);
    } else {
      return NULL;
    }
  }
View Full Code Here

Examples of anvil.core.time.AnyCalendar

  {
    long t = _connection.getIfModifiedSince();
    if (t != 0) {
      Calendar c = Calendar.getInstance();
      c.setTime(new Date(t));
      return new AnyCalendar(c);
    } else {
      return NULL;
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.