001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.model.Shard;
018
019
025 public interface ShardPersistence extends BasePersistence<Shard> {
026 public void cacheResult(com.liferay.portal.model.Shard shard);
027
028 public void cacheResult(
029 java.util.List<com.liferay.portal.model.Shard> shards);
030
031 public com.liferay.portal.model.Shard create(long shardId);
032
033 public com.liferay.portal.model.Shard remove(long shardId)
034 throws com.liferay.portal.NoSuchShardException,
035 com.liferay.portal.kernel.exception.SystemException;
036
037 public com.liferay.portal.model.Shard updateImpl(
038 com.liferay.portal.model.Shard shard, boolean merge)
039 throws com.liferay.portal.kernel.exception.SystemException;
040
041 public com.liferay.portal.model.Shard findByPrimaryKey(long shardId)
042 throws com.liferay.portal.NoSuchShardException,
043 com.liferay.portal.kernel.exception.SystemException;
044
045 public com.liferay.portal.model.Shard fetchByPrimaryKey(long shardId)
046 throws com.liferay.portal.kernel.exception.SystemException;
047
048 public com.liferay.portal.model.Shard findByName(java.lang.String name)
049 throws com.liferay.portal.NoSuchShardException,
050 com.liferay.portal.kernel.exception.SystemException;
051
052 public com.liferay.portal.model.Shard fetchByName(java.lang.String name)
053 throws com.liferay.portal.kernel.exception.SystemException;
054
055 public com.liferay.portal.model.Shard fetchByName(java.lang.String name,
056 boolean retrieveFromCache)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059 public com.liferay.portal.model.Shard findByC_C(long classNameId,
060 long classPK)
061 throws com.liferay.portal.NoSuchShardException,
062 com.liferay.portal.kernel.exception.SystemException;
063
064 public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
065 long classPK)
066 throws com.liferay.portal.kernel.exception.SystemException;
067
068 public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
069 long classPK, boolean retrieveFromCache)
070 throws com.liferay.portal.kernel.exception.SystemException;
071
072 public java.util.List<com.liferay.portal.model.Shard> findAll()
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
076 int end) throws com.liferay.portal.kernel.exception.SystemException;
077
078 public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
079 int end,
080 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
081 throws com.liferay.portal.kernel.exception.SystemException;
082
083 public void removeByName(java.lang.String name)
084 throws com.liferay.portal.NoSuchShardException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087 public void removeByC_C(long classNameId, long classPK)
088 throws com.liferay.portal.NoSuchShardException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 public void removeAll()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public int countByName(java.lang.String name)
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097 public int countByC_C(long classNameId, long classPK)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public int countAll()
101 throws com.liferay.portal.kernel.exception.SystemException;
102 }