|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShardPersistence
The persistence interface for the shard service.
Never modify this interface directly. Modify service.xml and rerun ServiceBuilder to regnerate this interface.
ShardPersistenceImpl,
ShardUtil| Method Summary | |
|---|---|
void |
cacheResult(List<Shard> shards)
Caches the shards in the entity cache if it is enabled. |
void |
cacheResult(Shard shard)
Caches the shard in the entity cache if it is enabled. |
int |
countAll()
Counts all the shards. |
int |
countByC_C(long classNameId,
long classPK)
Counts all the shards where classNameId = ? and classPK = ?. |
int |
countByName(String name)
Counts all the shards where name = ?. |
Shard |
create(long shardId)
Creates a new shard with the primary key. |
Shard |
fetchByC_C(long classNameId,
long classPK)
Finds the shard where classNameId = ? and classPK = ? or returns null if it could not be found. |
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. |
Shard |
fetchByName(String name)
Finds the shard where name = ? or returns null if it could not be found. |
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. |
Shard |
fetchByPrimaryKey(long shardId)
Finds the shard with the primary key or returns null if it could not be found. |
List<Shard> |
findAll()
Finds all the shards. |
List<Shard> |
findAll(int start,
int end)
Finds a range of all the shards. |
List<Shard> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shards. |
Shard |
findByC_C(long classNameId,
long classPK)
Finds the shard where classNameId = ? and classPK = ? or throws a NoSuchShardException if it could not be found. |
Shard |
findByName(String name)
Finds the shard where name = ? or throws a NoSuchShardException if it could not be found. |
Shard |
findByPrimaryKey(long shardId)
Finds the shard with the primary key or throws a NoSuchShardException if it could not be found. |
Shard |
remove(long shardId)
Removes the shard with the primary key from the database. |
void |
removeAll()
Removes all the shards from the database. |
void |
removeByC_C(long classNameId,
long classPK)
Removes the shard where classNameId = ? and classPK = ? from the database. |
void |
removeByName(String name)
Removes the shard where name = ? from the database. |
Shard |
updateImpl(Shard shard,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(Shard shard)
shard - the shard to cachevoid cacheResult(List<Shard> shards)
shards - the shards to cacheShard create(long shardId)
shardId - the primary key for the new shard
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
Shard updateImpl(Shard shard,
boolean merge)
throws SystemException
SystemException
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
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
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
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
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
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
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
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
List<Shard> findAll()
throws SystemException
SystemException - if a system exception occurred
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
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
void removeByName(String name)
throws NoSuchShardException,
SystemException
name - the name to search with
SystemException - if a system exception occurred
NoSuchShardException
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
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByName(String name)
throws SystemException
name - the name to search with
SystemException - if a system exception occurred
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
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||