com.liferay.portal.service.persistence
Class ShardUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.ShardUtil

public class ShardUtil
extends java.lang.Object

View Source

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

Author:
Brian Wing Shun Chan
See Also:
ShardPersistence, ShardPersistenceImpl
Generated:

Constructor Summary
ShardUtil()
           
 
Method Summary
static void cacheResult(java.util.List<Shard> shards)
           
static void cacheResult(Shard shard)
           
static void clearCache()
           
static int countAll()
           
static int countByC_C(long classNameId, long classPK)
           
static int countByName(java.lang.String name)
           
static Shard create(long shardId)
           
static Shard fetchByC_C(long classNameId, long classPK)
           
static Shard fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
           
static Shard fetchByName(java.lang.String name)
           
static Shard fetchByName(java.lang.String name, boolean retrieveFromCache)
           
static Shard fetchByPrimaryKey(long shardId)
           
static java.util.List<Shard> findAll()
           
static java.util.List<Shard> findAll(int start, int end)
           
static java.util.List<Shard> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Shard findByC_C(long classNameId, long classPK)
           
static Shard findByName(java.lang.String name)
           
static Shard findByPrimaryKey(long shardId)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static ShardPersistence getPersistence()
           
static Shard remove(long shardId)
           
static Shard remove(Shard shard)
           
static void removeAll()
           
static void removeByC_C(long classNameId, long classPK)
           
static void removeByName(java.lang.String name)
           
 void setPersistence(ShardPersistence persistence)
           
static Shard update(Shard shard, boolean merge)
           
static Shard updateImpl(Shard shard, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardUtil

public ShardUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

remove

public static Shard remove(Shard shard)
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static Shard update(Shard shard,
                           boolean merge)
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

cacheResult

public static void cacheResult(Shard shard)

cacheResult

public static void cacheResult(java.util.List<Shard> shards)

create

public static Shard create(long shardId)

remove

public static Shard remove(long shardId)
                    throws NoSuchShardException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchShardException
com.liferay.portal.kernel.exception.SystemException

updateImpl

public static Shard updateImpl(Shard shard,
                               boolean merge)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByPrimaryKey

public static Shard findByPrimaryKey(long shardId)
                              throws NoSuchShardException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchShardException
com.liferay.portal.kernel.exception.SystemException

fetchByPrimaryKey

public static Shard fetchByPrimaryKey(long shardId)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByName

public static Shard findByName(java.lang.String name)
                        throws NoSuchShardException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchShardException
com.liferay.portal.kernel.exception.SystemException

fetchByName

public static Shard fetchByName(java.lang.String name)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

fetchByName

public static Shard fetchByName(java.lang.String name,
                                boolean retrieveFromCache)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_C

public static Shard findByC_C(long classNameId,
                              long classPK)
                       throws NoSuchShardException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchShardException
com.liferay.portal.kernel.exception.SystemException

fetchByC_C

public static Shard fetchByC_C(long classNameId,
                               long classPK)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

fetchByC_C

public static Shard fetchByC_C(long classNameId,
                               long classPK,
                               boolean retrieveFromCache)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

public static java.util.List<Shard> findAll()
                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

public static java.util.List<Shard> findAll(int start,
                                            int end)
                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

public static java.util.List<Shard> findAll(int start,
                                            int end,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeByName

public static void removeByName(java.lang.String name)
                         throws NoSuchShardException,
                                com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchShardException
com.liferay.portal.kernel.exception.SystemException

removeByC_C

public static void removeByC_C(long classNameId,
                               long classPK)
                        throws NoSuchShardException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchShardException
com.liferay.portal.kernel.exception.SystemException

removeAll

public static void removeAll()
                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countByName

public static int countByName(java.lang.String name)
                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countByC_C

public static int countByC_C(long classNameId,
                             long classPK)
                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getPersistence

public static ShardPersistence getPersistence()

setPersistence

public void setPersistence(ShardPersistence persistence)