Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Class RepositoryEntryUtil

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

@ProviderType
public class RepositoryEntryUtil
extends Object

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

See Also:
RepositoryEntryPersistence, RepositoryEntryPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

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

RepositoryEntryUtil

public RepositoryEntryUtil()
Method Detail

clearCache

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

clearCache

public static void clearCache(RepositoryEntry repositoryEntry)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<RepositoryEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<RepositoryEntry> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                         int start,
                                                         int end)
                                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<RepositoryEntry> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                         int start,
                                                         int end,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static RepositoryEntry update(RepositoryEntry repositoryEntry)
                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static RepositoryEntry update(RepositoryEntry repositoryEntry,
                                     ServiceContext serviceContext)
                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByUuid

public static List<RepositoryEntry> findByUuid(String uuid)
                                        throws SystemException
Returns all the repository entries where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching repository entries
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<RepositoryEntry> findByUuid(String uuid,
                                               int start,
                                               int end)
                                        throws SystemException
Returns a range of all the repository entries where uuid = ?.

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.

Parameters:
uuid - the uuid
start - the lower bound of the range of repository entries
end - the upper bound of the range of repository entries (not inclusive)
Returns:
the range of matching repository entries
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<RepositoryEntry> findByUuid(String uuid,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the repository entries where uuid = ?.

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.

Parameters:
uuid - the uuid
start - the lower bound of the range of repository entries
end - the upper bound of the range of repository entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching repository entries
Throws:
SystemException - if a system exception occurred

findByUuid_First

public static RepositoryEntry findByUuid_First(String uuid,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchRepositoryEntryException,
                                               SystemException
Returns the first repository entry in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching repository entry
Throws:
NoSuchRepositoryEntryException - if a matching repository entry could not be found
SystemException - if a system exception occurred

fetchByUuid_First

public static RepositoryEntry fetchByUuid_First(String uuid,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns the first repository entry in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

public static RepositoryEntry findByUuid_Last(String uuid,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchRepositoryEntryException,
                                              SystemException
Returns the last repository entry in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching repository entry
Throws:
NoSuchRepositoryEntryException - if a matching repository entry could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

public static RepositoryEntry fetchByUuid_Last(String uuid,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns the last repository entry in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public static RepositoryEntry[] findByUuid_PrevAndNext(long repositoryEntryId,
                                                       String uuid,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchRepositoryEntryException,
                                                       SystemException
Returns the repository entries before and after the current repository entry in the ordered set where uuid = ?.

Parameters:
repositoryEntryId - the primary key of the current repository entry
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next repository entry
Throws:
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
SystemException - if a system exception occurred

removeByUuid

public static void removeByUuid(String uuid)
                         throws SystemException
Removes all the repository entries where uuid = ? from the database.

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

public static int countByUuid(String uuid)
                       throws SystemException
Returns the number of repository entries where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching repository entries
Throws:
SystemException - if a system exception occurred

findByUUID_G

public static RepositoryEntry findByUUID_G(String uuid,
                                           long groupId)
                                    throws NoSuchRepositoryEntryException,
                                           SystemException
Returns the repository entry where uuid = ? and groupId = ? or throws a NoSuchRepositoryEntryException if it could not be found.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching repository entry
Throws:
NoSuchRepositoryEntryException - if a matching repository entry could not be found
SystemException - if a system exception occurred

fetchByUUID_G

public static RepositoryEntry fetchByUUID_G(String uuid,
                                            long groupId)
                                     throws SystemException
Returns the repository entry where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

public static RepositoryEntry fetchByUUID_G(String uuid,
                                            long groupId,
                                            boolean retrieveFromCache)
                                     throws SystemException
Returns the repository entry where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

removeByUUID_G

public static RepositoryEntry removeByUUID_G(String uuid,
                                             long groupId)
                                      throws NoSuchRepositoryEntryException,
                                             SystemException
Removes the repository entry where uuid = ? and groupId = ? from the database.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the repository entry that was removed
Throws:
SystemException - if a system exception occurred
NoSuchRepositoryEntryException

countByUUID_G

public static int countByUUID_G(String uuid,
                                long groupId)
                         throws SystemException
Returns the number of repository entries where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching repository entries
Throws:
SystemException - if a system exception occurred

findByUuid_C

public static List<RepositoryEntry> findByUuid_C(String uuid,
                                                 long companyId)
                                          throws SystemException
Returns all the repository entries where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching repository entries
Throws:
SystemException - if a system exception occurred

findByUuid_C

public static List<RepositoryEntry> findByUuid_C(String uuid,
                                                 long companyId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Returns a range of all the repository entries where uuid = ? and companyId = ?.

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.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of repository entries
end - the upper bound of the range of repository entries (not inclusive)
Returns:
the range of matching repository entries
Throws:
SystemException - if a system exception occurred

findByUuid_C

public static List<RepositoryEntry> findByUuid_C(String uuid,
                                                 long companyId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns an ordered range of all the repository entries where uuid = ? and companyId = ?.

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.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of repository entries
end - the upper bound of the range of repository entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching repository entries
Throws:
SystemException - if a system exception occurred

findByUuid_C_First

public static RepositoryEntry findByUuid_C_First(String uuid,
                                                 long companyId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchRepositoryEntryException,
                                                 SystemException
Returns the first repository entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching repository entry
Throws:
NoSuchRepositoryEntryException - if a matching repository entry could not be found
SystemException - if a system exception occurred

fetchByUuid_C_First

public static RepositoryEntry fetchByUuid_C_First(String uuid,
                                                  long companyId,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Returns the first repository entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_Last

public static RepositoryEntry findByUuid_C_Last(String uuid,
                                                long companyId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchRepositoryEntryException,
                                                SystemException
Returns the last repository entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching repository entry
Throws:
NoSuchRepositoryEntryException - if a matching repository entry could not be found
SystemException - if a system exception occurred

fetchByUuid_C_Last

public static RepositoryEntry fetchByUuid_C_Last(String uuid,
                                                 long companyId,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns the last repository entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_PrevAndNext

public static RepositoryEntry[] findByUuid_C_PrevAndNext(long repositoryEntryId,
                                                         String uuid,
                                                         long companyId,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchRepositoryEntryException,
                                                         SystemException
Returns the repository entries before and after the current repository entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
repositoryEntryId - the primary key of the current repository entry
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next repository entry
Throws:
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
SystemException - if a system exception occurred

removeByUuid_C

public static void removeByUuid_C(String uuid,
                                  long companyId)
                           throws SystemException
Removes all the repository entries where uuid = ? and companyId = ? from the database.

Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

public static int countByUuid_C(String uuid,
                                long companyId)
                         throws SystemException
Returns the number of repository entries where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching repository entries
Throws:
SystemException - if a system exception occurred

findByRepositoryId

public static List<RepositoryEntry> findByRepositoryId(long repositoryId)
                                                throws SystemException
Returns all the repository entries where repositoryId = ?.

Parameters:
repositoryId - the repository ID
Returns:
the matching repository entries
Throws:
SystemException - if a system exception occurred

findByRepositoryId

public static List<RepositoryEntry> findByRepositoryId(long repositoryId,
                                                       int start,
                                                       int end)
                                                throws SystemException
Returns a range of all the repository entries where repositoryId = ?.

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.

Parameters:
repositoryId - the repository ID
start - the lower bound of the range of repository entries
end - the upper bound of the range of repository entries (not inclusive)
Returns:
the range of matching repository entries
Throws:
SystemException - if a system exception occurred

findByRepositoryId

public static List<RepositoryEntry> findByRepositoryId(long repositoryId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Returns an ordered range of all the repository entries where repositoryId = ?.

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.

Parameters:
repositoryId - the repository ID
start - the lower bound of the range of repository entries
end - the upper bound of the range of repository entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching repository entries
Throws:
SystemException - if a system exception occurred

findByRepositoryId_First

public static RepositoryEntry findByRepositoryId_First(long repositoryId,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchRepositoryEntryException,
                                                       SystemException
Returns the first repository entry in the ordered set where repositoryId = ?.

Parameters:
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching repository entry
Throws:
NoSuchRepositoryEntryException - if a matching repository entry could not be found
SystemException - if a system exception occurred

fetchByRepositoryId_First

public static RepositoryEntry fetchByRepositoryId_First(long repositoryId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Returns the first repository entry in the ordered set where repositoryId = ?.

Parameters:
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

findByRepositoryId_Last

public static RepositoryEntry findByRepositoryId_Last(long repositoryId,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchRepositoryEntryException,
                                                      SystemException
Returns the last repository entry in the ordered set where repositoryId = ?.

Parameters:
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching repository entry
Throws:
NoSuchRepositoryEntryException - if a matching repository entry could not be found
SystemException - if a system exception occurred

fetchByRepositoryId_Last

public static RepositoryEntry fetchByRepositoryId_Last(long repositoryId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Returns the last repository entry in the ordered set where repositoryId = ?.

Parameters:
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

findByRepositoryId_PrevAndNext

public static RepositoryEntry[] findByRepositoryId_PrevAndNext(long repositoryEntryId,
                                                               long repositoryId,
                                                               OrderByComparator orderByComparator)
                                                        throws NoSuchRepositoryEntryException,
                                                               SystemException
Returns the repository entries before and after the current repository entry in the ordered set where repositoryId = ?.

Parameters:
repositoryEntryId - the primary key of the current repository entry
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next repository entry
Throws:
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
SystemException - if a system exception occurred

removeByRepositoryId

public static void removeByRepositoryId(long repositoryId)
                                 throws SystemException
Removes all the repository entries where repositoryId = ? from the database.

Parameters:
repositoryId - the repository ID
Throws:
SystemException - if a system exception occurred

countByRepositoryId

public static int countByRepositoryId(long repositoryId)
                               throws SystemException
Returns the number of repository entries where repositoryId = ?.

Parameters:
repositoryId - the repository ID
Returns:
the number of matching repository entries
Throws:
SystemException - if a system exception occurred

findByR_M

public static RepositoryEntry findByR_M(long repositoryId,
                                        String mappedId)
                                 throws NoSuchRepositoryEntryException,
                                        SystemException
Returns the repository entry where repositoryId = ? and mappedId = ? or throws a NoSuchRepositoryEntryException if it could not be found.

Parameters:
repositoryId - the repository ID
mappedId - the mapped ID
Returns:
the matching repository entry
Throws:
NoSuchRepositoryEntryException - if a matching repository entry could not be found
SystemException - if a system exception occurred

fetchByR_M

public static RepositoryEntry fetchByR_M(long repositoryId,
                                         String mappedId)
                                  throws SystemException
Returns the repository entry where repositoryId = ? and mappedId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
repositoryId - the repository ID
mappedId - the mapped ID
Returns:
the matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

fetchByR_M

public static RepositoryEntry fetchByR_M(long repositoryId,
                                         String mappedId,
                                         boolean retrieveFromCache)
                                  throws SystemException
Returns the repository entry where repositoryId = ? and mappedId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
repositoryId - the repository ID
mappedId - the mapped ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching repository entry, or null if a matching repository entry could not be found
Throws:
SystemException - if a system exception occurred

removeByR_M

public static RepositoryEntry removeByR_M(long repositoryId,
                                          String mappedId)
                                   throws NoSuchRepositoryEntryException,
                                          SystemException
Removes the repository entry where repositoryId = ? and mappedId = ? from the database.

Parameters:
repositoryId - the repository ID
mappedId - the mapped ID
Returns:
the repository entry that was removed
Throws:
SystemException - if a system exception occurred
NoSuchRepositoryEntryException

countByR_M

public static int countByR_M(long repositoryId,
                             String mappedId)
                      throws SystemException
Returns the number of repository entries where repositoryId = ? and mappedId = ?.

Parameters:
repositoryId - the repository ID
mappedId - the mapped ID
Returns:
the number of matching repository entries
Throws:
SystemException - if a system exception occurred

cacheResult

public static void cacheResult(RepositoryEntry repositoryEntry)
Caches the repository entry in the entity cache if it is enabled.

Parameters:
repositoryEntry - the repository entry

cacheResult

public static void cacheResult(List<RepositoryEntry> repositoryEntries)
Caches the repository entries in the entity cache if it is enabled.

Parameters:
repositoryEntries - the repository entries

create

public static RepositoryEntry create(long repositoryEntryId)
Creates a new repository entry with the primary key. Does not add the repository entry to the database.

Parameters:
repositoryEntryId - the primary key for the new repository entry
Returns:
the new repository entry

remove

public static RepositoryEntry remove(long repositoryEntryId)
                              throws NoSuchRepositoryEntryException,
                                     SystemException
Removes the repository entry with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
repositoryEntryId - the primary key of the repository entry
Returns:
the repository entry that was removed
Throws:
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static RepositoryEntry updateImpl(RepositoryEntry repositoryEntry)
                                  throws SystemException
Throws:
SystemException

findByPrimaryKey

public static RepositoryEntry findByPrimaryKey(long repositoryEntryId)
                                        throws NoSuchRepositoryEntryException,
                                               SystemException
Returns the repository entry with the primary key or throws a NoSuchRepositoryEntryException if it could not be found.

Parameters:
repositoryEntryId - the primary key of the repository entry
Returns:
the repository entry
Throws:
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static RepositoryEntry fetchByPrimaryKey(long repositoryEntryId)
                                         throws SystemException
Returns the repository entry with the primary key or returns null if it could not be found.

Parameters:
repositoryEntryId - the primary key of the repository entry
Returns:
the repository entry, or null if a repository entry with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<RepositoryEntry> findAll()
                                     throws SystemException
Returns all the repository entries.

Returns:
the repository entries
Throws:
SystemException - if a system exception occurred

findAll

public static List<RepositoryEntry> findAll(int start,
                                            int end)
                                     throws SystemException
Returns a range of all the repository entries.

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.

Parameters:
start - the lower bound of the range of repository entries
end - the upper bound of the range of repository entries (not inclusive)
Returns:
the range of repository entries
Throws:
SystemException - if a system exception occurred

findAll

public static List<RepositoryEntry> findAll(int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the repository entries.

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.

Parameters:
start - the lower bound of the range of repository entries
end - the upper bound of the range of repository entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of repository entries
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the repository entries from the database.

Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of repository entries.

Returns:
the number of repository entries
Throws:
SystemException - if a system exception occurred

getPersistence

public static RepositoryEntryPersistence getPersistence()

setPersistence

public void setPersistence(RepositoryEntryPersistence persistence)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5