Liferay 6.2-ce-ga5

com.liferay.portlet.documentlibrary.service.persistence
Class DLFileEntryMetadataUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataUtil

@ProviderType
public class DLFileEntryMetadataUtil
extends Object

The persistence utility for the document library file entry metadata service. This utility wraps DLFileEntryMetadataPersistenceImpl 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:
DLFileEntryMetadataPersistence, DLFileEntryMetadataPersistenceImpl

Constructor Summary
DLFileEntryMetadataUtil()
           
 
Method Summary
static void cacheResult(DLFileEntryMetadata dlFileEntryMetadata)
          Caches the document library file entry metadata in the entity cache if it is enabled.
static void cacheResult(List<DLFileEntryMetadata> dlFileEntryMetadatas)
          Caches the document library file entry metadatas in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DLFileEntryMetadata dlFileEntryMetadata)
           
static int countAll()
          Returns the number of document library file entry metadatas.
static int countByD_F(long DDMStructureId, long fileVersionId)
          Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?.
static int countByFileEntryId(long fileEntryId)
          Returns the number of document library file entry metadatas where fileEntryId = ?.
static int countByFileEntryTypeId(long fileEntryTypeId)
          Returns the number of document library file entry metadatas where fileEntryTypeId = ?.
static int countByFileVersionId(long fileVersionId)
          Returns the number of document library file entry metadatas where fileVersionId = ?.
static int countByUuid(String uuid)
          Returns the number of document library file entry metadatas where uuid = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DLFileEntryMetadata create(long fileEntryMetadataId)
          Creates a new document library file entry metadata with the primary key.
static DLFileEntryMetadata fetchByD_F(long DDMStructureId, long fileVersionId)
          Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found.
static DLFileEntryMetadata fetchByD_F(long DDMStructureId, long fileVersionId, boolean retrieveFromCache)
          Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found, optionally using the finder cache.
static DLFileEntryMetadata fetchByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator)
          Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.
static DLFileEntryMetadata fetchByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator)
          Returns the last document library file entry metadata in the ordered set where fileEntryId = ?.
static DLFileEntryMetadata fetchByFileEntryTypeId_First(long fileEntryTypeId, OrderByComparator orderByComparator)
          Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?.
static DLFileEntryMetadata fetchByFileEntryTypeId_Last(long fileEntryTypeId, OrderByComparator orderByComparator)
          Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?.
static DLFileEntryMetadata fetchByFileVersionId_First(long fileVersionId, OrderByComparator orderByComparator)
          Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.
static DLFileEntryMetadata fetchByFileVersionId_Last(long fileVersionId, OrderByComparator orderByComparator)
          Returns the last document library file entry metadata in the ordered set where fileVersionId = ?.
static DLFileEntryMetadata fetchByPrimaryKey(long fileEntryMetadataId)
          Returns the document library file entry metadata with the primary key or returns null if it could not be found.
static DLFileEntryMetadata fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first document library file entry metadata in the ordered set where uuid = ?.
static DLFileEntryMetadata fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last document library file entry metadata in the ordered set where uuid = ?.
static List<DLFileEntryMetadata> findAll()
          Returns all the document library file entry metadatas.
static List<DLFileEntryMetadata> findAll(int start, int end)
          Returns a range of all the document library file entry metadatas.
static List<DLFileEntryMetadata> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file entry metadatas.
static DLFileEntryMetadata findByD_F(long DDMStructureId, long fileVersionId)
          Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or throws a NoSuchFileEntryMetadataException if it could not be found.
static DLFileEntryMetadata findByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator)
          Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.
static DLFileEntryMetadata findByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator)
          Returns the last document library file entry metadata in the ordered set where fileEntryId = ?.
static DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(long fileEntryMetadataId, long fileEntryId, OrderByComparator orderByComparator)
          Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = ?.
static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId)
          Returns all the document library file entry metadatas where fileEntryId = ?.
static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId, int start, int end)
          Returns a range of all the document library file entry metadatas where fileEntryId = ?.
static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?.
static DLFileEntryMetadata findByFileEntryTypeId_First(long fileEntryTypeId, OrderByComparator orderByComparator)
          Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?.
static DLFileEntryMetadata findByFileEntryTypeId_Last(long fileEntryTypeId, OrderByComparator orderByComparator)
          Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?.
static DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext(long fileEntryMetadataId, long fileEntryTypeId, OrderByComparator orderByComparator)
          Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = ?.
