com.liferay.portal.service.persistence
Interface ShardPersistence
- All Superinterfaces:
- BasePersistence
public interface ShardPersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
void |
cacheResult(java.util.List<Shard> shards)
|
void |
cacheResult(Shard shard)
|
void |
clearCache()
|
int |
countAll()
|
int |
countByC_C(long classNameId,
long classPK)
|
int |
countByName(java.lang.String name)
|
Shard |
create(long shardId)
|
Shard |
fetchByC_C(long classNameId,
long classPK)
|
Shard |
fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
|
Shard |
fetchByName(java.lang.String name)
|
Shard |
fetchByName(java.lang.String name,
boolean retrieveFromCache)
|
Shard |
fetchByPrimaryKey(long shardId)
|
java.util.List<Shard> |
findAll()
|
java.util.List<Shard> |
findAll(int start,
int end)
|
java.util.List<Shard> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Shard |
findByC_C(long classNameId,
long classPK)
|
Shard |
findByName(java.lang.String name)
|
Shard |
findByPrimaryKey(long shardId)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
Shard |
remove(long shardId)
|
Shard |
remove(Shard shard)
|
void |
removeAll()
|
void |
removeByC_C(long classNameId,
long classPK)
|
void |
removeByName(java.lang.String name)
|
Shard |
update(Shard shard)
Deprecated. Use update(Shard shard, boolean merge) . |
Shard |
update(Shard shard,
boolean merge)
Add, update, or merge, the entity. |
Shard |
updateImpl(Shard shard,
boolean merge)
|
cacheResult
void cacheResult(Shard shard)
cacheResult
void cacheResult(java.util.List<Shard> shards)
clearCache
void clearCache()
- Specified by:
clearCache
in interface BasePersistence
create
Shard create(long shardId)
remove
Shard remove(long shardId)
throws NoSuchShardException,
com.liferay.portal.SystemException
- Throws:
NoSuchShardException
com.liferay.portal.SystemException
remove
Shard remove(Shard shard)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
Shard update(Shard shard)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Shard shard, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
Shard update(Shard shard,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
shard
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when shard is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
Shard updateImpl(Shard shard,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
Shard findByPrimaryKey(long shardId)
throws NoSuchShardException,
com.liferay.portal.SystemException
- Throws:
NoSuchShardException
com.liferay.portal.SystemException
fetchByPrimaryKey
Shard fetchByPrimaryKey(long shardId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByName
Shard findByName(java.lang.String name)
throws NoSuchShardException,
com.liferay.portal.SystemException
- Throws:
NoSuchShardException
com.liferay.portal.SystemException
fetchByName
Shard fetchByName(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByName
Shard fetchByName(java.lang.String name,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_C
Shard findByC_C(long classNameId,
long classPK)
throws NoSuchShardException,
com.liferay.portal.SystemException
- Throws:
NoSuchShardException
com.liferay.portal.SystemException
fetchByC_C
Shard fetchByC_C(long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByC_C
Shard fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
java.util.List<Shard> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
java.util.List<Shard> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
java.util.List<Shard> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByName
void removeByName(java.lang.String name)
throws NoSuchShardException,
com.liferay.portal.SystemException
- Throws:
NoSuchShardException
com.liferay.portal.SystemException
removeByC_C
void removeByC_C(long classNameId,
long classPK)
throws NoSuchShardException,
com.liferay.portal.SystemException
- Throws:
NoSuchShardException
com.liferay.portal.SystemException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByName
int countByName(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_C
int countByC_C(long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException