1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Shard;
18
19
32 public interface ShardPersistence extends BasePersistence<Shard> {
33 public void cacheResult(com.liferay.portal.model.Shard shard);
34
35 public void cacheResult(
36 java.util.List<com.liferay.portal.model.Shard> shards);
37
38 public com.liferay.portal.model.Shard create(long shardId);
39
40 public com.liferay.portal.model.Shard remove(long shardId)
41 throws com.liferay.portal.NoSuchShardException,
42 com.liferay.portal.kernel.exception.SystemException;
43
44 public com.liferay.portal.model.Shard updateImpl(
45 com.liferay.portal.model.Shard shard, boolean merge)
46 throws com.liferay.portal.kernel.exception.SystemException;
47
48 public com.liferay.portal.model.Shard findByPrimaryKey(long shardId)
49 throws com.liferay.portal.NoSuchShardException,
50 com.liferay.portal.kernel.exception.SystemException;
51
52 public com.liferay.portal.model.Shard fetchByPrimaryKey(long shardId)
53 throws com.liferay.portal.kernel.exception.SystemException;
54
55 public com.liferay.portal.model.Shard findByName(java.lang.String name)
56 throws com.liferay.portal.NoSuchShardException,
57 com.liferay.portal.kernel.exception.SystemException;
58
59 public com.liferay.portal.model.Shard fetchByName(java.lang.String name)
60 throws com.liferay.portal.kernel.exception.SystemException;
61
62 public com.liferay.portal.model.Shard fetchByName(java.lang.String name,
63 boolean retrieveFromCache)
64 throws com.liferay.portal.kernel.exception.SystemException;
65
66 public com.liferay.portal.model.Shard findByC_C(long classNameId,
67 long classPK)
68 throws com.liferay.portal.NoSuchShardException,
69 com.liferay.portal.kernel.exception.SystemException;
70
71 public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
72 long classPK)
73 throws com.liferay.portal.kernel.exception.SystemException;
74
75 public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
76 long classPK, boolean retrieveFromCache)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public java.util.List<com.liferay.portal.model.Shard> findAll()
80 throws com.liferay.portal.kernel.exception.SystemException;
81
82 public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
83 int end) throws com.liferay.portal.kernel.exception.SystemException;
84
85 public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
86 int end,
87 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88 throws com.liferay.portal.kernel.exception.SystemException;
89
90 public void removeByName(java.lang.String name)
91 throws com.liferay.portal.NoSuchShardException,
92 com.liferay.portal.kernel.exception.SystemException;
93
94 public void removeByC_C(long classNameId, long classPK)
95 throws com.liferay.portal.NoSuchShardException,
96 com.liferay.portal.kernel.exception.SystemException;
97
98 public void removeAll()
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public int countByName(java.lang.String name)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public int countByC_C(long classNameId, long classPK)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public int countAll()
108 throws com.liferay.portal.kernel.exception.SystemException;
109 }