001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface ShardLocalService {
043 public com.liferay.portal.model.Shard addShard(
044 com.liferay.portal.model.Shard shard)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portal.model.Shard createShard(long shardId);
048
049 public void deleteShard(long shardId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 public void deleteShard(com.liferay.portal.model.Shard shard)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 @SuppressWarnings("unchecked")
057 public java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 @SuppressWarnings("unchecked")
062 public java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException;
065
066 @SuppressWarnings("unchecked")
067 public java.util.List dynamicQuery(
068 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069 int end,
070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071 throws com.liferay.portal.kernel.exception.SystemException;
072
073 public long dynamicQueryCount(
074 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
075 throws com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portal.model.Shard getShard(long shardId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public java.util.List<com.liferay.portal.model.Shard> getShards(int start,
084 int end) throws com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public int getShardsCount()
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.model.Shard updateShard(
091 com.liferay.portal.model.Shard shard)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.model.Shard updateShard(
095 com.liferay.portal.model.Shard shard, boolean merge)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portal.model.Shard addShard(java.lang.String className,
099 long classPK, java.lang.String name)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public com.liferay.portal.model.Shard getShard(java.lang.String className,
104 long classPK)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107 }