class DepartmentAddressQueryBuilder extends AbstractQueryBuilder<DepartmentAddress> {

	@Override
	protected BaseQueryBuilder build(final DepartmentAddress context, final BaseQueryBuilder builder) {
		return builder	
				.where()
				.openBracket()
					.addAndCondition(DEPARTMENT_CONDITION, context.getDepartment())
					.addAndCondition(ADDRESSTYPE_CONDITION, context.getAddressType())
					.addAndCondition(ADMINUNIT_CONDITION, context.getAdminUnit())
					.addAndCondition(STREETTYPE_CONDITION, context.getStreetType())
					.addAndCondition(ZIPCODE_CONDITION, context.getZipCode())
					.addAndCondition(STREET_CONIDITON, context.getStreet())
					.addAndCondition(HOUSE_CONDITION, context.getHouse())
					.addAndCondition(APARTMENT_CONDITION, context.getApartment())
				.closeBracket();
	}

}