boolean isHistoryEnabled() { Type strategyType = type; if (type == Type.defaulType && parent != null) { strategyType = parent.getType(); } return strategyType != HistoryStrategy.Type.none; }
public UpdateHistoryStrategy(String serviceName, HistoryStrategy historyStrategy) { this.serviceName = serviceName; type = historyStrategy.getType().ordinal(); maxNumber = historyStrategy.getMaxNumber(); }
int strategyMaxNumber; if (type == Type.defaulType && parent != null) { strategyType = parent.getType(); strategyMaxNumber = parent.getMaxNumber();
boolean isHistoryEnabled() { Type strategyType = type; if (type == Type.defaulType && parent != null) { strategyType = parent.getType(); } return strategyType != HistoryStrategy.Type.none; }
public UpdateHistoryStrategy(String serviceName, HistoryStrategy historyStrategy) { this.serviceName = serviceName; type = historyStrategy.getType().ordinal(); maxNumber = historyStrategy.getMaxNumber(); }
int strategyMaxNumber; if (type == Type.defaulType && parent != null) { strategyType = parent.getType(); strategyMaxNumber = parent.getMaxNumber();