1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface ShardPersistence extends BasePersistence {
32 public void cacheResult(com.liferay.portal.model.Shard shard);
33
34 public void cacheResult(
35 java.util.List<com.liferay.portal.model.Shard> shards);
36
37 public void clearCache();
38
39 public com.liferay.portal.model.Shard create(long shardId);
40
41 public com.liferay.portal.model.Shard remove(long shardId)
42 throws com.liferay.portal.NoSuchShardException,
43 com.liferay.portal.SystemException;
44
45 public com.liferay.portal.model.Shard remove(
46 com.liferay.portal.model.Shard shard)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portal.model.Shard update(
53 com.liferay.portal.model.Shard shard)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portal.model.Shard update(
70 com.liferay.portal.model.Shard shard, boolean merge)
71 throws com.liferay.portal.SystemException;
72
73 public com.liferay.portal.model.Shard updateImpl(
74 com.liferay.portal.model.Shard shard, boolean merge)
75 throws com.liferay.portal.SystemException;
76
77 public com.liferay.portal.model.Shard findByPrimaryKey(long shardId)
78 throws com.liferay.portal.NoSuchShardException,
79 com.liferay.portal.SystemException;
80
81 public com.liferay.portal.model.Shard fetchByPrimaryKey(long shardId)
82 throws com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Shard findByName(java.lang.String name)
85 throws com.liferay.portal.NoSuchShardException,
86 com.liferay.portal.SystemException;
87
88 public com.liferay.portal.model.Shard fetchByName(java.lang.String name)
89 throws com.liferay.portal.SystemException;
90
91 public com.liferay.portal.model.Shard fetchByName(java.lang.String name,
92 boolean retrieveFromCache) throws com.liferay.portal.SystemException;
93
94 public com.liferay.portal.model.Shard findByC_C(long classNameId,
95 long classPK)
96 throws com.liferay.portal.NoSuchShardException,
97 com.liferay.portal.SystemException;
98
99 public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
100 long classPK) throws com.liferay.portal.SystemException;
101
102 public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
103 long classPK, boolean retrieveFromCache)
104 throws com.liferay.portal.SystemException;
105
106 public java.util.List<Object> findWithDynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108 throws com.liferay.portal.SystemException;
109
110 public java.util.List<Object> findWithDynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.SystemException;
113
114 public java.util.List<com.liferay.portal.model.Shard> findAll()
115 throws com.liferay.portal.SystemException;
116
117 public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
118 int end) throws com.liferay.portal.SystemException;
119
120 public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
121 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws com.liferay.portal.SystemException;
123
124 public void removeByName(java.lang.String name)
125 throws com.liferay.portal.NoSuchShardException,
126 com.liferay.portal.SystemException;
127
128 public void removeByC_C(long classNameId, long classPK)
129 throws com.liferay.portal.NoSuchShardException,
130 com.liferay.portal.SystemException;
131
132 public void removeAll() throws com.liferay.portal.SystemException;
133
134 public int countByName(java.lang.String name)
135 throws com.liferay.portal.SystemException;
136
137 public int countByC_C(long classNameId, long classPK)
138 throws com.liferay.portal.SystemException;
139
140 public int countAll() throws com.liferay.portal.SystemException;
141 }