class OrderQueryBuilder extends AbstractQueryBuilder<Order> {

	@Override
	protected BaseQueryBuilder build(final Order context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(ORDERTYPE_CONDITION, context.getOrderType())
					.addAndCondition(EMPLOYEE_CONDITION, context.getEmployee())
					.addAndCondition(ASSET_CONDITION, context.getAsset())
					.addAndCondition(PARTNER_CONDITION, context.getPartner())
					.addAndCondition(OPTYPE_CONDITION, context.getOpType())
					.addAndCondition(DEPARTMENT_CONDITION, context.getDepartment())
					.addAndCondition(REASON_CONDITION, context.getReason())
					.addAndCondition(PARENT_CONDITION, context.getParent())
					.addAndCondition(REASONTEXT_CONDITION, context.getReasonText())
					.addAndCondition(DOCSERIES_CONDITION, context.getDocSeries())
					.addAndCondition(DOCNUM_CONDITION, context.getDocNum())
					.addAndCondition(DOCDATE_CONDITION, context.getDocDate())
					.addAndCondition(DOCISSUED_CONDITION, context.getDocIssued())
					.addAndCondition(EVDATE_CONDITION, context.getEvDate())
					.addAndCondition(TITLE_CONDITION, context.getTitle())
					.addAndCondition(DESCRIPTION_CONDITION, context.getDescription())
					.addAndCondition(TIMEPERIOD_CONDITION, context.getTimePeriod())
				.closeBracket();
	}

}