|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.ShardUtil
public class ShardUtil
The persistence utility for the shard service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
ShardPersistence,
ShardPersistenceImpl| Constructor Summary | |
|---|---|
ShardUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(List<Shard> shards)
Caches the shards in the entity cache if it is enabled. |
static void |
cacheResult(Shard shard)
Caches the shard in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(Shard shard)
|
static int |
countAll()
Counts all the shards. |
static int |
countByC_C(long classNameId,
long classPK)
Counts all the shards where classNameId = ? and classPK = ?. |
static int |
countByName(String name)
Counts all the shards where name = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static Shard |
create(long shardId)
Creates a new shard with the primary key. |
static Shard |
fetchByC_C(long classNameId,
long classPK)
Finds the shard where classNameId = ? and classPK = ? or returns null if it could not be found. |
static Shard |
fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
Finds the shard where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. |
static Shard |
fetchByName(String name)
Finds the shard where name = ? or returns null if it could not be found. |
static Shard |
fetchByName(String name,
boolean retrieveFromCache)
Finds the shard where name = ? or returns null if it could not be found, optionally using the finder cache. |
static Shard |
fetchByPrimaryKey(long shardId)
Finds the shard with the primary key or returns null if it could not be found. |
static List<Shard> |
findAll()
Finds all the shards. |
static List<Shard> |
findAll(int start,
int end)
Finds a range of all the shards. |
static List<Shard> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shards. |
static Shard |
findByC_C(long classNameId,
long classPK)
Finds the shard where classNameId = ? and classPK = ? or throws a NoSuchShardException if it could not be found. |
static Shard |
findByName(String name)
Finds the shard where name = ? or throws a NoSuchShardException if it could not be found. |
static Shard |
findByPrimaryKey(long shardId)
Finds the shard with the primary key or throws a NoSuchShardException if it could not be found. |
static List<Shard> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<Shard> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<Shard> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static ShardPersistence |
getPersistence()
|
static Shard |
remove(long shardId)
Removes the shard with the primary key from the database. |
static Shard |
remove(Shard shard)
|
static void |
removeAll()
Removes all the shards from the database. |
static void |
removeByC_C(long classNameId,
long classPK)
Removes the shard where classNameId = ? and classPK = ? from the database. |
static void |
removeByName(String name)
Removes the shard where name = ? from the database. |
void |
setPersistence(ShardPersistence persistence)
|
static Shard |
update(Shard shard,
boolean merge)
|
static Shard |
update(Shard shard,
boolean merge,
ServiceContext serviceContext)
|
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 |
|---|
public ShardUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(Shard shard)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<Shard> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<Shard> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<Shard> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Shard remove(Shard shard)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static Shard update(Shard shard,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static Shard update(Shard shard,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(Shard shard)
shard - the shard to cachepublic static void cacheResult(List<Shard> shards)
shards - the shards to cachepublic static Shard create(long shardId)
shardId - the primary key for the new shard
public static Shard remove(long shardId)
throws NoSuchShardException,
SystemException
shardId - the primary key of the shard to remove
NoSuchShardException - if a shard with the primary key could not be found
SystemException - if a system exception occurred
public static Shard updateImpl(Shard shard,
boolean merge)
throws SystemException
SystemException
public static Shard findByPrimaryKey(long shardId)
throws NoSuchShardException,
SystemException
NoSuchShardException if it could not be found.
shardId - the primary key of the shard to find
NoSuchShardException - if a shard with the primary key could not be found
SystemException - if a system exception occurred
public static Shard fetchByPrimaryKey(long shardId)
throws SystemException
null if it could not be found.
shardId - the primary key of the shard to find
null if a shard with the primary key could not be found
SystemException - if a system exception occurred
public static Shard findByName(String name)
throws NoSuchShardException,
SystemException
NoSuchShardException if it could not be found.
name - the name to search with
NoSuchShardException - if a matching shard could not be found
SystemException - if a system exception occurred
public static Shard fetchByName(String name)
throws SystemException
null if it could not be found. Uses the finder cache.
name - the name to search with
null if a matching shard could not be found
SystemException - if a system exception occurred
public static Shard fetchByName(String name,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
name - the name to search with
null if a matching shard could not be found
SystemException - if a system exception occurred
public static Shard findByC_C(long classNameId,
long classPK)
throws NoSuchShardException,
SystemException
NoSuchShardException if it could not be found.
classNameId - the class name id to search withclassPK - the class p k to search with
NoSuchShardException - if a matching shard could not be found
SystemException - if a system exception occurred
public static Shard fetchByC_C(long classNameId,
long classPK)
throws SystemException
null if it could not be found. Uses the finder cache.
classNameId - the class name id to search withclassPK - the class p k to search with
null if a matching shard could not be found
SystemException - if a system exception occurred
public static Shard fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
classNameId - the class name id to search withclassPK - the class p k to search with
null if a matching shard could not be found
SystemException - if a system exception occurred
public static List<Shard> findAll()
throws SystemException
SystemException - if a system exception occurred
public static List<Shard> findAll(int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
start - the lower bound of the range of shards to returnend - the upper bound of the range of shards to return (not inclusive)
SystemException - if a system exception occurred
public static List<Shard> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
start - the lower bound of the range of shards to returnend - the upper bound of the range of shards to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static void removeByName(String name)
throws NoSuchShardException,
SystemException
name - the name to search with
SystemException - if a system exception occurred
NoSuchShardException
public static void removeByC_C(long classNameId,
long classPK)
throws NoSuchShardException,
SystemException
classNameId - the class name id to search withclassPK - the class p k to search with
SystemException - if a system exception occurred
NoSuchShardException
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByName(String name)
throws SystemException
name - the name to search with
SystemException - if a system exception occurred
public static int countByC_C(long classNameId,
long classPK)
throws SystemException
classNameId - the class name id to search withclassPK - the class p k to search with
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static ShardPersistence getPersistence()
public void setPersistence(ShardPersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||