public class RedirectNotFoundEntryUtil
extends java.lang.Object
com.liferay.redirect.service.persistence.impl.RedirectNotFoundEntryPersistenceImpl
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
RedirectNotFoundEntryPersistence
Constructor and Description |
---|
RedirectNotFoundEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<RedirectNotFoundEntry> redirectNotFoundEntries)
Caches the redirect not found entries in the entity cache if it is enabled.
|
static void |
cacheResult(RedirectNotFoundEntry redirectNotFoundEntry)
Caches the redirect not found entry in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(RedirectNotFoundEntry redirectNotFoundEntry) |
static int |
countAll()
Returns the number of redirect not found entries.
|
static int |
countByG_U(long groupId,
java.lang.String url)
Returns the number of redirect not found entries where groupId = ? and url = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of redirect not found entries where groupId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static RedirectNotFoundEntry |
create(long redirectNotFoundEntryId)
Creates a new redirect not found entry with the primary key.
|
static RedirectNotFoundEntry |
fetchByG_U(long groupId,
java.lang.String url)
Returns the redirect not found entry where groupId = ? and url = ? or returns
null if it could not be found. |
static RedirectNotFoundEntry |
fetchByG_U(long groupId,
java.lang.String url,
boolean useFinderCache)
Returns the redirect not found entry where groupId = ? and url = ? or returns
null if it could not be found, optionally using the finder cache. |
static RedirectNotFoundEntry |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
Returns the first redirect not found entry in the ordered set where groupId = ?.
|
static RedirectNotFoundEntry |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
Returns the last redirect not found entry in the ordered set where groupId = ?.
|
static RedirectNotFoundEntry |
fetchByPrimaryKey(long redirectNotFoundEntryId)
Returns the redirect not found entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,RedirectNotFoundEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<RedirectNotFoundEntry> |
findAll()
Returns all the redirect not found entries.
|
static java.util.List<RedirectNotFoundEntry> |
findAll(int start,
int end)
Returns a range of all the redirect not found entries.
|
static java.util.List<RedirectNotFoundEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
Returns an ordered range of all the redirect not found entries.
|
static java.util.List<RedirectNotFoundEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the redirect not found entries.
|
static RedirectNotFoundEntry |
findByG_U(long groupId,
java.lang.String url)
Returns the redirect not found entry where groupId = ? and url = ? or throws a
NoSuchNotFoundEntryException if it could not be found. |
static RedirectNotFoundEntry |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
Returns the first redirect not found entry in the ordered set where groupId = ?.
|
static RedirectNotFoundEntry |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
Returns the last redirect not found entry in the ordered set where groupId = ?.
|
static RedirectNotFoundEntry[] |
findByGroupId_PrevAndNext(long redirectNotFoundEntryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
Returns the redirect not found entries before and after the current redirect not found entry in the ordered set where groupId = ?.
|
static java.util.List<RedirectNotFoundEntry> |
findByGroupId(long groupId)
Returns all the redirect not found entries where groupId = ?.
|
static java.util.List<RedirectNotFoundEntry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the redirect not found entries where groupId = ?.
|
static java.util.List<RedirectNotFoundEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
Returns an ordered range of all the redirect not found entries where groupId = ?.
|
static java.util.List<RedirectNotFoundEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the redirect not found entries where groupId = ?.
|
static RedirectNotFoundEntry |
findByPrimaryKey(long redirectNotFoundEntryId)
Returns the redirect not found entry with the primary key or throws a
NoSuchNotFoundEntryException if it could not be found. |
static java.util.List<RedirectNotFoundEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<RedirectNotFoundEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<RedirectNotFoundEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator) |
static RedirectNotFoundEntryPersistence |
getPersistence() |
static RedirectNotFoundEntry |
remove(long redirectNotFoundEntryId)
Removes the redirect not found entry with the primary key from the database.
|
static void |
removeAll()
Removes all the redirect not found entries from the database.
|
static RedirectNotFoundEntry |
removeByG_U(long groupId,
java.lang.String url)
Removes the redirect not found entry where groupId = ? and url = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the redirect not found entries where groupId = ? from the database.
|
static RedirectNotFoundEntry |
update(RedirectNotFoundEntry redirectNotFoundEntry) |
static RedirectNotFoundEntry |
update(RedirectNotFoundEntry redirectNotFoundEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static RedirectNotFoundEntry |
updateImpl(RedirectNotFoundEntry redirectNotFoundEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(RedirectNotFoundEntry redirectNotFoundEntry)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,RedirectNotFoundEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<RedirectNotFoundEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<RedirectNotFoundEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<RedirectNotFoundEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static RedirectNotFoundEntry update(RedirectNotFoundEntry redirectNotFoundEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static RedirectNotFoundEntry update(RedirectNotFoundEntry redirectNotFoundEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<RedirectNotFoundEntry> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<RedirectNotFoundEntry> findByGroupId(long groupId, 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, then the query will include the default ORDER BY logic from RedirectNotFoundEntryModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of redirect not found entriesend
- the upper bound of the range of redirect not found entries (not inclusive)public static java.util.List<RedirectNotFoundEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> 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, then the query will include the default ORDER BY logic from RedirectNotFoundEntryModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of redirect not found entriesend
- the upper bound of the range of redirect not found entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<RedirectNotFoundEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> 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, then the query will include the default ORDER BY logic from RedirectNotFoundEntryModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of redirect not found entriesend
- the upper bound of the range of redirect not found entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static RedirectNotFoundEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator) throws NoSuchNotFoundEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotFoundEntryException
- if a matching redirect not found entry could not be foundpublic static RedirectNotFoundEntry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching redirect not found entry could not be foundpublic static RedirectNotFoundEntry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator) throws NoSuchNotFoundEntryException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotFoundEntryException
- if a matching redirect not found entry could not be foundpublic static RedirectNotFoundEntry fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching redirect not found entry could not be foundpublic static RedirectNotFoundEntry[] findByGroupId_PrevAndNext(long redirectNotFoundEntryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator) throws NoSuchNotFoundEntryException
redirectNotFoundEntryId
- the primary key of the current redirect not found entrygroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotFoundEntryException
- if a redirect not found entry with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static RedirectNotFoundEntry findByG_U(long groupId, java.lang.String url) throws NoSuchNotFoundEntryException
NoSuchNotFoundEntryException
if it could not be found.groupId
- the group IDurl
- the urlNoSuchNotFoundEntryException
- if a matching redirect not found entry could not be foundpublic static RedirectNotFoundEntry fetchByG_U(long groupId, java.lang.String url)
null
if it could not be found. Uses the finder cache.groupId
- the group IDurl
- the urlnull
if a matching redirect not found entry could not be foundpublic static RedirectNotFoundEntry fetchByG_U(long groupId, java.lang.String url, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDurl
- the urluseFinderCache
- whether to use the finder cachenull
if a matching redirect not found entry could not be foundpublic static RedirectNotFoundEntry removeByG_U(long groupId, java.lang.String url) throws NoSuchNotFoundEntryException
groupId
- the group IDurl
- the urlNoSuchNotFoundEntryException
public static int countByG_U(long groupId, java.lang.String url)
groupId
- the group IDurl
- the urlpublic static void cacheResult(RedirectNotFoundEntry redirectNotFoundEntry)
redirectNotFoundEntry
- the redirect not found entrypublic static void cacheResult(java.util.List<RedirectNotFoundEntry> redirectNotFoundEntries)
redirectNotFoundEntries
- the redirect not found entriespublic static RedirectNotFoundEntry create(long redirectNotFoundEntryId)
redirectNotFoundEntryId
- the primary key for the new redirect not found entrypublic static RedirectNotFoundEntry remove(long redirectNotFoundEntryId) throws NoSuchNotFoundEntryException
redirectNotFoundEntryId
- the primary key of the redirect not found entryNoSuchNotFoundEntryException
- if a redirect not found entry with the primary key could not be foundpublic static RedirectNotFoundEntry updateImpl(RedirectNotFoundEntry redirectNotFoundEntry)
public static RedirectNotFoundEntry findByPrimaryKey(long redirectNotFoundEntryId) throws NoSuchNotFoundEntryException
NoSuchNotFoundEntryException
if it could not be found.redirectNotFoundEntryId
- the primary key of the redirect not found entryNoSuchNotFoundEntryException
- if a redirect not found entry with the primary key could not be foundpublic static RedirectNotFoundEntry fetchByPrimaryKey(long redirectNotFoundEntryId)
null
if it could not be found.redirectNotFoundEntryId
- the primary key of the redirect not found entrynull
if a redirect not found entry with the primary key could not be foundpublic static java.util.List<RedirectNotFoundEntry> findAll()
public static java.util.List<RedirectNotFoundEntry> 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, then the query will include the default ORDER BY logic from RedirectNotFoundEntryModelImpl
.
start
- the lower bound of the range of redirect not found entriesend
- the upper bound of the range of redirect not found entries (not inclusive)public static java.util.List<RedirectNotFoundEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> 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, then the query will include the default ORDER BY logic from RedirectNotFoundEntryModelImpl
.
start
- the lower bound of the range of redirect not found entriesend
- the upper bound of the range of redirect not found entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<RedirectNotFoundEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> 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, then the query will include the default ORDER BY logic from RedirectNotFoundEntryModelImpl
.
start
- the lower bound of the range of redirect not found entriesend
- the upper bound of the range of redirect not found 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 RedirectNotFoundEntryPersistence getPersistence()