}
}
}
public void addMonthDimension(BAMCalendar startTime) throws BAMException {
SummaryDimensionDSClient summaryDimension = null;
try {
summaryDimension = BAMUtil.getSummaryDimensionDSClient();
QuarterDimension qd = this.getQuarterDimension(startTime);
if (qd == null) {
addQuarterDimension(startTime);
qd = this.getQuarterDimension(startTime);
}
if (qd == null) {
throw new BAMException("Adding quarter dimension failed: " + startTime.getBAMTimestamp());
}
summaryDimension.addMonthDimension(BAMCalendar.getMonth(startTime), null, qd.getId());
} catch (Exception e) {
throw new BAMException("Adding month dimension failed: " + startTime.getBAMTimestamp(), e);
} finally {
if (summaryDimension != null) {
summaryDimension.cleanup();
}
}
}