class TimePeriodQueryBuilder extends AbstractQueryBuilder<TimePeriod> {

	@Override
	protected BaseQueryBuilder build(final TimePeriod context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(PARENT_CONDITION, context.getParent())
					.addAndCondition(TIMEPERIOD_CONDITION, context.getTimePeriodType())
					.addAndCondition(NAME_CONDITION, context.getName())
					.addAndCondition(NUMVALUE_CONDITION, context.getNumValue())
					.addAndCondition(BEG_DATE_CONDITION, context.getBegDate())
					.addAndCondition(END_DATE_CONDITION, context.getBegDate())
				.closeBracket();
	}

}