/** * Increment approved item count * * @param itemTypeId * @throws SystemException */ public void incrementApprovedCount(long itemTypeId) throws SystemException { ItemType itemType = itemTypePersistence.fetchByPrimaryKey(itemTypeId); int newCount = itemType.getApprovedCount() + 1; itemType.setApprovedCount(newCount); itemTypePersistence.update(itemType); }