class PublicActivityQueryBuilder extends AbstractQueryBuilder<PublicActivity> {

	@Override
	protected BaseQueryBuilder build(final PublicActivity context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(PUBLICACTIVITYTYPE_CONDITION, context.getPublicActivityTypeType())
					.addAndCondition(TIMEPERIOD_CONDITION, context.getTimePeriod())
					.addAndCondition(NAME_CONDITION, context.getName())
					.addAndCondition(BEGDATE_CONDITION, context.getBegDate())
					.addAndCondition(ENDDATE_CONDITION, context.getEndDate())
				.closeBracket();
	}

}