Class DLOpenerFileEntryReferenceUtil
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 void
cacheResult
(DLOpenerFileEntryReference dlOpenerFileEntryReference) Caches the dl opener file entry reference in the entity cache if it is enabled.static void
cacheResult
(List<DLOpenerFileEntryReference> dlOpenerFileEntryReferences) Caches the dl opener file entry references in the entity cache if it is enabled.static void
static void
clearCache
(DLOpenerFileEntryReference dlOpenerFileEntryReference) static int
countAll()
Returns the number of dl opener file entry references.static int
countByFileEntryId
(long fileEntryId) Returns the number of dl opener file entry references where fileEntryId = ?.static int
countByR_F
(String referenceType, long fileEntryId) Returns the number of dl opener file entry references where referenceType = ? and fileEntryId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DLOpenerFileEntryReference
create
(long dlOpenerFileEntryReferenceId) Creates a new dl opener file entry reference with the primary key.static DLOpenerFileEntryReference
fetchByFileEntryId
(long fileEntryId) Returns the dl opener file entry reference where fileEntryId = ? or returnsnull
if it could not be found.static DLOpenerFileEntryReference
fetchByFileEntryId
(long fileEntryId, boolean useFinderCache) Returns the dl opener file entry reference where fileEntryId = ? or returnsnull
if it could not be found, optionally using the finder cache.static DLOpenerFileEntryReference
fetchByPrimaryKey
(long dlOpenerFileEntryReferenceId) Returns the dl opener file entry reference with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static DLOpenerFileEntryReference
fetchByR_F
(String referenceType, long fileEntryId) Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or returnsnull
if it could not be found.static DLOpenerFileEntryReference
fetchByR_F
(String referenceType, long fileEntryId, boolean useFinderCache) Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or returnsnull
if it could not be found, optionally using the finder cache.static List<DLOpenerFileEntryReference>
findAll()
Returns all the dl opener file entry references.static List<DLOpenerFileEntryReference>
findAll
(int start, int end) Returns a range of all the dl opener file entry references.static List<DLOpenerFileEntryReference>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> orderByComparator) Returns an ordered range of all the dl opener file entry references.static List<DLOpenerFileEntryReference>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> orderByComparator, boolean useFinderCache) Returns an ordered range of all the dl opener file entry references.static DLOpenerFileEntryReference
findByFileEntryId
(long fileEntryId) Returns the dl opener file entry reference where fileEntryId = ? or throws aNoSuchFileEntryReferenceException
if it could not be found.static DLOpenerFileEntryReference
findByPrimaryKey
(long dlOpenerFileEntryReferenceId) Returns the dl opener file entry reference with the primary key or throws aNoSuchFileEntryReferenceException
if it could not be found.static DLOpenerFileEntryReference
Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or throws aNoSuchFileEntryReferenceException
if 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 DLOpenerFileEntryReference
remove
(long dlOpenerFileEntryReferenceId) Removes the dl opener file entry reference with the primary key from the database.static void
Removes all the dl opener file entry references from the database.static DLOpenerFileEntryReference
removeByFileEntryId
(long fileEntryId) Removes the dl opener file entry reference where fileEntryId = ? from the database.static DLOpenerFileEntryReference
removeByR_F
(String referenceType, long fileEntryId) Removes the dl opener file entry reference where referenceType = ? and fileEntryId = ? from the database.static void
setPersistence
(DLOpenerFileEntryReferencePersistence persistence) static DLOpenerFileEntryReference
update
(DLOpenerFileEntryReference dlOpenerFileEntryReference) static DLOpenerFileEntryReference
update
(DLOpenerFileEntryReference dlOpenerFileEntryReference, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DLOpenerFileEntryReference
updateImpl
(DLOpenerFileEntryReference dlOpenerFileEntryReference)
-
Constructor Details
-
DLOpenerFileEntryReferenceUtil
public DLOpenerFileEntryReferenceUtil()
-
-
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,DLOpenerFileEntryReference> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
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:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static DLOpenerFileEntryReference update(DLOpenerFileEntryReference dlOpenerFileEntryReference) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DLOpenerFileEntryReference update(DLOpenerFileEntryReference dlOpenerFileEntryReference, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByFileEntryId
public static DLOpenerFileEntryReference findByFileEntryId(long fileEntryId) throws NoSuchFileEntryReferenceException Returns the dl opener file entry reference where fileEntryId = ? or throws aNoSuchFileEntryReferenceException
if it could not be found.- Parameters:
fileEntryId
- the file entry ID- Returns:
- the matching dl opener file entry reference
- Throws:
NoSuchFileEntryReferenceException
- if a matching dl opener file entry reference could not be foundNoSuchFileEntryReferenceException
-
fetchByFileEntryId
Returns the dl opener file entry reference where fileEntryId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
fileEntryId
- the file entry ID- Returns:
- the matching dl opener file entry reference, or
null
if a matching dl opener file entry reference could not be found
-
fetchByFileEntryId
public static DLOpenerFileEntryReference fetchByFileEntryId(long fileEntryId, boolean useFinderCache) Returns the dl opener file entry reference where fileEntryId = ? or returnsnull
if 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
null
if 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 aNoSuchFileEntryReferenceException
if it could not be found.- Parameters:
referenceType
- the reference typefileEntryId
- the file entry ID- Returns:
- the matching dl opener file entry reference
- Throws:
NoSuchFileEntryReferenceException
- if a matching dl opener file entry reference could not be foundNoSuchFileEntryReferenceException
-
fetchByR_F
Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or returnsnull
if 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
null
if a matching dl opener file entry reference could not be found
-
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 returnsnull
if 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
null
if 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
-
cacheResult
Caches the dl opener file entry reference in the entity cache if it is enabled.- Parameters:
dlOpenerFileEntryReference
- the dl opener file entry reference
-
cacheResult
Caches the dl opener file entry references in the entity cache if it is enabled.- Parameters:
dlOpenerFileEntryReferences
- the 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
- Throws:
NoSuchFileEntryReferenceException
- if a dl opener file entry reference with the primary key could not be foundNoSuchFileEntryReferenceException
-
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 aNoSuchFileEntryReferenceException
if it could not be found.- Parameters:
dlOpenerFileEntryReferenceId
- the primary key of the dl opener file entry reference- Returns:
- the dl opener file entry reference
- Throws:
NoSuchFileEntryReferenceException
- if a dl opener file entry reference with the primary key could not be foundNoSuchFileEntryReferenceException
-
fetchByPrimaryKey
Returns the dl opener file entry reference with the primary key or returnsnull
if 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
null
if a dl opener file entry reference with the primary key could not be found
-
findAll
Returns all the dl opener file entry references.- Returns:
- the dl opener file entry references
-
findAll
Returns a range of all the dl opener file entry references.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 fromDLOpenerFileEntryReferenceModelImpl
.- Parameters:
start
- the lower bound of the range of dl opener file entry referencesend
- the upper bound of the range of dl opener file entry references (not inclusive)- Returns:
- the range of dl opener file entry references
-
findAll
public static List<DLOpenerFileEntryReference> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> orderByComparator) Returns an ordered range of all the dl opener file entry references.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 fromDLOpenerFileEntryReferenceModelImpl
.- Parameters:
start
- the lower bound of the range of dl opener file entry referencesend
- the upper bound of the range of dl opener file entry references (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of dl opener file entry references
-
findAll
public static List<DLOpenerFileEntryReference> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> orderByComparator, boolean useFinderCache) Returns an ordered range of all the dl opener file entry references.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 fromDLOpenerFileEntryReferenceModelImpl
.- Parameters:
start
- the lower bound of the range of dl opener file entry referencesend
- the upper bound of the range of dl opener file entry references (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of dl opener file entry references
-
removeAll
public static void removeAll()Removes all the dl opener file entry references from the database. -
countAll
public static int countAll()Returns the number of dl opener file entry references.- Returns:
- the number of dl opener file entry references
-
getPersistence
-
setPersistence
-