001
014
015 package com.liferay.counter.service.persistence;
016
017 import com.liferay.counter.model.Counter;
018
019 import com.liferay.portal.service.persistence.BasePersistence;
020
021
027 public interface CounterPersistence extends BasePersistence<Counter> {
028 public void cacheResult(com.liferay.counter.model.Counter counter);
029
030 public void cacheResult(
031 java.util.List<com.liferay.counter.model.Counter> counters);
032
033 public com.liferay.counter.model.Counter create(java.lang.String name);
034
035 public com.liferay.counter.model.Counter remove(java.lang.String name)
036 throws com.liferay.counter.NoSuchCounterException,
037 com.liferay.portal.kernel.exception.SystemException;
038
039 public com.liferay.counter.model.Counter updateImpl(
040 com.liferay.counter.model.Counter counter, boolean merge)
041 throws com.liferay.portal.kernel.exception.SystemException;
042
043 public com.liferay.counter.model.Counter findByPrimaryKey(
044 java.lang.String name)
045 throws com.liferay.counter.NoSuchCounterException,
046 com.liferay.portal.kernel.exception.SystemException;
047
048 public com.liferay.counter.model.Counter fetchByPrimaryKey(
049 java.lang.String name)
050 throws com.liferay.portal.kernel.exception.SystemException;
051
052 public java.util.List<com.liferay.counter.model.Counter> findAll()
053 throws com.liferay.portal.kernel.exception.SystemException;
054
055 public java.util.List<com.liferay.counter.model.Counter> findAll(
056 int start, int end)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059 public java.util.List<com.liferay.counter.model.Counter> findAll(
060 int start, int end,
061 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064 public void removeAll()
065 throws com.liferay.portal.kernel.exception.SystemException;
066
067 public int countAll()
068 throws com.liferay.portal.kernel.exception.SystemException;
069 }