class SpecOfferQueryBuilder extends AbstractQueryBuilder<SpecOffer> {

	@Override
	protected BaseQueryBuilder build(final SpecOffer context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(PARENT_CONDITION, context.getParent())
					.addAndCondition(SPECIALTY_CONDITION, context.getSpecialty())
					.addAndCondition(DEPARTMENT_CONDITION, context.getDepartment())
					.addAndCondition(TIMEPERIOD_CONDITION, context.getTimePeriod())
					.addAndCondition(TIMEPERIODCOURSE_CONDITION, context.getTimePeriodCourse())
					.addAndCondition(EDUFORMTYPE_CONDITION, context.getEducationFormType())
					.addAndCondition(SPECOFFERTYPE_CONDITION, context.getSpecOfferType())
					.addAndCondition(DOCSERIES_CONDITION, context.getDocSeries())
					.addAndCondition(DOCNUM_CONDITION, context.getDocNum())
					.addAndCondition(LICCOUNT_CONDITION, context.getLicCount())
					.addAndCondition(STATECOUNT_CONDITION, context.getStateCount())
					.addAndCondition(BEGDATE_CONDITION, context.getBegDate())
					.addAndCondition(ENDDATE_CONDITION, context.getEndDate())
					.addAndCondition(DURATION_CONDITION, context.getDuration())
				.closeBracket();
	}

}