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, com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.kernel.exception.SystemException;
88
89 public void removeByName(java.lang.String name)
90 throws com.liferay.portal.NoSuchShardException,
91 com.liferay.portal.kernel.exception.SystemException;
92
93 public void removeByC_C(long classNameId, long classPK)
94 throws com.liferay.portal.NoSuchShardException,
95 com.liferay.portal.kernel.exception.SystemException;
96
97 public void removeAll()
98 throws com.liferay.portal.kernel.exception.SystemException;
99
100 public int countByName(java.lang.String name)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public int countByC_C(long classNameId, long classPK)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public int countAll()
107 throws com.liferay.portal.kernel.exception.SystemException;
108 }