static List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId)
          Returns all the document library file entry metadatas where fileEntryTypeId = ?.
static List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId, int start, int end)
          Returns a range of all the document library file entry metadatas where fileEntryTypeId = ?.
static List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = ?.
static DLFileEntryMetadata findByFileVersionId_First(long fileVersionId, OrderByComparator orderByComparator)
          Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.
static DLFileEntryMetadata findByFileVersionId_Last(long fileVersionId, OrderByComparator orderByComparator)
          Returns the last document library file entry metadata in the ordered set where fileVersionId = ?.
static DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(long fileEntryMetadataId, long fileVersionId, OrderByComparator orderByComparator)
          Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = ?.
static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId)
          Returns all the document library file entry metadatas where fileVersionId = ?.
static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId, int start, int end)
          Returns a range of all the document library file entry metadatas where fileVersionId = ?.
static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?.
static DLFileEntryMetadata findByPrimaryKey(long fileEntryMetadataId)
          Returns the document library file entry metadata with the primary key or throws a NoSuchFileEntryMetadataException if it could not be found.
static DLFileEntryMetadata findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first document library file entry metadata in the ordered set where uuid = ?.
static DLFileEntryMetadata findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last document library file entry metadata in the ordered set where uuid = ?.
static DLFileEntryMetadata[] findByUuid_PrevAndNext(long fileEntryMetadataId, String uuid, OrderByComparator orderByComparator)
          Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = ?.
static List<DLFileEntryMetadata> findByUuid(String uuid)
          Returns all the document library file entry metadatas where uuid = ?.
static List<DLFileEntryMetadata> findByUuid(String uuid, int start, int end)
          Returns a range of all the document library file entry metadatas where uuid = ?.
static List<DLFileEntryMetadata> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file entry metadatas where uuid = ?.
static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static DLFileEntryMetadataPersistence getPersistence()
           
static DLFileEntryMetadata remove(long fileEntryMetadataId)
          Removes the document library file entry metadata with the primary key from the database.
static void removeAll()
          Removes all the document library file entry metadatas from the database.
static DLFileEntryMetadata removeByD_F(long DDMStructureId, long fileVersionId)
          Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database.
static void removeByFileEntryId(long fileEntryId)
          Removes all the document library file entry metadatas where fileEntryId = ? from the database.
static void removeByFileEntryTypeId(long fileEntryTypeId)
          Removes all the document library file entry metadatas where fileEntryTypeId = ? from the database.
static void removeByFileVersionId(long fileVersionId)
          Removes all the document library file entry metadatas where fileVersionId = ? from the database.
static void removeByUuid(String uuid)
          Removes all the document library file entry metadatas where uuid = ? from the database.
 void setPersistence(DLFileEntryMetadataPersistence persistence)
          Deprecated. As of 6.2.0
static DLFileEntryMetadata update(DLFileEntryMetadata dlFileEntryMetadata)
           
static DLFileEntryMetadata update(DLFileEntryMetadata dlFileEntryMetadata, ServiceContext serviceContext)
           
static DLFileEntryMetadata updateImpl(DLFileEntryMetadata dlFileEntryMetadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryMetadataUtil

public DLFileEntryMetadataUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(DLFileEntryMetadata dlFileEntryMetadata)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end)
                                                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end,
                                                             OrderByComparator orderByComparator)
                                                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static DLFileEntryMetadata update(DLFileEntryMetadata dlFileEntryMetadata)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static DLFileEntryMetadata update(DLFileEntryMetadata dlFileEntryMetadata,
                                         ServiceContext serviceContext)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByUuid

public static List<DLFileEntryMetadata> findByUuid(String uuid)
                                            throws SystemException
Returns all the document library file entry metadatas where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<DLFileEntryMetadata> findByUuid(String uuid,
                                                   int start,
                                                   int end)
                                            throws SystemException
