class PersonWorkQueryBuilder extends AbstractQueryBuilder<PersonWork> {

	@Override
	protected BaseQueryBuilder build(final PersonWork context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(PERSON_CONDITION, context.getPerson())
					.addAndCondition(JOBTYPE_CONDITION, context.getJobType())
					.addAndCondition(SPECSTAGETYPE_CONDITION, context.getSpecStageType())
					.addAndCondition(ORGANIZATIONNAME_CONDITION, context.getOrganizationName())
					.addAndCondition(POSTNAME_CONDITION, context.getPostName())
					.addAndCondition(DESCRIPTION_CONDITION, context.getDescription())
					.addAndCondition(BEGDATE_CONDITION, context.getBegDate())
					.addAndCondition(ENDDATE_CONDITION, context.getEndDate())
				.closeBracket();
	}

}