class PersonNameQueryBuilder extends AbstractQueryBuilder<PersonName> {

	@Override
	protected BaseQueryBuilder build(final PersonName context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(PERSON_CONDITION, context.getPerson())
					.addAndCondition(LANGUAGE_CONDITION, context.getLanguage())
					.addAndCondition(NAME_CONDITION, context.getName())
					.addAndCondition(FIRSTNAME_CONDITION, context.getFirstName())
					.addAndCondition(LASTNAME_CONDITION, context.getFatherName())
					.addAndCondition(SURNAME_CONDITION, context.getSurname())
				.closeBracket();
	}

}