class PersonPensionQueryBuilder extends AbstractQueryBuilder<PersonPension> {

	@Override
	protected BaseQueryBuilder build(final PersonPension context, final BaseQueryBuilder builder) {
		return builder	
				.where()
				.openBracket()
					.addAndCondition(PERSON_CONDITION, context.getPerson())
					.addAndCondition(CONTACTTYPE_CONDITION, context.getPensionType())
					.addAndCondition(BEGDATE_CONDITION, context.getBegDate())
					.addAndCondition(ENDDATE_CONDITION, context.getEndDate())
				.closeBracket();
	}

}