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.SystemException;
43
44
47 public com.liferay.portal.model.Shard update(
48 com.liferay.portal.model.Shard shard)
49 throws com.liferay.portal.SystemException;
50
51 public com.liferay.portal.model.Shard updateImpl(
52 com.liferay.portal.model.Shard shard, boolean merge)
53 throws com.liferay.portal.SystemException;
54
55 public com.liferay.portal.model.Shard findByPrimaryKey(long shardId)
56 throws com.liferay.portal.NoSuchShardException,
57 com.liferay.portal.SystemException;
58
59 public com.liferay.portal.model.Shard fetchByPrimaryKey(long shardId)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portal.model.Shard findByName(java.lang.String name)
63 throws com.liferay.portal.NoSuchShardException,
64 com.liferay.portal.SystemException;
65
66 public com.liferay.portal.model.Shard fetchByName(java.lang.String name)
67 throws com.liferay.portal.SystemException;
68
69 public com.liferay.portal.model.Shard fetchByName(java.lang.String name,
70 boolean retrieveFromCache) throws com.liferay.portal.SystemException;
71
72 public com.liferay.portal.model.Shard findByC_C(long classNameId,
73 long classPK)
74 throws com.liferay.portal.NoSuchShardException,
75 com.liferay.portal.SystemException;
76
77 public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
78 long classPK) throws com.liferay.portal.SystemException;
79
80 public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
81 long classPK, boolean retrieveFromCache)
82 throws com.liferay.portal.SystemException;
83
84 public java.util.List<com.liferay.portal.model.Shard> findAll()
85 throws com.liferay.portal.SystemException;
86
87 public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
88 int end) throws com.liferay.portal.SystemException;
89
90 public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
91 int end,
92 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93 throws com.liferay.portal.SystemException;
94
95 public void removeByName(java.lang.String name)
96 throws com.liferay.portal.NoSuchShardException,
97 com.liferay.portal.SystemException;
98
99 public void removeByC_C(long classNameId, long classPK)
100 throws com.liferay.portal.NoSuchShardException,
101 com.liferay.portal.SystemException;
102
103 public void removeAll() throws com.liferay.portal.SystemException;
104
105 public int countByName(java.lang.String name)
106 throws com.liferay.portal.SystemException;
107
108 public int countByC_C(long classNameId, long classPK)
109 throws com.liferay.portal.SystemException;
110
111 public int countAll() throws com.liferay.portal.SystemException;
112 }