public class RepositoryEntryUtil
extends Object
com.liferay.portal.service.persistence.impl.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
Constructor and Description |
---|
RepositoryEntryUtil() |
Modifier and Type | Method and Description |
---|---|
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 Map<Serializable,RepositoryEntry> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
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 useFinderCache)
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<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where repositoryId = ?.
|
static RepositoryEntry |
fetchByRepositoryId_Last(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where repositoryId = ?.
|
static RepositoryEntry |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where uuid = ? and companyId = ?.
|
static RepositoryEntry |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where uuid = ? and companyId = ?.
|
static RepositoryEntry |
fetchByUuid_First(String uuid,
OrderByComparator<RepositoryEntry> 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 useFinderCache)
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<RepositoryEntry> 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<RepositoryEntry> orderByComparator)
Returns an ordered range of all the repository entries.
|
static List<RepositoryEntry> |
findAll(int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean useFinderCache)
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<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where repositoryId = ?.
|
static RepositoryEntry |
findByRepositoryId_Last(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where repositoryId = ?.
|
static RepositoryEntry[] |
findByRepositoryId_PrevAndNext(long repositoryEntryId,
long repositoryId,
OrderByComparator<RepositoryEntry> 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<RepositoryEntry> orderByComparator)
Returns an ordered range of all the repository entries where repositoryId = ?.
|
static List<RepositoryEntry> |
findByRepositoryId(long repositoryId,
int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the repository entries where repositoryId = ?.
|
static RepositoryEntry |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where uuid = ? and companyId = ?.
|
static RepositoryEntry |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> 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<RepositoryEntry> 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<RepositoryEntry> orderByComparator)
Returns an ordered range of all the repository entries where uuid = ? and companyId = ?.
|
static List<RepositoryEntry> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the repository entries where uuid = ? and companyId = ?.
|
static RepositoryEntry |
findByUuid_First(String uuid,
OrderByComparator<RepositoryEntry> 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<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where uuid = ?.
|
static RepositoryEntry[] |
findByUuid_PrevAndNext(long repositoryEntryId,
String uuid,
OrderByComparator<RepositoryEntry> 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<RepositoryEntry> orderByComparator)
Returns an ordered range of all the repository entries where uuid = ?.
|
static List<RepositoryEntry> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean useFinderCache)
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<RepositoryEntry> 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.
|
static RepositoryEntry |
update(RepositoryEntry repositoryEntry) |
static RepositoryEntry |
update(RepositoryEntry repositoryEntry,
ServiceContext serviceContext) |
static RepositoryEntry |
updateImpl(RepositoryEntry repositoryEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(RepositoryEntry repositoryEntry)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static Map<Serializable,RepositoryEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static List<RepositoryEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<RepositoryEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<RepositoryEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<RepositoryEntry> orderByComparator)
public static RepositoryEntry update(RepositoryEntry repositoryEntry)
public static RepositoryEntry update(RepositoryEntry repositoryEntry, ServiceContext serviceContext)
public static List<RepositoryEntry> findByUuid(String uuid)
uuid
- the uuidpublic static List<RepositoryEntry> findByUuid(String uuid, int start, int end)
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)public static List<RepositoryEntry> findByUuid(String uuid, int start, int end, OrderByComparator<RepositoryEntry> orderByComparator)
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
)public static List<RepositoryEntry> findByUuid(String uuid, int start, int end, OrderByComparator<RepositoryEntry> orderByComparator, boolean useFinderCache)
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
)useFinderCache
- whether to use the finder cachepublic static RepositoryEntry findByUuid_First(String uuid, OrderByComparator<RepositoryEntry> orderByComparator) throws NoSuchRepositoryEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRepositoryEntryException
- if a matching repository entry could not be foundpublic static RepositoryEntry fetchByUuid_First(String uuid, OrderByComparator<RepositoryEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching repository entry could not be foundpublic static RepositoryEntry findByUuid_Last(String uuid, OrderByComparator<RepositoryEntry> orderByComparator) throws NoSuchRepositoryEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRepositoryEntryException
- if a matching repository entry could not be foundpublic static RepositoryEntry fetchByUuid_Last(String uuid, OrderByComparator<RepositoryEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching repository entry could not be foundpublic static RepositoryEntry[] findByUuid_PrevAndNext(long repositoryEntryId, String uuid, OrderByComparator<RepositoryEntry> orderByComparator) throws NoSuchRepositoryEntryException
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 foundpublic static void removeByUuid(String uuid)
uuid
- the uuidpublic static int countByUuid(String uuid)
uuid
- the uuidpublic static RepositoryEntry findByUUID_G(String uuid, long groupId) throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchRepositoryEntryException
- if a matching repository entry could not be foundpublic static RepositoryEntry fetchByUUID_G(String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching repository entry could not be foundpublic static RepositoryEntry fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching repository entry could not be foundpublic static RepositoryEntry removeByUUID_G(String uuid, long groupId) throws NoSuchRepositoryEntryException
uuid
- the uuidgroupId
- the group IDNoSuchRepositoryEntryException
public static int countByUUID_G(String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static List<RepositoryEntry> findByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<RepositoryEntry> findByUuid_C(String uuid, long companyId, int start, int end)
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)public static List<RepositoryEntry> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<RepositoryEntry> orderByComparator)
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
)public static List<RepositoryEntry> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<RepositoryEntry> orderByComparator, boolean useFinderCache)
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
)useFinderCache
- whether to use the finder cachepublic static RepositoryEntry findByUuid_C_First(String uuid, long companyId, OrderByComparator<RepositoryEntry> orderByComparator) throws NoSuchRepositoryEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRepositoryEntryException
- if a matching repository entry could not be foundpublic static RepositoryEntry fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<RepositoryEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching repository entry could not be foundpublic static RepositoryEntry findByUuid_C_Last(String uuid, long companyId, OrderByComparator<RepositoryEntry> orderByComparator) throws NoSuchRepositoryEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRepositoryEntryException
- if a matching repository entry could not be foundpublic static RepositoryEntry fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<RepositoryEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching repository entry could not be foundpublic static RepositoryEntry[] findByUuid_C_PrevAndNext(long repositoryEntryId, String uuid, long companyId, OrderByComparator<RepositoryEntry> orderByComparator) throws NoSuchRepositoryEntryException
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 foundpublic static void removeByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<RepositoryEntry> findByRepositoryId(long repositoryId)
repositoryId
- the repository IDpublic static List<RepositoryEntry> findByRepositoryId(long repositoryId, int start, int end)
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)public static List<RepositoryEntry> findByRepositoryId(long repositoryId, int start, int end, OrderByComparator<RepositoryEntry> orderByComparator)
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
)public static List<RepositoryEntry> findByRepositoryId(long repositoryId, int start, int end, OrderByComparator<RepositoryEntry> orderByComparator, boolean useFinderCache)
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
)useFinderCache
- whether to use the finder cachepublic static RepositoryEntry findByRepositoryId_First(long repositoryId, OrderByComparator<RepositoryEntry> orderByComparator) throws NoSuchRepositoryEntryException
repositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRepositoryEntryException
- if a matching repository entry could not be foundpublic static RepositoryEntry fetchByRepositoryId_First(long repositoryId, OrderByComparator<RepositoryEntry> orderByComparator)
repositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching repository entry could not be foundpublic static RepositoryEntry findByRepositoryId_Last(long repositoryId, OrderByComparator<RepositoryEntry> orderByComparator) throws NoSuchRepositoryEntryException
repositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRepositoryEntryException
- if a matching repository entry could not be foundpublic static RepositoryEntry fetchByRepositoryId_Last(long repositoryId, OrderByComparator<RepositoryEntry> orderByComparator)
repositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching repository entry could not be foundpublic static RepositoryEntry[] findByRepositoryId_PrevAndNext(long repositoryEntryId, long repositoryId, OrderByComparator<RepositoryEntry> orderByComparator) throws NoSuchRepositoryEntryException
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 foundpublic static void removeByRepositoryId(long repositoryId)
repositoryId
- the repository IDpublic static int countByRepositoryId(long repositoryId)
repositoryId
- the repository IDpublic static RepositoryEntry findByR_M(long repositoryId, String mappedId) throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryException
if it could not be found.repositoryId
- the repository IDmappedId
- the mapped IDNoSuchRepositoryEntryException
- if a matching repository entry could not be foundpublic static RepositoryEntry fetchByR_M(long repositoryId, String mappedId)
null
if it could not be found. Uses the finder cache.repositoryId
- the repository IDmappedId
- the mapped IDnull
if a matching repository entry could not be foundpublic static RepositoryEntry fetchByR_M(long repositoryId, String mappedId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.repositoryId
- the repository IDmappedId
- the mapped IDuseFinderCache
- whether to use the finder cachenull
if a matching repository entry could not be foundpublic static RepositoryEntry removeByR_M(long repositoryId, String mappedId) throws NoSuchRepositoryEntryException
repositoryId
- the repository IDmappedId
- the mapped IDNoSuchRepositoryEntryException
public static int countByR_M(long repositoryId, String mappedId)
repositoryId
- the repository IDmappedId
- the mapped IDpublic 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 entrypublic static RepositoryEntry remove(long repositoryEntryId) throws NoSuchRepositoryEntryException
repositoryEntryId
- the primary key of the repository entryNoSuchRepositoryEntryException
- if a repository entry with the primary key could not be foundpublic static RepositoryEntry updateImpl(RepositoryEntry repositoryEntry)
public static RepositoryEntry findByPrimaryKey(long repositoryEntryId) throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryException
if it could not be found.repositoryEntryId
- the primary key of the repository entryNoSuchRepositoryEntryException
- if a repository entry with the primary key could not be foundpublic static RepositoryEntry fetchByPrimaryKey(long repositoryEntryId)
null
if it could not be found.repositoryEntryId
- the primary key of the repository entrynull
if a repository entry with the primary key could not be foundpublic static List<RepositoryEntry> findAll()
public static List<RepositoryEntry> findAll(int start, int end)
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)public static List<RepositoryEntry> findAll(int start, int end, OrderByComparator<RepositoryEntry> orderByComparator)
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
)public static List<RepositoryEntry> findAll(int start, int end, OrderByComparator<RepositoryEntry> orderByComparator, boolean useFinderCache)
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
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static RepositoryEntryPersistence getPersistence()