Class DLOpenerFileEntryReferenceUtil
java.lang.Object
com.liferay.document.library.opener.service.persistence.DLOpenerFileEntryReferenceUtil
The persistence utility for the dl opener file entry reference service. This utility wraps
com.liferay.document.library.opener.service.persistence.impl.DLOpenerFileEntryReferencePersistenceImpl 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(DLOpenerFileEntryReference dlOpenerFileEntryReference) static voidcacheResult(List<DLOpenerFileEntryReference> dlOpenerFileEntryReferences) static voidstatic voidclearCache(DLOpenerFileEntryReference dlOpenerFileEntryReference) static intcountByFileEntryId(long fileEntryId) Returns the number of dl opener file entry references where fileEntryId = ?.static intcountByR_F(String referenceType, long fileEntryId) Returns the number of dl opener file entry references where referenceType = ? and fileEntryId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DLOpenerFileEntryReferencecreate(long dlOpenerFileEntryReferenceId) Creates a new dl opener file entry reference with the primary key.static DLOpenerFileEntryReferencefetchByFileEntryId(long fileEntryId) Returns the dl opener file entry reference where fileEntryId = ? or returnsnullif it could not be found.static DLOpenerFileEntryReferencefetchByFileEntryId(long fileEntryId, boolean useFinderCache) Returns the dl opener file entry reference where fileEntryId = ? or returnsnullif it could not be found, optionally using the finder cache.static DLOpenerFileEntryReferencefetchByPrimaryKey(long dlOpenerFileEntryReferenceId) Returns the dl opener file entry reference with the primary key or returnsnullif it could not be found.fetchByPrimaryKeys(Set<Serializable> primaryKeys) static DLOpenerFileEntryReferencefetchByR_F(String referenceType, long fileEntryId) Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or returnsnullif it could not be found.static DLOpenerFileEntryReferencefetchByR_F(String referenceType, long fileEntryId, boolean useFinderCache) Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or returnsnullif it could not be found, optionally using the finder cache.static DLOpenerFileEntryReferencefindByFileEntryId(long fileEntryId) Returns the dl opener file entry reference where fileEntryId = ? or throws aNoSuchFileEntryReferenceExceptionif it could not be found.static DLOpenerFileEntryReferencefindByPrimaryKey(long dlOpenerFileEntryReferenceId) Returns the dl opener file entry reference with the primary key or throws aNoSuchFileEntryReferenceExceptionif it could not be found.static DLOpenerFileEntryReferenceReturns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or throws aNoSuchFileEntryReferenceExceptionif it could not be found.static List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> orderByComparator) static DLOpenerFileEntryReferenceremove(long dlOpenerFileEntryReferenceId) Removes the dl opener file entry reference with the primary key from the database.static DLOpenerFileEntryReferenceremoveByFileEntryId(long fileEntryId) Removes the dl opener file entry reference where fileEntryId = ? from the database.static DLOpenerFileEntryReferenceremoveByR_F(String referenceType, long fileEntryId) Removes the dl opener file entry reference where referenceType = ? and fileEntryId = ? from the database.static voidsetPersistence(DLOpenerFileEntryReferencePersistence persistence) static DLOpenerFileEntryReferenceupdate(DLOpenerFileEntryReference dlOpenerFileEntryReference) static DLOpenerFileEntryReferenceupdate(DLOpenerFileEntryReference dlOpenerFileEntryReference, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DLOpenerFileEntryReferenceupdateImpl(DLOpenerFileEntryReference dlOpenerFileEntryReference)
-
Constructor Details
-
DLOpenerFileEntryReferenceUtil
public DLOpenerFileEntryReferenceUtil()
-
-
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,DLOpenerFileEntryReference> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> orderByComparator) - See Also:
-
update
public static DLOpenerFileEntryReference update(DLOpenerFileEntryReference dlOpenerFileEntryReference) - See Also:
-
update
public static DLOpenerFileEntryReference update(DLOpenerFileEntryReference dlOpenerFileEntryReference, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByFileEntryId
public static DLOpenerFileEntryReference findByFileEntryId(long fileEntryId) throws NoSuchFileEntryReferenceException Returns the dl opener file entry reference where fileEntryId = ? or throws aNoSuchFileEntryReferenceExceptionif it could not be found.- Parameters:
fileEntryId- the file entry ID- Returns:
- the matching dl opener file entry reference
-
fetchByFileEntryId
public static DLOpenerFileEntryReference fetchByFileEntryId(long fileEntryId, boolean useFinderCache) Returns the dl opener file entry reference where fileEntryId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
fileEntryId- the file entry IDuseFinderCache- whether to use the finder cache- Returns:
- the matching dl opener file entry reference, or
nullif a matching dl opener file entry reference could not be found
-
removeByFileEntryId
public static DLOpenerFileEntryReference removeByFileEntryId(long fileEntryId) throws NoSuchFileEntryReferenceException Removes the dl opener file entry reference where fileEntryId = ? from the database.- Parameters:
fileEntryId- the file entry ID- Returns:
- the dl opener file entry reference that was removed
- Throws:
NoSuchFileEntryReferenceException
-
countByFileEntryId
public static int countByFileEntryId(long fileEntryId) Returns the number of dl opener file entry references where fileEntryId = ?.- Parameters:
fileEntryId- the file entry ID- Returns:
- the number of matching dl opener file entry references
-
findByR_F
public static DLOpenerFileEntryReference findByR_F(String referenceType, long fileEntryId) throws NoSuchFileEntryReferenceException Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or throws aNoSuchFileEntryReferenceExceptionif it could not be found.- Parameters:
referenceType- the reference typefileEntryId- the file entry ID- Returns:
- the matching dl opener file entry reference
-
fetchByR_F
public static DLOpenerFileEntryReference fetchByR_F(String referenceType, long fileEntryId, boolean useFinderCache) Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
referenceType- the reference typefileEntryId- the file entry IDuseFinderCache- whether to use the finder cache- Returns:
- the matching dl opener file entry reference, or
nullif a matching dl opener file entry reference could not be found
-
removeByR_F
public static DLOpenerFileEntryReference removeByR_F(String referenceType, long fileEntryId) throws NoSuchFileEntryReferenceException Removes the dl opener file entry reference where referenceType = ? and fileEntryId = ? from the database.- Parameters:
referenceType- the reference typefileEntryId- the file entry ID- Returns:
- the dl opener file entry reference that was removed
- Throws:
NoSuchFileEntryReferenceException
-
countByR_F
Returns the number of dl opener file entry references where referenceType = ? and fileEntryId = ?.- Parameters:
referenceType- the reference typefileEntryId- the file entry ID- Returns:
- the number of matching dl opener file entry references
-
create
Creates a new dl opener file entry reference with the primary key. Does not add the dl opener file entry reference to the database.- Parameters:
dlOpenerFileEntryReferenceId- the primary key for the new dl opener file entry reference- Returns:
- the new dl opener file entry reference
-
remove
public static DLOpenerFileEntryReference remove(long dlOpenerFileEntryReferenceId) throws NoSuchFileEntryReferenceException Removes the dl opener file entry reference with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
dlOpenerFileEntryReferenceId- the primary key of the dl opener file entry reference- Returns:
- the dl opener file entry reference that was removed
-
updateImpl
public static DLOpenerFileEntryReference updateImpl(DLOpenerFileEntryReference dlOpenerFileEntryReference) -
findByPrimaryKey
public static DLOpenerFileEntryReference findByPrimaryKey(long dlOpenerFileEntryReferenceId) throws NoSuchFileEntryReferenceException Returns the dl opener file entry reference with the primary key or throws aNoSuchFileEntryReferenceExceptionif it could not be found.- Parameters:
dlOpenerFileEntryReferenceId- the primary key of the dl opener file entry reference- Returns:
- the dl opener file entry reference
-
fetchByPrimaryKey
Returns the dl opener file entry reference with the primary key or returnsnullif it could not be found.- Parameters:
dlOpenerFileEntryReferenceId- the primary key of the dl opener file entry reference- Returns:
- the dl opener file entry reference, or
nullif a dl opener file entry reference with the primary key could not be found
-
fetchByFileEntryId
Returns the dl opener file entry reference where fileEntryId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
fileEntryId- the file entry ID- Returns:
- the matching dl opener file entry reference, or
nullif a matching dl opener file entry reference could not be found
-
fetchByR_F
Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
referenceType- the reference typefileEntryId- the file entry ID- Returns:
- the matching dl opener file entry reference, or
nullif a matching dl opener file entry reference could not be found
-
getPersistence
-
setPersistence
-