class PersonPaperQueryBuilder extends AbstractQueryBuilder<PersonPaper> {

	@Override
	protected BaseQueryBuilder build(final PersonPaper context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(PERSON_CONDITION, context.getPerson())
					.addAndCondition(PAPERTYPE_CONDITION, context.getPaperType())
					.addAndCondition(HONORS_TYPE, context.getHonorsType())
					.addAndCondition(DOC_DATE_CONDITION, context.getDocDate())
					.addAndCondition(DOCSERIES_CONDITION, context.getDocSeries())
					.addAndCondition(DOCNUM_CONDITION, context.getDocNum())
					.addAndCondition(DOCISSUED_CONDITION, context.getDocIssued())
					.addAndCondition(DOCPIN_CONDITION, context.getDocPin())
					.addAndCondition(MARK_CONDITION, context.getMark())
					.addAndCondition(ISCHECKED_CONDITION, context.getIsChecked())
					.addAndCondition(ISFOREIGN_CONDITION, context.getIsForeign())
				.closeBracket();
	}

}