Class RedirectNotFoundEntryUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(RedirectNotFoundEntry redirectNotFoundEntry) Caches the redirect not found entry in the entity cache if it is enabled.static void
cacheResult
(List<RedirectNotFoundEntry> redirectNotFoundEntries) Caches the redirect not found entries in the entity cache if it is enabled.static void
static void
clearCache
(RedirectNotFoundEntry redirectNotFoundEntry) static int
countAll()
Returns the number of redirect not found entries.static int
countByG_U
(long groupId, 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, String url) Returns the redirect not found entry where groupId = ? and url = ? or returnsnull
if it could not be found.static RedirectNotFoundEntry
fetchByG_U
(long groupId, String url, boolean useFinderCache) Returns the redirect not found entry where groupId = ? and url = ? or returnsnull
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 returnsnull
if it could not be found.static Map<Serializable,
RedirectNotFoundEntry> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<RedirectNotFoundEntry>
findAll()
Returns all the redirect not found entries.static List<RedirectNotFoundEntry>
findAll
(int start, int end) Returns a range of all the redirect not found entries.static 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 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
Returns the redirect not found entry where groupId = ? and url = ? or throws aNoSuchNotFoundEntryException
if it could not be found.static List<RedirectNotFoundEntry>
findByGroupId
(long groupId) Returns all the redirect not found entries where groupId = ?.static List<RedirectNotFoundEntry>
findByGroupId
(long groupId, int start, int end) Returns a range of all the redirect not found entries where groupId = ?.static 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 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
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 RedirectNotFoundEntry
findByPrimaryKey
(long redirectNotFoundEntryId) Returns the redirect not found entry with the primary key or throws aNoSuchNotFoundEntryException
if it could not be found.static List<RedirectNotFoundEntry>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<RedirectNotFoundEntry>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<RedirectNotFoundEntry>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator) static RedirectNotFoundEntry
remove
(long redirectNotFoundEntryId) Removes the redirect not found entry with the primary key from the database.static void
Removes all the redirect not found entries from the database.static RedirectNotFoundEntry
removeByG_U
(long groupId, 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 void
setPersistence
(RedirectNotFoundEntryPersistence persistence) static RedirectNotFoundEntry
update
(RedirectNotFoundEntry redirectNotFoundEntry) static RedirectNotFoundEntry
update
(RedirectNotFoundEntry redirectNotFoundEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static RedirectNotFoundEntry
updateImpl
(RedirectNotFoundEntry redirectNotFoundEntry)
-
Constructor Details
-
RedirectNotFoundEntryUtil
public RedirectNotFoundEntryUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,RedirectNotFoundEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<RedirectNotFoundEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<RedirectNotFoundEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<RedirectNotFoundEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static RedirectNotFoundEntry update(RedirectNotFoundEntry redirectNotFoundEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByGroupId
Returns all the redirect not found entries where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching redirect not found entries
-
findByGroupId
Returns a range of all the redirect not found entries where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRedirectNotFoundEntryModelImpl
.- Parameters:
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)- Returns:
- the range of matching redirect not found entries
-
findByGroupId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRedirectNotFoundEntryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching redirect not found entries
-
findByGroupId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRedirectNotFoundEntryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching redirect not found entries
-
findByGroupId_First
public static RedirectNotFoundEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator) throws NoSuchNotFoundEntryException Returns the first redirect not found entry in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching redirect not found entry
- Throws:
NoSuchNotFoundEntryException
- if a matching redirect not found entry could not be foundNoSuchNotFoundEntryException
-
fetchByGroupId_First
public 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 = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching redirect not found entry, or
null
if a matching redirect not found entry could not be found
-
findByGroupId_Last
public static RedirectNotFoundEntry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator) throws NoSuchNotFoundEntryException Returns the last redirect not found entry in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching redirect not found entry
- Throws:
NoSuchNotFoundEntryException
- if a matching redirect not found entry could not be foundNoSuchNotFoundEntryException
-
fetchByGroupId_Last
public 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 = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching redirect not found entry, or
null
if a matching redirect not found entry could not be found
-
findByGroupId_PrevAndNext
public static RedirectNotFoundEntry[] findByGroupId_PrevAndNext(long redirectNotFoundEntryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<RedirectNotFoundEntry> orderByComparator) throws NoSuchNotFoundEntryException Returns the redirect not found entries before and after the current redirect not found entry in the ordered set where groupId = ?.- Parameters:
redirectNotFoundEntryId
- the primary key of the current redirect not found entrygroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next redirect not found entry
- Throws:
NoSuchNotFoundEntryException
- if a redirect not found entry with the primary key could not be foundNoSuchNotFoundEntryException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the redirect not found entries where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of redirect not found entries where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching redirect not found entries
-
findByG_U
public static RedirectNotFoundEntry findByG_U(long groupId, String url) throws NoSuchNotFoundEntryException Returns the redirect not found entry where groupId = ? and url = ? or throws aNoSuchNotFoundEntryException
if it could not be found.- Parameters:
groupId
- the group IDurl
- the url- Returns:
- the matching redirect not found entry
- Throws:
NoSuchNotFoundEntryException
- if a matching redirect not found entry could not be foundNoSuchNotFoundEntryException
-
fetchByG_U
Returns the redirect not found entry where groupId = ? and url = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
groupId
- the group IDurl
- the url- Returns:
- the matching redirect not found entry, or
null
if a matching redirect not found entry could not be found
-
fetchByG_U
Returns the redirect not found entry where groupId = ? and url = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
groupId
- the group IDurl
- the urluseFinderCache
- whether to use the finder cache- Returns:
- the matching redirect not found entry, or
null
if a matching redirect not found entry could not be found
-
removeByG_U
public static RedirectNotFoundEntry removeByG_U(long groupId, String url) throws NoSuchNotFoundEntryException Removes the redirect not found entry where groupId = ? and url = ? from the database.- Parameters:
groupId
- the group IDurl
- the url- Returns:
- the redirect not found entry that was removed
- Throws:
NoSuchNotFoundEntryException
-
countByG_U
Returns the number of redirect not found entries where groupId = ? and url = ?.- Parameters:
groupId
- the group IDurl
- the url- Returns:
- the number of matching redirect not found entries
-
cacheResult
Caches the redirect not found entry in the entity cache if it is enabled.- Parameters:
redirectNotFoundEntry
- the redirect not found entry
-
cacheResult
Caches the redirect not found entries in the entity cache if it is enabled.- Parameters:
redirectNotFoundEntries
- the redirect not found entries
-
create
Creates a new redirect not found entry with the primary key. Does not add the redirect not found entry to the database.- Parameters:
redirectNotFoundEntryId
- the primary key for the new redirect not found entry- Returns:
- the new redirect not found entry
-
remove
public static RedirectNotFoundEntry remove(long redirectNotFoundEntryId) throws NoSuchNotFoundEntryException Removes the redirect not found entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
redirectNotFoundEntryId
- the primary key of the redirect not found entry- Returns:
- the redirect not found entry that was removed
- Throws:
NoSuchNotFoundEntryException
- if a redirect not found entry with the primary key could not be foundNoSuchNotFoundEntryException
-
updateImpl
-
findByPrimaryKey
public static RedirectNotFoundEntry findByPrimaryKey(long redirectNotFoundEntryId) throws NoSuchNotFoundEntryException Returns the redirect not found entry with the primary key or throws aNoSuchNotFoundEntryException
if it could not be found.- Parameters:
redirectNotFoundEntryId
- the primary key of the redirect not found entry- Returns:
- the redirect not found entry
- Throws:
NoSuchNotFoundEntryException
- if a redirect not found entry with the primary key could not be foundNoSuchNotFoundEntryException
-
fetchByPrimaryKey
Returns the redirect not found entry with the primary key or returnsnull
if it could not be found.- Parameters:
redirectNotFoundEntryId
- the primary key of the redirect not found entry- Returns:
- the redirect not found entry, or
null
if a redirect not found entry with the primary key could not be found
-
findAll
Returns all the redirect not found entries.- Returns:
- the redirect not found entries
-
findAll
Returns a range of all the redirect not found entries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRedirectNotFoundEntryModelImpl
.- Parameters:
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)- Returns:
- the range of redirect not found entries
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRedirectNotFoundEntryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of redirect not found entries
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRedirectNotFoundEntryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of redirect not found entries
-
removeAll
public static void removeAll()Removes all the redirect not found entries from the database. -
countAll
public static int countAll()Returns the number of redirect not found entries.- Returns:
- the number of redirect not found entries
-
getPersistence
-
setPersistence
-