Class FriendlyURLEntryMappingUtil
java.lang.Object
com.liferay.friendly.url.service.persistence.FriendlyURLEntryMappingUtil
The persistence utility for the friendly url entry mapping service. This utility wraps
com.liferay.friendly.url.service.persistence.impl.FriendlyURLEntryMappingPersistenceImpl 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 voidcacheResult(FriendlyURLEntryMapping friendlyURLEntryMapping) static voidcacheResult(List<FriendlyURLEntryMapping> friendlyURLEntryMappings) static voidstatic voidclearCache(FriendlyURLEntryMapping friendlyURLEntryMapping) static intcountByC_C(long classNameId, long classPK) Returns the number of friendly url entry mappings where classNameId = ? and classPK = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static FriendlyURLEntryMappingcreate(long friendlyURLEntryMappingId) Creates a new friendly url entry mapping with the primary key.static FriendlyURLEntryMappingfetchByC_C(long classNameId, long classPK) Returns the friendly url entry mapping where classNameId = ? and classPK = ? or returnsnullif it could not be found.static FriendlyURLEntryMappingfetchByC_C(long classNameId, long classPK, boolean useFinderCache) Returns the friendly url entry mapping where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.static FriendlyURLEntryMappingfetchByPrimaryKey(long friendlyURLEntryMappingId) Returns the friendly url entry mapping with the primary key or returnsnullif it could not be found.static Map<Serializable, FriendlyURLEntryMapping> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static FriendlyURLEntryMappingfindByC_C(long classNameId, long classPK) Returns the friendly url entry mapping where classNameId = ? and classPK = ? or throws aNoSuchFriendlyURLEntryMappingExceptionif it could not be found.static FriendlyURLEntryMappingfindByPrimaryKey(long friendlyURLEntryMappingId) Returns the friendly url entry mapping with the primary key or throws aNoSuchFriendlyURLEntryMappingExceptionif it could not be found.static List<FriendlyURLEntryMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<FriendlyURLEntryMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<FriendlyURLEntryMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FriendlyURLEntryMapping> orderByComparator) static FriendlyURLEntryMappingremove(long friendlyURLEntryMappingId) Removes the friendly url entry mapping with the primary key from the database.static FriendlyURLEntryMappingremoveByC_C(long classNameId, long classPK) Removes the friendly url entry mapping where classNameId = ? and classPK = ? from the database.static voidsetPersistence(FriendlyURLEntryMappingPersistence persistence) static FriendlyURLEntryMappingupdate(FriendlyURLEntryMapping friendlyURLEntryMapping) static FriendlyURLEntryMappingupdate(FriendlyURLEntryMapping friendlyURLEntryMapping, com.liferay.portal.kernel.service.ServiceContext serviceContext) static FriendlyURLEntryMappingupdateImpl(FriendlyURLEntryMapping friendlyURLEntryMapping)
-
Constructor Details
-
FriendlyURLEntryMappingUtil
public FriendlyURLEntryMappingUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,FriendlyURLEntryMapping> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<FriendlyURLEntryMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<FriendlyURLEntryMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<FriendlyURLEntryMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FriendlyURLEntryMapping> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static FriendlyURLEntryMapping update(FriendlyURLEntryMapping friendlyURLEntryMapping, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByC_C
public static FriendlyURLEntryMapping findByC_C(long classNameId, long classPK) throws NoSuchFriendlyURLEntryMappingException Returns the friendly url entry mapping where classNameId = ? and classPK = ? or throws aNoSuchFriendlyURLEntryMappingExceptionif it could not be found.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching friendly url entry mapping
-
fetchByC_C
public static FriendlyURLEntryMapping fetchByC_C(long classNameId, long classPK, boolean useFinderCache) Returns the friendly url entry mapping where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pkuseFinderCache- whether to use the finder cache- Returns:
- the matching friendly url entry mapping, or
nullif a matching friendly url entry mapping could not be found
-
removeByC_C
public static FriendlyURLEntryMapping removeByC_C(long classNameId, long classPK) throws NoSuchFriendlyURLEntryMappingException Removes the friendly url entry mapping where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the friendly url entry mapping that was removed
- Throws:
NoSuchFriendlyURLEntryMappingException
-
countByC_C
public static int countByC_C(long classNameId, long classPK) Returns the number of friendly url entry mappings where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching friendly url entry mappings
-
create
Creates a new friendly url entry mapping with the primary key. Does not add the friendly url entry mapping to the database.- Parameters:
friendlyURLEntryMappingId- the primary key for the new friendly url entry mapping- Returns:
- the new friendly url entry mapping
-
remove
public static FriendlyURLEntryMapping remove(long friendlyURLEntryMappingId) throws NoSuchFriendlyURLEntryMappingException Removes the friendly url entry mapping with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
friendlyURLEntryMappingId- the primary key of the friendly url entry mapping- Returns:
- the friendly url entry mapping that was removed
-
updateImpl
-
findByPrimaryKey
public static FriendlyURLEntryMapping findByPrimaryKey(long friendlyURLEntryMappingId) throws NoSuchFriendlyURLEntryMappingException Returns the friendly url entry mapping with the primary key or throws aNoSuchFriendlyURLEntryMappingExceptionif it could not be found.- Parameters:
friendlyURLEntryMappingId- the primary key of the friendly url entry mapping- Returns:
- the friendly url entry mapping
-
fetchByPrimaryKey
Returns the friendly url entry mapping with the primary key or returnsnullif it could not be found.- Parameters:
friendlyURLEntryMappingId- the primary key of the friendly url entry mapping- Returns:
- the friendly url entry mapping, or
nullif a friendly url entry mapping with the primary key could not be found
-
fetchByC_C
Returns the friendly url entry mapping where classNameId = ? and classPK = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching friendly url entry mapping, or
nullif a matching friendly url entry mapping could not be found
-
getPersistence
-
setPersistence
-