1
14
15 package com.liferay.counter.service.persistence;
16
17 import com.liferay.counter.model.Counter;
18
19 import com.liferay.portal.service.persistence.BasePersistence;
20
21
34 public interface CounterPersistence extends BasePersistence<Counter> {
35 public void cacheResult(com.liferay.counter.model.Counter counter);
36
37 public void cacheResult(
38 java.util.List<com.liferay.counter.model.Counter> counters);
39
40 public com.liferay.counter.model.Counter create(java.lang.String name);
41
42 public com.liferay.counter.model.Counter remove(java.lang.String name)
43 throws com.liferay.counter.NoSuchCounterException,
44 com.liferay.portal.kernel.exception.SystemException;
45
46 public com.liferay.counter.model.Counter updateImpl(
47 com.liferay.counter.model.Counter counter, boolean merge)
48 throws com.liferay.portal.kernel.exception.SystemException;
49
50 public com.liferay.counter.model.Counter findByPrimaryKey(
51 java.lang.String name)
52 throws com.liferay.counter.NoSuchCounterException,
53 com.liferay.portal.kernel.exception.SystemException;
54
55 public com.liferay.counter.model.Counter fetchByPrimaryKey(
56 java.lang.String name)
57 throws com.liferay.portal.kernel.exception.SystemException;
58
59 public java.util.List<com.liferay.counter.model.Counter> findAll()
60 throws com.liferay.portal.kernel.exception.SystemException;
61
62 public java.util.List<com.liferay.counter.model.Counter> findAll(
63 int start, int end)
64 throws com.liferay.portal.kernel.exception.SystemException;
65
66 public java.util.List<com.liferay.counter.model.Counter> findAll(
67 int start, int end,
68 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
69 throws com.liferay.portal.kernel.exception.SystemException;
70
71 public void removeAll()
72 throws com.liferay.portal.kernel.exception.SystemException;
73
74 public int countAll()
75 throws com.liferay.portal.kernel.exception.SystemException;
76 }