Examples of unitsAllAbsent()


Examples of hirondelle.web4j.model.DateTime.unitsAllAbsent()

  private void setDateTime(Object aParam, PreparedStatement aStatement, int aIdx) throws SQLException {
    DateTime dateTime = (DateTime)aParam;
    String formattedDateTime = "";
    if (
      dateTime.unitsAllPresent(Unit.YEAR, Unit.MONTH, Unit.DAY) &&
      dateTime.unitsAllAbsent(Unit.HOUR, Unit.MINUTE, Unit.SECOND)
    ){
      fLogger.finest("Treating DateTime as a date (year-month-day).");
      formattedDateTime = dateTime.format(DbConfig.getDateFormat(fSqlId.getDatabaseName()));
    }
    else if (
View Full Code Here

Examples of hirondelle.web4j.model.DateTime.unitsAllAbsent()

    ){
      fLogger.finest("Treating DateTime as a date (year-month-day).");
      formattedDateTime = dateTime.format(DbConfig.getDateFormat(fSqlId.getDatabaseName()));
    }
    else if (
      dateTime.unitsAllAbsent(Unit.YEAR, Unit.MONTH, Unit.DAY) &&
      dateTime.unitsAllPresent(Unit.HOUR, Unit.MINUTE, Unit.SECOND)
    ){
      fLogger.finest("Treating DateTime as a time (hour-minute-second).");
      formattedDateTime = dateTime.format(DbConfig.getTimeFormat(fSqlId.getDatabaseName()));
    }
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.