class PartnerQueryBuilder extends AbstractQueryBuilder<Partner> {

	@Override
	protected BaseQueryBuilder build(final Partner context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(PARENT_CONDITION, context.getParent())
					.addAndCondition(ABBRNAME_CONDITION, context.getAbbrName())
					.addAndCondition(NAME_CONDITION, context.getName())
					.addAndCondition(MANAGER_CONDITION, context.getManager())
					.addAndCondition(PHONE_CONDITION, context.getPhone())
					.addAndCondition(EMAIL_CONDITION, context.getEmail())
					.addAndCondition(BEGDATE_CONDITION, context.getBegDate())
					.addAndCondition(ENDDATE_CONDITION, context.getEndDate())
				.closeBracket();
	}

}