class AdminUnitQueryBuilder extends AbstractQueryBuilder<AdminUnit> {

	@Override
	protected BaseQueryBuilder build(final AdminUnit context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(ADMINUNITTYPE_COND, context.getAdminUnitType())
					.addAndCondition(PARENT_COND, context.getParent())
					.addAndCondition(IDENTIFIER_COND, context.getIdentifier())
					.addAndCondition(IDENTIFIER1_COND, context.getIdentifier1())
					.addAndCondition(IDENTIFIER2_COND, context.getIdentifier2())
					.addAndCondition(IDENTIFIER3_COND, context.getIdentifier3())
					.addAndCondition(NAME_COND, context.getName())
					.addAndCondition(BEGDATE_COND, context.getBegDate())
					.addAndCondition(ENDDATE_COND, context.getEndDate())
				.closeBracket();
	}

}