class EnrolmentQueryBuilder extends AbstractQueryBuilder<Enrolment> {

	@Override
	protected BaseQueryBuilder build(final Enrolment context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(PERSON_CONDITION, context.getPerson())
					.addAndCondition(SPECOFFER_CONDITION, context.getSpecOffer())
					.addAndCondition(DEPARTMENT_CONDITION, context.getDepartment())
					.addAndCondition(PERSONPAPER_CONDITION, context.getPersonPaper())
					.addAndCondition(ENROLMENTTYPE_CONDITION, context.getEnrolmentType())
					.addAndCondition(PARENT_CONDITION, context.getParent())
					.addAndCondition(PRIORITY_CONDITION, context.getPriority())
					.addAndCondition(MARK_CONDITION, context.getMark())
					.addAndCondition(DOCSERIES_CONDITION, context.getDocSeries())
					.addAndCondition(DOCNUM_CONDITION, context.getDocNum())
					.addAndCondition(DOCTEXT_CONDITION, context.getDocText())
					.addAndCondition(ISSTATE_CONDITION, context.getIsState())
					.addAndCondition(ISCONTRACT_CONDITION, context.getIsContract())
					.addAndCondition(ISPRIVELEGE_CONDITION, context.getIsPrivilege())
					.addAndCondition(ISHOSTEL_CONDITION, context.getIsHostel())
					.addAndCondition(ISEDUCATIONSTATE_CONDITION, context.getIsEducationState())
					.addAndCondition(ISINTERVIEW_CONDITION, context.getIsInterview())
					.addAndCondition(ISORIGINALL_CONDITION, context.getIsOriginal())
					.addAndCondition(EVDATE_CONDITION, context.getEvDate())
					.addAndCondition(BEGDATE_CONDITION, context.getBegDate())
					.addAndCondition(ENDDATE_CONDITION, context.getEndDate())
					.addAndCondition(MARKSCALE_CONDITION, context.getMarkScale())
				.closeBracket();
	}

}