Returns a range of all the document library file entry metadatas where uuid = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
Returns:
the range of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<DLFileEntryMetadata> findByUuid(String uuid,
                                                   int start,
                                                   int end,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Returns an ordered range of all the document library file entry metadatas where uuid = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByUuid_First

public static DLFileEntryMetadata findByUuid_First(String uuid,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchFileEntryMetadataException
Returns the first document library file entry metadata in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
SystemException - if a system exception occurred

fetchByUuid_First

public static DLFileEntryMetadata fetchByUuid_First(String uuid,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the first document library file entry metadata in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

public static DLFileEntryMetadata findByUuid_Last(String uuid,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchFileEntryMetadataException
Returns the last document library file entry metadata in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

public static DLFileEntryMetadata fetchByUuid_Last(String uuid,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Returns the last document library file entry metadata in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public static DLFileEntryMetadata[] findByUuid_PrevAndNext(long fileEntryMetadataId,
                                                           String uuid,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException,
                                                           NoSuchFileEntryMetadataException
Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = ?.

Parameters:
fileEntryMetadataId - the primary key of the current document library file entry metadata
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
SystemException - if a system exception occurred

removeByUuid

public static void removeByUuid(String uuid)
                         throws SystemException
Removes all the document library file entry metadatas where uuid = ? from the database.

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

public static int countByUuid(String uuid)
                       throws SystemException
Returns the number of document library file entry metadatas where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileEntryTypeId

public static List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId)
                                                       throws SystemException
Returns all the document library file entry metadatas where fileEntryTypeId = ?.

Parameters:
fileEntryTypeId - the file entry type ID
Returns:
the matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileEntryTypeId

public static List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId,
                                                              int start,
                                                              int end)
                                                       throws SystemException
Returns a range of all the document library file entry metadatas where fileEntryTypeId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
fileEntryTypeId - the file entry type ID
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
Returns:
the range of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileEntryTypeId

public static List<DLFileEntryMetadata> findByFileEntryTypeId(long fileEntryTypeId,
                                                              int start,
                                                              int end,
                                                              OrderByComparator orderByComparator)
                                                       throws SystemException
Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
fileEntryTypeId - the file entry type ID
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileEntryTypeId_First

public static DLFileEntryMetadata findByFileEntryTypeId_First(long fileEntryTypeId,
                                                              OrderByComparator orderByComparator)
                                                       throws SystemException,
                                                              NoSuchFileEntryMetadataException
Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?.

Parameters:
fileEntryTypeId - the file entry type ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
SystemException - if a system exception occurred

fetchByFileEntryTypeId_First

public static DLFileEntryMetadata fetchByFileEntryTypeId_First(long fileEntryTypeId,
                                                               OrderByComparator orderByComparator)
                                                        throws SystemException
Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?.

Parameters:
fileEntryTypeId - the file entry type ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

findByFileEntryTypeId_Last

public static DLFileEntryMetadata findByFileEntryTypeId_Last(long fileEntryTypeId,
                                                             OrderByComparator orderByComparator)
                                                      throws SystemException,
                                                             NoSuchFileEntryMetadataException
Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?.

Parameters:
fileEntryTypeId - the file entry type ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
SystemException - if a system exception occurred

fetchByFileEntryTypeId_Last

public static DLFileEntryMetadata fetchByFileEntryTypeId_Last(long fileEntryTypeId,
                                                              OrderByComparator orderByComparator)
                                                       throws SystemException
Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?.

Parameters:
fileEntryTypeId - the file entry type ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

findByFileEntryTypeId_PrevAndNext

public static DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext(long fileEntryMetadataId,
                                                                      long fileEntryTypeId,
                                                                      OrderByComparator orderByComparator)
                                                               throws SystemException,
                                                                      NoSuchFileEntryMetadataException
Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = ?.

Parameters:
fileEntryMetadataId - the primary key of the current document library file entry metadata
fileEntryTypeId - the file entry type ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
SystemException - if a system exception occurred

removeByFileEntryTypeId

public static void removeByFileEntryTypeId(long fileEntryTypeId)
                                    throws SystemException
Removes all the document library file entry metadatas where fileEntryTypeId = ? from the database.

Parameters:
fileEntryTypeId - the file entry type ID
Throws:
SystemException - if a system exception occurred

countByFileEntryTypeId

public static int countByFileEntryTypeId(long fileEntryTypeId)
                                  throws SystemException
Returns the number of document library file entry metadatas where fileEntryTypeId = ?.

Parameters:
fileEntryTypeId - the file entry type ID
Returns:
the number of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileEntryId

public static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId)
                                                   throws SystemException
Returns all the document library file entry metadatas where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
Returns:
the matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileEntryId

public static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId,
                                                          int start,
                                                          int end)
                                                   throws SystemException
Returns a range of all the document library file entry metadatas where fileEntryId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
fileEntryId - the file entry ID
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
Returns:
the range of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileEntryId

public static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException
Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
fileEntryId - the file entry ID
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileEntryId_First

public static DLFileEntryMetadata findByFileEntryId_First(long fileEntryId,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException,
                                                          NoSuchFileEntryMetadataException
Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
SystemException - if a system exception occurred

fetchByFileEntryId_First

public static DLFileEntryMetadata fetchByFileEntryId_First(long fileEntryId,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

findByFileEntryId_Last

public static DLFileEntryMetadata findByFileEntryId_Last(long fileEntryId,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchFileEntryMetadataException
Returns the last document library file entry metadata in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
SystemException - if a system exception occurred

fetchByFileEntryId_Last

public static DLFileEntryMetadata fetchByFileEntryId_Last(long fileEntryId,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException
Returns the last document library file entry metadata in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

findByFileEntryId_PrevAndNext

public static DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(long fileEntryMetadataId,
                                                                  long fileEntryId,
                                                                  OrderByComparator orderByComparator)
                                                           throws SystemException,
                                                                  NoSuchFileEntryMetadataException
Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = ?.

Parameters:
fileEntryMetadataId - the primary key of the current document library file entry metadata
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
SystemException - if a system exception occurred

removeByFileEntryId

public static void removeByFileEntryId(long fileEntryId)
                                throws SystemException
Removes all the document library file entry metadatas where fileEntryId = ? from the database.

Parameters:
fileEntryId - the file entry ID
Throws:
SystemException - if a system exception occurred

countByFileEntryId

public static int countByFileEntryId(long fileEntryId)
                              throws SystemException
Returns the number of document library file entry metadatas where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
Returns:
the number of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileVersionId

public static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId)
                                                     throws SystemException
Returns all the document library file entry metadatas where fileVersionId = ?.

Parameters:
fileVersionId - the file version ID
Returns:
the matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileVersionId

public static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId,
                                                            int start,
                                                            int end)
                                                     throws SystemException
Returns a range of all the document library file entry metadatas where fileVersionId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
fileVersionId - the file version ID
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
Returns:
the range of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileVersionId

public static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId,
                                                            int start,
                                                            int end,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException
Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
fileVersionId - the file version ID
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByFileVersionId_First

public static DLFileEntryMetadata findByFileVersionId_First(long fileVersionId,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException,
                                                            NoSuchFileEntryMetadataException
Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.

Parameters:
fileVersionId - the file version ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
SystemException - if a system exception occurred

fetchByFileVersionId_First

public static DLFileEntryMetadata fetchByFileVersionId_First(long fileVersionId,
                                                             OrderByComparator orderByComparator)
                                                      throws SystemException
Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.

Parameters:
fileVersionId - the file version ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

findByFileVersionId_Last

public static DLFileEntryMetadata findByFileVersionId_Last(long fileVersionId,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException,
                                                           NoSuchFileEntryMetadataException
Returns the last document library file entry metadata in the ordered set where fileVersionId = ?.

Parameters:
fileVersionId - the file version ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
SystemException - if a system exception occurred

fetchByFileVersionId_Last

public static DLFileEntryMetadata fetchByFileVersionId_Last(long fileVersionId,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException
Returns the last document library file entry metadata in the ordered set where fileVersionId = ?.

Parameters:
fileVersionId - the file version ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

findByFileVersionId_PrevAndNext

public static DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(long fileEntryMetadataId,
                                                                    long fileVersionId,
                                                                    OrderByComparator orderByComparator)
                                                             throws SystemException,
                                                                    NoSuchFileEntryMetadataException
Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = ?.

Parameters:
fileEntryMetadataId - the primary key of the current document library file entry metadata
fileVersionId - the file version ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
SystemException - if a system exception occurred

removeByFileVersionId

public static void removeByFileVersionId(long fileVersionId)
                                  throws SystemException
Removes all the document library file entry metadatas where fileVersionId = ? from the database.

Parameters:
fileVersionId - the file version ID
Throws:
SystemException - if a system exception occurred

countByFileVersionId

public static int countByFileVersionId(long fileVersionId)
                                throws SystemException
Returns the number of document library file entry metadatas where fileVersionId = ?.

Parameters:
fileVersionId - the file version ID
Returns:
the number of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findByD_F

public static DLFileEntryMetadata findByD_F(long DDMStructureId,
                                            long fileVersionId)
                                     throws SystemException,
                                            NoSuchFileEntryMetadataException
Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or throws a NoSuchFileEntryMetadataException if it could not be found.

Parameters:
DDMStructureId - the d d m structure ID
fileVersionId - the file version ID
Returns:
the matching document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
SystemException - if a system exception occurred

fetchByD_F

public static DLFileEntryMetadata fetchByD_F(long DDMStructureId,
                                             long fileVersionId)
                                      throws SystemException
Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
DDMStructureId - the d d m structure ID
fileVersionId - the file version ID
Returns:
the matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

fetchByD_F

public static DLFileEntryMetadata fetchByD_F(long DDMStructureId,
                                             long fileVersionId,
                                             boolean retrieveFromCache)
                                      throws SystemException
Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
DDMStructureId - the d d m structure ID
fileVersionId - the file version ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
Throws:
SystemException - if a system exception occurred

removeByD_F

public static DLFileEntryMetadata removeByD_F(long DDMStructureId,
                                              long fileVersionId)
                                       throws SystemException,
                                              NoSuchFileEntryMetadataException
Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database.

Parameters:
DDMStructureId - the d d m structure ID
fileVersionId - the file version ID
Returns:
the document library file entry metadata that was removed
Throws:
SystemException - if a system exception occurred
NoSuchFileEntryMetadataException

countByD_F

public static int countByD_F(long DDMStructureId,
                             long fileVersionId)
                      throws SystemException
Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?.

Parameters:
DDMStructureId - the d d m structure ID
fileVersionId - the file version ID
Returns:
the number of matching document library file entry metadatas
Throws:
SystemException - if a system exception occurred

cacheResult

public static void cacheResult(DLFileEntryMetadata dlFileEntryMetadata)
Caches the document library file entry metadata in the entity cache if it is enabled.

Parameters:
dlFileEntryMetadata - the document library file entry metadata

cacheResult

public static void cacheResult(List<DLFileEntryMetadata> dlFileEntryMetadatas)
Caches the document library file entry metadatas in the entity cache if it is enabled.

Parameters:
dlFileEntryMetadatas - the document library file entry metadatas

create

public static DLFileEntryMetadata create(long fileEntryMetadataId)
Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.

Parameters:
fileEntryMetadataId - the primary key for the new document library file entry metadata
Returns:
the new document library file entry metadata

remove

public static DLFileEntryMetadata remove(long fileEntryMetadataId)
                                  throws SystemException,
                                         NoSuchFileEntryMetadataException
Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
fileEntryMetadataId - the primary key of the document library file entry metadata
Returns:
the document library file entry metadata that was removed
Throws:
NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static DLFileEntryMetadata updateImpl(DLFileEntryMetadata dlFileEntryMetadata)
                                      throws SystemException
Throws:
SystemException

findByPrimaryKey

public static DLFileEntryMetadata findByPrimaryKey(long fileEntryMetadataId)
                                            throws SystemException,
                                                   NoSuchFileEntryMetadataException
Returns the document library file entry metadata with the primary key or throws a NoSuchFileEntryMetadataException if it could not be found.

Parameters:
fileEntryMetadataId - the primary key of the document library file entry metadata
Returns:
the document library file entry metadata
Throws:
NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static DLFileEntryMetadata fetchByPrimaryKey(long fileEntryMetadataId)
                                             throws SystemException
Returns the document library file entry metadata with the primary key or returns null if it could not be found.

Parameters:
fileEntryMetadataId - the primary key of the document library file entry metadata
Returns:
the document library file entry metadata, or null if a document library file entry metadata with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLFileEntryMetadata> findAll()
                                         throws SystemException
Returns all the document library file entry metadatas.

Returns:
the document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLFileEntryMetadata> findAll(int start,
                                                int end)
                                         throws SystemException
Returns a range of all the document library file entry metadatas.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
Returns:
the range of document library file entry metadatas
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLFileEntryMetadata> findAll(int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns an ordered range of all the document library file entry metadatas.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of document library file entry metadatas
end - the upper bound of the range of document library file entry metadatas (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of document library file entry metadatas
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the document library file entry metadatas from the database.

Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of document library file entry metadatas.

Returns:
the number of document library file entry metadatas
Throws:
SystemException - if a system exception occurred

getPersistence

public static DLFileEntryMetadataPersistence getPersistence()

setPersistence

public void setPersistence(DLFileEntryMetadataPersistence persistence)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5