com.liferay.portal.service
Interface ShardLocalService

All Known Implementing Classes:
ShardLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface ShardLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portal.service.impl.ShardLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
ShardLocalServiceUtil
Generated:

Method Summary
 Shard addShard(Shard shard)
           
 Shard addShard(java.lang.String className, long classPK, java.lang.String name)
           
 Shard createShard(long shardId)
           
 void deleteShard(long shardId)
           
 void deleteShard(Shard shard)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 Shard getShard(long shardId)
           
 Shard getShard(java.lang.String className, long classPK)
           
 java.util.List<Shard> getShards(int start, int end)
           
 int getShardsCount()
           
 Shard updateShard(Shard shard)
           
 Shard updateShard(Shard shard, boolean merge)
           
 

Method Detail

addShard

Shard addShard(Shard shard)
               throws SystemException
Throws:
SystemException

createShard

Shard createShard(long shardId)

deleteShard

void deleteShard(long shardId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteShard

void deleteShard(Shard shard)
                 throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getShard

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Shard getShard(long shardId)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

getShards

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Shard> getShards(int start,
                                                                         int end)
                                throws SystemException
Throws:
SystemException

getShardsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getShardsCount()
                   throws SystemException
Throws:
SystemException

updateShard

Shard updateShard(Shard shard)
                  throws SystemException
Throws:
SystemException

updateShard

Shard updateShard(Shard shard,
                  boolean merge)
                  throws SystemException
Throws:
SystemException

addShard

Shard addShard(java.lang.String className,
               long classPK,
               java.lang.String name)
               throws SystemException
Throws:
SystemException

getShard

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Shard getShard(java.lang.String className,
                                                        long classPK)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException