class DepartmentQueryBuilder extends AbstractQueryBuilder<Department> {

	@Override
	protected BaseQueryBuilder build(final Department context, final BaseQueryBuilder builder) {
		return builder	
				.where()
				.openBracket()
					.addAndCondition(PARENT_CONDITION, context.getParent())
					.addAndCondition(DEPARTMENTTYPE_CONDITION, context.getDepartmentType())
					.addAndCondition(ORDER_CONDITION, context.getOrder())
					.addAndCondition(ABBRNAME_CONDITION, context.getAbbrName())
					.addAndCondition(NAME_CONDITION, context.getName())
					.addAndCondition(MANAGER_CONDITION, context.getManager())
					.addAndCondition(IDENTIFIR_CONDITION, context.getIdentifir())
					.addAndCondition(BEGDATE_CONDITION, context.getBegDate())
					.addAndCondition(ENDDATE_CONDITION, context.getEndDate())
				.closeBracket();
	}

}