class BenefitQueryBuilder extends AbstractQueryBuilder<Benefit> {

	@Override
	protected BaseQueryBuilder build(final Benefit context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(BENEFITTYPE_CONDITION, context.getBenefitType())
					.addAndCondition(PARENT_CONDITION, context.getParent())
					.addAndCondition(NAME_CONDITION, context.getName())
					.addAndCondition(ABBRNAME_CONDITION, context.getAbbrName())
					.addAndCondition(DESCRIPTION_CONDITION, context.getDescription())
					.addAndCondition(BEGDATE_CONDITION, context.getBegDate())
					.addAndCondition(ENDDATE_CONDITION, context.getEndDate())
				.closeBracket();
	}

}