public class DLOpenerFileEntryReferenceUtil
extends java.lang.Object
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
DLOpenerFileEntryReferencePersistence
Constructor and Description |
---|
DLOpenerFileEntryReferenceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DLOpenerFileEntryReference dlOpenerFileEntryReference)
Caches the dl opener file entry reference in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DLOpenerFileEntryReference> dlOpenerFileEntryReferences)
Caches the dl opener file entry references in the entity cache if it is enabled.
|
static void |
clearCache() |
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(java.lang.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 returns
null if it could not be found. |
static DLOpenerFileEntryReference |
fetchByFileEntryId(long fileEntryId,
boolean useFinderCache)
Returns the dl opener file entry reference where fileEntryId = ? or returns
null 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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DLOpenerFileEntryReference> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static DLOpenerFileEntryReference |
fetchByR_F(java.lang.String referenceType,
long fileEntryId)
Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or returns
null if it could not be found. |
static DLOpenerFileEntryReference |
fetchByR_F(java.lang.String referenceType,
long fileEntryId,
boolean useFinderCache)
Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or returns
null if it could not be found, optionally using the finder cache. |
static java.util.List<DLOpenerFileEntryReference> |
findAll()
Returns all the dl opener file entry references.
|
static java.util.List<DLOpenerFileEntryReference> |
findAll(int start,
int end)
Returns a range of all the dl opener file entry references.
|
static java.util.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 java.util.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 a
NoSuchFileEntryReferenceException if it could not be found. |
static DLOpenerFileEntryReference |
findByPrimaryKey(long dlOpenerFileEntryReferenceId)
Returns the dl opener file entry reference with the primary key or throws a
NoSuchFileEntryReferenceException if it could not be found. |
static DLOpenerFileEntryReference |
findByR_F(java.lang.String referenceType,
long fileEntryId)
Returns the dl opener file entry reference where referenceType = ? and fileEntryId = ? or throws a
NoSuchFileEntryReferenceException if it could not be found. |
static java.util.List<DLOpenerFileEntryReference> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DLOpenerFileEntryReference> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DLOpenerFileEntryReference> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> orderByComparator) |
static DLOpenerFileEntryReferencePersistence |
getPersistence() |
static DLOpenerFileEntryReference |
remove(long dlOpenerFileEntryReferenceId)
Removes the dl opener file entry reference with the primary key from the database.
|
static void |
removeAll()
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(java.lang.String referenceType,
long fileEntryId)
Removes the dl opener file entry reference where referenceType = ? and fileEntryId = ? from the database.
|
static DLOpenerFileEntryReference |
update(DLOpenerFileEntryReference dlOpenerFileEntryReference) |
static DLOpenerFileEntryReference |
update(DLOpenerFileEntryReference dlOpenerFileEntryReference,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DLOpenerFileEntryReference |
updateImpl(DLOpenerFileEntryReference dlOpenerFileEntryReference) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DLOpenerFileEntryReference dlOpenerFileEntryReference)
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,DLOpenerFileEntryReference> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DLOpenerFileEntryReference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DLOpenerFileEntryReference update(DLOpenerFileEntryReference dlOpenerFileEntryReference)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DLOpenerFileEntryReference update(DLOpenerFileEntryReference dlOpenerFileEntryReference, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static DLOpenerFileEntryReference findByFileEntryId(long fileEntryId) throws NoSuchFileEntryReferenceException
NoSuchFileEntryReferenceException
if it could not be found.fileEntryId
- the file entry IDNoSuchFileEntryReferenceException
- if a matching dl opener file entry reference could not be foundpublic static DLOpenerFileEntryReference fetchByFileEntryId(long fileEntryId)
null
if it could not be found. Uses the finder cache.fileEntryId
- the file entry IDnull
if a matching dl opener file entry reference could not be foundpublic static DLOpenerFileEntryReference fetchByFileEntryId(long fileEntryId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.fileEntryId
- the file entry IDuseFinderCache
- whether to use the finder cachenull
if a matching dl opener file entry reference could not be foundpublic static DLOpenerFileEntryReference removeByFileEntryId(long fileEntryId) throws NoSuchFileEntryReferenceException
fileEntryId
- the file entry IDNoSuchFileEntryReferenceException
public static int countByFileEntryId(long fileEntryId)
fileEntryId
- the file entry IDpublic static DLOpenerFileEntryReference findByR_F(java.lang.String referenceType, long fileEntryId) throws NoSuchFileEntryReferenceException
NoSuchFileEntryReferenceException
if it could not be found.referenceType
- the reference typefileEntryId
- the file entry IDNoSuchFileEntryReferenceException
- if a matching dl opener file entry reference could not be foundpublic static DLOpenerFileEntryReference fetchByR_F(java.lang.String referenceType, long fileEntryId)
null
if it could not be found. Uses the finder cache.referenceType
- the reference typefileEntryId
- the file entry IDnull
if a matching dl opener file entry reference could not be foundpublic static DLOpenerFileEntryReference fetchByR_F(java.lang.String referenceType, long fileEntryId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.referenceType
- the reference typefileEntryId
- the file entry IDuseFinderCache
- whether to use the finder cachenull
if a matching dl opener file entry reference could not be foundpublic static DLOpenerFileEntryReference removeByR_F(java.lang.String referenceType, long fileEntryId) throws NoSuchFileEntryReferenceException
referenceType
- the reference typefileEntryId
- the file entry IDNoSuchFileEntryReferenceException
public static int countByR_F(java.lang.String referenceType, long fileEntryId)
referenceType
- the reference typefileEntryId
- the file entry IDpublic static void cacheResult(DLOpenerFileEntryReference dlOpenerFileEntryReference)
dlOpenerFileEntryReference
- the dl opener file entry referencepublic static void cacheResult(java.util.List<DLOpenerFileEntryReference> dlOpenerFileEntryReferences)
dlOpenerFileEntryReferences
- the dl opener file entry referencespublic static DLOpenerFileEntryReference create(long dlOpenerFileEntryReferenceId)
dlOpenerFileEntryReferenceId
- the primary key for the new dl opener file entry referencepublic static DLOpenerFileEntryReference remove(long dlOpenerFileEntryReferenceId) throws NoSuchFileEntryReferenceException
dlOpenerFileEntryReferenceId
- the primary key of the dl opener file entry referenceNoSuchFileEntryReferenceException
- if a dl opener file entry reference with the primary key could not be foundpublic static DLOpenerFileEntryReference updateImpl(DLOpenerFileEntryReference dlOpenerFileEntryReference)
public static DLOpenerFileEntryReference findByPrimaryKey(long dlOpenerFileEntryReferenceId) throws NoSuchFileEntryReferenceException
NoSuchFileEntryReferenceException
if it could not be found.dlOpenerFileEntryReferenceId
- the primary key of the dl opener file entry referenceNoSuchFileEntryReferenceException
- if a dl opener file entry reference with the primary key could not be foundpublic static DLOpenerFileEntryReference fetchByPrimaryKey(long dlOpenerFileEntryReferenceId)
null
if it could not be found.dlOpenerFileEntryReferenceId
- the primary key of the dl opener file entry referencenull
if a dl opener file entry reference with the primary key could not be foundpublic static java.util.List<DLOpenerFileEntryReference> findAll()
public static java.util.List<DLOpenerFileEntryReference> 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 DLOpenerFileEntryReferenceModelImpl
.
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)public static java.util.List<DLOpenerFileEntryReference> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> 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 DLOpenerFileEntryReferenceModelImpl
.
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 (optionally null
)public static java.util.List<DLOpenerFileEntryReference> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLOpenerFileEntryReference> 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 DLOpenerFileEntryReferenceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DLOpenerFileEntryReferencePersistence getPersistence()