List of usage examples for com.liferay.portal.util PropsValues COUNTER_INCREMENT
int COUNTER_INCREMENT
To view the source code for com.liferay.portal.util PropsValues COUNTER_INCREMENT.
Click Source Link
From source file:com.liferay.counter.service.persistence.CounterFinderImpl.java
License:Open Source License
protected int getRangeSize(String name) { if (name.equals(_NAME)) { return PropsValues.COUNTER_INCREMENT; }//from w w w. java2s .c om String incrementType = null; int pos = name.indexOf(CharPool.POUND); if (pos != -1) { incrementType = name.substring(0, pos); } else { incrementType = name; } Integer rangeSize = _rangeSizeMap.get(incrementType); if (rangeSize == null) { rangeSize = GetterUtil.getInteger(PropsUtil.get(PropsKeys.COUNTER_INCREMENT_PREFIX + incrementType), PropsValues.COUNTER_INCREMENT); _rangeSizeMap.put(incrementType, rangeSize); } return rangeSize.intValue(); }