Liferay 6.1.2-ce-ga3

com.liferay.portal.service.persistence
Interface RepositoryEntryPersistence

All Superinterfaces:
BasePersistence<RepositoryEntry>

public interface RepositoryEntryPersistence
extends BasePersistence<RepositoryEntry>

The persistence interface for the repository entry service.

Caching information and settings can be found in portal.properties

See Also:
RepositoryEntryPersistenceImpl, RepositoryEntryUtil

Method Summary
 void cacheResult(List<RepositoryEntry> repositoryEntries)
          Caches the repository entries in the entity cache if it is enabled.
 void cacheResult(RepositoryEntry repositoryEntry)
          Caches the repository entry in the entity cache if it is enabled.
 int countAll()
          Returns the number of repository entries.
 int countByR_M(long repositoryId, String mappedId)
          Returns the number of repository entries where repositoryId = ? and mappedId = ?.
 int countByRepositoryId(long repositoryId)
          Returns the number of repository entries where repositoryId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of repository entries where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of repository entries where uuid = ?.
 RepositoryEntry create(long repositoryEntryId)
          Creates a new repository entry with the primary key.
 RepositoryEntry fetchByPrimaryKey(long repositoryEntryId)
          Returns the repository entry with the primary key or returns null if it could not be found.
 RepositoryEntry fetchByR_M(long repositoryId, String mappedId)
          Returns the repository entry where repositoryId = ? and mappedId = ? or returns null if it could not be found.
 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.
 RepositoryEntry fetchByRepositoryId_First(long repositoryId, OrderByComparator orderByComparator)
          Returns the first repository entry in the ordered set where repositoryId = ?.
 RepositoryEntry fetchByRepositoryId_Last(long repositoryId, OrderByComparator orderByComparator)
          Returns the last repository entry in the ordered set where repositoryId = ?.
 RepositoryEntry fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first repository entry in the ordered set where uuid = ?.
 RepositoryEntry fetchByUUID_G(String uuid, long groupId)
          Returns the repository entry where uuid = ? and groupId = ? or returns null if it could not be found.
 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.
 RepositoryEntry fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last repository entry in the ordered set where uuid = ?.
 List<RepositoryEntry> findAll()
          Returns all the repository entries.
 List<RepositoryEntry> findAll(int start, int end)
          Returns a range of all the repository entries.
 List<RepositoryEntry> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the repository entries.
 RepositoryEntry findByPrimaryKey(long repositoryEntryId)
          Returns the repository entry with the primary key or throws a NoSuchRepositoryEntryException if it could not be found.
 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.
 RepositoryEntry findByRepositoryId_First(long repositoryId, OrderByComparator orderByComparator)
          Returns the first repository entry in the ordered set where repositoryId = ?.
 RepositoryEntry findByRepositoryId_Last(long repositoryId, OrderByComparator orderByComparator)
          Returns the last repository entry in the ordered set where repositoryId = ?.
 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 = ?.
 List<RepositoryEntry> findByRepositoryId(long repositoryId)
          Returns all the repository entries where repositoryId = ?.
 List<RepositoryEntry> findByRepositoryId(long repositoryId, int start, int end)
          Returns a range of all the repository entries where repositoryId = ?.
 List<RepositoryEntry> findByRepositoryId(long repositoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the repository entries where repositoryId = ?.
 RepositoryEntry findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first repository entry in the ordered set where uuid = ?.
 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.
 RepositoryEntry findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last repository entry in the ordered set where uuid = ?.
 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 = ?.
 List<RepositoryEntry> findByUuid(String uuid)
          Returns all the repository entries where uuid = ?.
 List<RepositoryEntry> findByUuid(String uuid, int start, int end)
          Returns a range of all the repository entries where uuid = ?.
 List<RepositoryEntry> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the repository entries where uuid = ?.
 RepositoryEntry remove(long repositoryEntryId)
          Removes the repository entry with the primary key from the database.
 void removeAll()
          Removes all the repository entries from the database.
 RepositoryEntry removeByR_M(long repositoryId, String mappedId)
          Removes the repository entry where repositoryId = ? and mappedId = ? from the database.
 void removeByRepositoryId(long repositoryId)
          Removes all the repository entries where repositoryId = ? from the database.
 RepositoryEntry removeByUUID_G(String uuid, long groupId)
          Removes the repository entry where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the repository entries where uuid = ? from the database.
 RepositoryEntry updateImpl(RepositoryEntry repositoryEntry, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

Parameters:
repositoryEntry - the repository entry

cacheResult

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

Parameters:
repositoryEntries - the repository entries

create

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

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

RepositoryEntry updateImpl(RepositoryEntry repositoryEntry,
                           boolean merge)
                           throws SystemException
Throws:
SystemException

findByPrimaryKey

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

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

findByUuid

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

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.

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

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.

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

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

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

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

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

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

findByUUID_G

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

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

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

findByRepositoryId

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

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.

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

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.

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

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

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

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

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

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

findByR_M

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

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

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

findAll

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

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

findAll

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.

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

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.

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

removeByUuid

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

removeByUUID_G

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

removeByRepositoryId

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

removeByR_M

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

removeAll

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

Throws:
SystemException - if a system exception occurred

countByUuid

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

countByUUID_G

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

countByRepositoryId

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

countByR_M

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

countAll

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

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

Liferay 6.1.2-ce-ga3