query-by method for field birthday
@param birthday the specified attribute
@return an Iterable of DContacts for the specified birthday
161604
public Iterable<DContact> queryByBirthday(Object parent, java.util.Date birthday) {
    return queryByField(parent, DContactMapper.Field.BIRTHDAY.getFieldName(), birthday);
  }
440098
public Iterable<DOAuth2User> queryByUpdatedBy(java.lang.String updatedBy) {
    return queryByField(null, DOAuth2UserMapper.Field.UPDATEDBY.getFieldName(), updatedBy);
  }
447749
def by_name_and_dob(lname, fname, year, month, day)
      body = self.gov_talk_request({
        service: 'GetDataUsingCriteriaParameter',
        message: 'CRAGetDataUsingCriteria',
        class:   'CRAGetDataUsingCriteria',
        params: {
          LastName: lname,
          FirstName: fname,
          Year: year,
          Month: month,
          Day: day,
        }
      })
      CRA::PassportInfo.list_with_hash(body)
    end
120758
private static int getDayOfMonth(int dayOfYear, int month, int year) {

        Integer[] newMonths = getAdjustedMonthDays(year);

        if (dayOfYear >= 0) {
            if (month > 0) {
                return dayOfYear - newMonths[month].intValue();
            } else {
                return dayOfYear;
            }
        } else {
            dayOfYear = (isLeapYear(year) ? (dayOfYear + 355)
                    : (dayOfYear + 354));
            if (month > 0) {
                return dayOfYear - newMonths[month].intValue();
            } else {
                return dayOfYear;
            }
        }
    }
1249502
@Override
    public <E> List<E> getColumnsById(String schemaName, String tableName, String pKeyColumnName, String columnName,
            Object pKeyColumnValue, Class columnJavaType)
    {
        // fetch list ADDRESS_ID for given PERSON_ID
        QueryBuilder filterBuilder = new TermQueryBuilder(pKeyColumnName, pKeyColumnValue);

        SearchResponse response = txClient.prepareSearch(schemaName.toLowerCase()).setTypes(tableName)
                .setPostFilter(filterBuilder).addField(columnName).execute().actionGet();

        SearchHits hits = response.getHits();

        List columns = new ArrayList();
        for (SearchHit hit : hits.getHits())
        {
            Map<String, SearchHitField> fields = hit.getFields();
            columns.add(fields.get(columnName).getValue());
        }

        return columns;
    }
797724
public static void sqldayofyear(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException {
    singleArgumentFunctionCall(buf, "extract(doy from ", "dayofyear", parsedArgs);
  }
164095
public Iterable<DContact> queryByCity(Object parent, java.lang.String city) {
    return queryByField(parent, DContactMapper.Field.CITY.getFieldName(), city);
  }
1217426
public Iterable<Di18n> queryByCreatedDate(java.util.Date createdDate) {
    return queryByField(null, Di18nMapper.Field.CREATEDDATE.getFieldName(), createdDate);
  }
1164794
def from_birth_date(birth_date):
        """"""
        if birth_date > datetime.date.today():
            raise ValueError('birth_date can\'t be in the future')
        date_range = DateRange(birth_date, birth_date)
        return DOB(date_range=date_range)
582456
protected final String getBirthDate(final Person person) {
        final GetDateVisitor visitor = new GetDateVisitor("Birth");
        person.accept(visitor);
        return visitor.getDate();
    }
1354697
public Iterable<DContact> queryByHomePhone(Object parent, java.lang.String homePhone) {
    return queryByField(parent, DContactMapper.Field.HOMEPHONE.getFieldName(), homePhone);
  }
720849
public List<OrgActiveRuleDto> selectByProfileUuid(DbSession dbSession, String uuid) {
    return mapper(dbSession).selectByProfileUuid(uuid);
  }
930958
private void getYearlyRelativeDates(Calendar calendar, List<Date> dates)
   {
      long startDate = calendar.getTimeInMillis();
      calendar.set(Calendar.DAY_OF_MONTH, 1);
      calendar.set(Calendar.MONTH, NumberHelper.getInt(m_monthNumber) - 1);

      int dayNumber = NumberHelper.getInt(m_dayNumber);
      while (moreDates(calendar, dates))
      {
         if (dayNumber > 4)
         {
            setCalendarToLastRelativeDay(calendar);
         }
         else
         {
            setCalendarToOrdinalRelativeDay(calendar, dayNumber);
         }

         if (calendar.getTimeInMillis() > startDate)
         {
            dates.add(calendar.getTime());
            if (!moreDates(calendar, dates))
            {
               break;
            }
         }
         calendar.set(Calendar.DAY_OF_MONTH, 1);
         calendar.add(Calendar.YEAR, 1);
      }
   }
492582
public Date getBirthdayAsDate() {
    if (isBlank(getBirthday()) || getBirthday().split("/").length < 2) {
      return null;
    }

    return toDateFromShortFormat(birthday);
  }
1311807
public Iterable<DConnection> queryByUpdatedBy(java.lang.String updatedBy) {
    return queryByField(null, DConnectionMapper.Field.UPDATEDBY.getFieldName(), updatedBy);
  }
1111252
public Iterable<DContact> queryByTags(Object parent, java.lang.Object tags) {
    return queryByField(parent, DContactMapper.Field.TAGS.getFieldName(), tags);
  }
807111
public UserCustomResultSet queryByIds(long baseId, long relatedId) {
		return query(buildWhereIds(baseId, relatedId),
				buildWhereIdsArgs(baseId, relatedId));
	}