|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.service.persistence.RepositoryEntryUtil
@ProviderType public class RepositoryEntryUtil
The persistence utility for the repository entry service. This utility wraps RepositoryEntryPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
RepositoryEntryPersistence
,
RepositoryEntryPersistenceImpl
Constructor Summary | |
---|---|
RepositoryEntryUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<RepositoryEntry> repositoryEntries)
Caches the repository entries in the entity cache if it is enabled. |
static void |
cacheResult(RepositoryEntry repositoryEntry)
Caches the repository entry in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(RepositoryEntry repositoryEntry)
|
static int |
countAll()
Returns the number of repository entries. |
static int |
countByR_M(long repositoryId,
String mappedId)
Returns the number of repository entries where repositoryId = ? and mappedId = ?. |
static int |
countByRepositoryId(long repositoryId)
Returns the number of repository entries where repositoryId = ?. |
static int |
countByUuid_C(String uuid,
long companyId)
Returns the number of repository entries where uuid = ? and companyId = ?. |
static int |
countByUUID_G(String uuid,
long groupId)
Returns the number of repository entries where uuid = ? and groupId = ?. |
static int |
countByUuid(String uuid)
Returns the number of repository entries where uuid = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static RepositoryEntry |
create(long repositoryEntryId)
Creates a new repository entry with the primary key. |
static RepositoryEntry |
fetchByPrimaryKey(long repositoryEntryId)
Returns the repository entry with the primary key or returns null if it could not be found. |
static RepositoryEntry |
fetchByR_M(long repositoryId,
String mappedId)
Returns the repository entry where repositoryId = ? and mappedId = ? or returns null if it could not be found. |
static RepositoryEntry |
fetchByR_M(long repositoryId,
String mappedId,
boolean retrieveFromCache)
Returns the repository entry where repositoryId = ? and mappedId = ? or returns null if it could not be found, optionally using the finder cache. |
static RepositoryEntry |
fetchByRepositoryId_First(long repositoryId,
OrderByComparator orderByComparator)
Returns the first repository entry in the ordered set where repositoryId = ?. |
static RepositoryEntry |
fetchByRepositoryId_Last(long repositoryId,
OrderByComparator orderByComparator)
Returns the last repository entry in the ordered set where repositoryId = ?. |
static RepositoryEntry |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first repository entry in the ordered set where uuid = ? and companyId = ?. |
static RepositoryEntry |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last repository entry in the ordered set where uuid = ? and companyId = ?. |
static RepositoryEntry |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first repository entry in the ordered set where uuid = ?. |
static RepositoryEntry |
fetchByUUID_G(String uuid,
long groupId)
Returns the repository entry where uuid = ? and groupId = ? or returns null if it could not be found. |
static RepositoryEntry |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the repository entry where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. |
static RepositoryEntry |
fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last repository entry in the ordered set where uuid = ?. |
static List<RepositoryEntry> |
findAll()
Returns all the repository entries. |
static List<RepositoryEntry> |
findAll(int start,
int end)
Returns a range of all the repository entries. |
static List<RepositoryEntry> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the repository entries. |
static RepositoryEntry |
findByPrimaryKey(long repositoryEntryId)
Returns the repository entry with the primary key or throws a NoSuchRepositoryEntryException if it could not be found. |
static RepositoryEntry |
findByR_M(long repositoryId,
String mappedId)
Returns the repository entry where repositoryId = ? and mappedId = ? or throws a NoSuchRepositoryEntryException if it could not be found. |
static RepositoryEntry |
findByRepositoryId_First(long repositoryId,
OrderByComparator orderByComparator)
Returns the first repository entry in the ordered set where repositoryId = ?. |
static RepositoryEntry |
findByRepositoryId_Last(long repositoryId,
OrderByComparator orderByComparator)
Returns the last repository entry in the ordered set where repositoryId = ?. |
static RepositoryEntry[] |
findByRepositoryId_PrevAndNext(long repositoryEntryId,
long repositoryId,
OrderByComparator orderByComparator)
Returns the repository entries before and after the current repository entry in the ordered set where repositoryId = ?. |
static List<RepositoryEntry> |
findByRepositoryId(long repositoryId)
Returns all the repository entries where repositoryId = ?. |
static List<RepositoryEntry> |
findByRepositoryId(long repositoryId,
int start,
int end)
Returns a range of all the repository entries where repositoryId = ?. |
static List<RepositoryEntry> |
findByRepositoryId(long repositoryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the repository entries where repositoryId = ?. |
static RepositoryEntry |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first repository entry in the ordered set where uuid = ? and companyId = ?. |
static RepositoryEntry |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last repository entry in the ordered set where uuid = ? and companyId = ?. |
static RepositoryEntry[] |
findByUuid_C_PrevAndNext(long repositoryEntryId,
String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the repository entries before and after the current repository entry in the ordered set where uuid = ? and companyId = ?. |
static List<RepositoryEntry> |
findByUuid_C(String uuid,
long companyId)
Returns all the repository entries where uuid = ? and companyId = ?. |
static List<RepositoryEntry> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the repository entries where uuid = ? and companyId = ?. |
static List<RepositoryEntry> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the repository entries where uuid = ? and companyId = ?. |
static RepositoryEntry |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first repository entry in the ordered set where uuid = ?. |
static RepositoryEntry |
findByUUID_G(String uuid,
long groupId)
Returns the repository entry where uuid = ? and groupId = ? or throws a NoSuchRepositoryEntryException if it could not be found. |
static RepositoryEntry |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last repository entry in the ordered set where uuid = ?. |
static RepositoryEntry[] |
findByUuid_PrevAndNext(long repositoryEntryId,
String uuid,
OrderByComparator orderByComparator)
Returns the repository entries before and after the current repository entry in the ordered set where uuid = ?. |
static List<RepositoryEntry> |
findByUuid(String uuid)
Returns all the repository entries where uuid = ?. |
static List<RepositoryEntry> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the repository entries where uuid = ?. |
static List<RepositoryEntry> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the repository entries where uuid = ?. |
static List<RepositoryEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<RepositoryEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<RepositoryEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static RepositoryEntryPersistence |
getPersistence()
|
static RepositoryEntry |
remove(long repositoryEntryId)
Removes the repository entry with the primary key from the database. |
static void |
removeAll()
Removes all the repository entries from the database. |
static RepositoryEntry |
removeByR_M(long repositoryId,
String mappedId)
Removes the repository entry where repositoryId = ? and mappedId = ? from the database. |
static void |
removeByRepositoryId(long repositoryId)
Removes all the repository entries where repositoryId = ? from the database. |
static void |
removeByUuid_C(String uuid,
long companyId)
Removes all the repository entries where uuid = ? and companyId = ? from the database. |
static RepositoryEntry |
removeByUUID_G(String uuid,
long groupId)
Removes the repository entry where uuid = ? and groupId = ? from the database. |
static void |
removeByUuid(String uuid)
Removes all the repository entries where uuid = ? from the database. |
void |
setPersistence(RepositoryEntryPersistence persistence)
Deprecated. As of 6.2.0 |
static RepositoryEntry |
update(RepositoryEntry repositoryEntry)
|
static RepositoryEntry |
update(RepositoryEntry repositoryEntry,
ServiceContext serviceContext)
|
static RepositoryEntry |
updateImpl(RepositoryEntry repositoryEntry)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryEntryUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(RepositoryEntry repositoryEntry)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<RepositoryEntry> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<RepositoryEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<RepositoryEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static RepositoryEntry update(RepositoryEntry repositoryEntry) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static RepositoryEntry update(RepositoryEntry repositoryEntry, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)
public static List<RepositoryEntry> findByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> findByUuid(String uuid, 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of repository entriesend
- the upper bound of the range of repository entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> findByUuid(String uuid, 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of repository entriesend
- the upper bound of the range of repository entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static RepositoryEntry findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchRepositoryEntryException, SystemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRepositoryEntryException
- if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchRepositoryEntryException, SystemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRepositoryEntryException
- if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry[] findByUuid_PrevAndNext(long repositoryEntryId, String uuid, OrderByComparator orderByComparator) throws NoSuchRepositoryEntryException, SystemException
repositoryEntryId
- the primary key of the current repository entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRepositoryEntryException
- if a repository entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredpublic static int countByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredpublic static RepositoryEntry findByUUID_G(String uuid, long groupId) throws NoSuchRepositoryEntryException, SystemException
NoSuchRepositoryEntryException
if it could not be found.
uuid
- the uuidgroupId
- the group ID
NoSuchRepositoryEntryException
- if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByUUID_G(String uuid, long groupId) throws SystemException
null
if it could not be found. Uses the finder cache.
uuid
- the uuidgroupId
- the group ID
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to use the finder cache
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry removeByUUID_G(String uuid, long groupId) throws NoSuchRepositoryEntryException, SystemException
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchRepositoryEntryException
public static int countByUUID_G(String uuid, long groupId) throws SystemException
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> findByUuid_C(String uuid, long companyId) throws SystemException
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> findByUuid_C(String uuid, long companyId, 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of repository entriesend
- the upper bound of the range of repository entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> findByUuid_C(String uuid, long companyId, 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of repository entriesend
- the upper bound of the range of repository entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static RepositoryEntry findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchRepositoryEntryException, SystemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRepositoryEntryException
- if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchRepositoryEntryException, SystemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRepositoryEntryException
- if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry[] findByUuid_C_PrevAndNext(long repositoryEntryId, String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchRepositoryEntryException, SystemException
repositoryEntryId
- the primary key of the current repository entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRepositoryEntryException
- if a repository entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByUuid_C(String uuid, long companyId) throws SystemException
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic static int countByUuid_C(String uuid, long companyId) throws SystemException
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> findByRepositoryId(long repositoryId) throws SystemException
repositoryId
- the repository ID
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> findByRepositoryId(long repositoryId, 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
repositoryId
- the repository IDstart
- the lower bound of the range of repository entriesend
- the upper bound of the range of repository entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> findByRepositoryId(long repositoryId, 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
repositoryId
- the repository IDstart
- the lower bound of the range of repository entriesend
- the upper bound of the range of repository entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static RepositoryEntry findByRepositoryId_First(long repositoryId, OrderByComparator orderByComparator) throws NoSuchRepositoryEntryException, SystemException
repositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRepositoryEntryException
- if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByRepositoryId_First(long repositoryId, OrderByComparator orderByComparator) throws SystemException
repositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry findByRepositoryId_Last(long repositoryId, OrderByComparator orderByComparator) throws NoSuchRepositoryEntryException, SystemException
repositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRepositoryEntryException
- if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByRepositoryId_Last(long repositoryId, OrderByComparator orderByComparator) throws SystemException
repositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry[] findByRepositoryId_PrevAndNext(long repositoryEntryId, long repositoryId, OrderByComparator orderByComparator) throws NoSuchRepositoryEntryException, SystemException
repositoryEntryId
- the primary key of the current repository entryrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRepositoryEntryException
- if a repository entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByRepositoryId(long repositoryId) throws SystemException
repositoryId
- the repository ID
SystemException
- if a system exception occurredpublic static int countByRepositoryId(long repositoryId) throws SystemException
repositoryId
- the repository ID
SystemException
- if a system exception occurredpublic static RepositoryEntry findByR_M(long repositoryId, String mappedId) throws NoSuchRepositoryEntryException, SystemException
NoSuchRepositoryEntryException
if it could not be found.
repositoryId
- the repository IDmappedId
- the mapped ID
NoSuchRepositoryEntryException
- if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByR_M(long repositoryId, String mappedId) throws SystemException
null
if it could not be found. Uses the finder cache.
repositoryId
- the repository IDmappedId
- the mapped ID
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByR_M(long repositoryId, String mappedId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
repositoryId
- the repository IDmappedId
- the mapped IDretrieveFromCache
- whether to use the finder cache
null
if a matching repository entry could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry removeByR_M(long repositoryId, String mappedId) throws NoSuchRepositoryEntryException, SystemException
repositoryId
- the repository IDmappedId
- the mapped ID
SystemException
- if a system exception occurred
NoSuchRepositoryEntryException
public static int countByR_M(long repositoryId, String mappedId) throws SystemException
repositoryId
- the repository IDmappedId
- the mapped ID
SystemException
- if a system exception occurredpublic static void cacheResult(RepositoryEntry repositoryEntry)
repositoryEntry
- the repository entrypublic static void cacheResult(List<RepositoryEntry> repositoryEntries)
repositoryEntries
- the repository entriespublic static RepositoryEntry create(long repositoryEntryId)
repositoryEntryId
- the primary key for the new repository entry
public static RepositoryEntry remove(long repositoryEntryId) throws NoSuchRepositoryEntryException, SystemException
repositoryEntryId
- the primary key of the repository entry
NoSuchRepositoryEntryException
- if a repository entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry updateImpl(RepositoryEntry repositoryEntry) throws SystemException
SystemException
public static RepositoryEntry findByPrimaryKey(long repositoryEntryId) throws NoSuchRepositoryEntryException, SystemException
NoSuchRepositoryEntryException
if it could not be found.
repositoryEntryId
- the primary key of the repository entry
NoSuchRepositoryEntryException
- if a repository entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static RepositoryEntry fetchByPrimaryKey(long repositoryEntryId) throws SystemException
null
if it could not be found.
repositoryEntryId
- the primary key of the repository entry
null
if a repository entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of repository entriesend
- the upper bound of the range of repository entries (not inclusive)
SystemException
- if a system exception occurredpublic static List<RepositoryEntry> 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of repository entriesend
- the upper bound of the range of repository entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static RepositoryEntryPersistence getPersistence()
public void setPersistence(RepositoryEntryPersistence persistence)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |