Liferay 7.0-ce-b4

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

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

@ProviderType
public class DLFileEntryTypeUtil
extends Object

The persistence utility for the document library file entry type service. This utility wraps DLFileEntryTypePersistenceImpl 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:
DLFileEntryTypePersistence, DLFileEntryTypePersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DLFileEntryTypeUtil()
           
 
Method Summary
static void addDLFolder(long pk, DLFolder dlFolder)
          Adds an association between the document library file entry type and the document library folder.
static void addDLFolder(long pk, long dlFolderPK)
          Adds an association between the document library file entry type and the document library folder.
static void addDLFolders(long pk, List<DLFolder> dlFolders)
          Adds an association between the document library file entry type and the document library folders.
static void addDLFolders(long pk, long[] dlFolderPKs)
          Adds an association between the document library file entry type and the document library folders.
static void cacheResult(DLFileEntryType dlFileEntryType)
          Caches the document library file entry type in the entity cache if it is enabled.
static void cacheResult(List<DLFileEntryType> dlFileEntryTypes)
          Caches the document library file entry types in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DLFileEntryType dlFileEntryType)
           
static void clearDLFolders(long pk)
          Clears all associations between the document library file entry type and its document library folders.
static boolean containsDLFolder(long pk, long dlFolderPK)
          Returns true if the document library folder is associated with the document library file entry type.
static boolean containsDLFolders(long pk)
          Returns true if the document library file entry type has any document library folders associated with it.
static int countAll()
          Returns the number of document library file entry types.
static int countByG_F(long groupId, String fileEntryTypeKey)
          Returns the number of document library file entry types where groupId = ? and fileEntryTypeKey = ?.
static int countByGroupId(long groupId)
          Returns the number of document library file entry types where groupId = ?.
static int countByGroupId(long[] groupIds)
          Returns the number of document library file entry types where groupId = any ?.
static int countByUuid_C(String uuid, long companyId)
          Returns the number of document library file entry types where uuid = ? and companyId = ?.
static int countByUUID_G(String uuid, long groupId)
          Returns the number of document library file entry types where uuid = ? and groupId = ?.
static int countByUuid(String uuid)
          Returns the number of document library file entry types where uuid = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DLFileEntryType create(long fileEntryTypeId)
          Creates a new document library file entry type with the primary key.
static DLFileEntryType fetchByG_F(long groupId, String fileEntryTypeKey)
          Returns the document library file entry type where groupId = ? and fileEntryTypeKey = ? or returns null if it could not be found.
static DLFileEntryType fetchByG_F(long groupId, String fileEntryTypeKey, boolean retrieveFromCache)
          Returns the document library file entry type where groupId = ? and fileEntryTypeKey = ? or returns null if it could not be found, optionally using the finder cache.
static DLFileEntryType fetchByGroupId_First(long groupId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the first document library file entry type in the ordered set where groupId = ?.
static DLFileEntryType fetchByGroupId_Last(long groupId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the last document library file entry type in the ordered set where groupId = ?.
static DLFileEntryType fetchByPrimaryKey(long fileEntryTypeId)
          Returns the document library file entry type with the primary key or returns null if it could not be found.
static Map<Serializable,DLFileEntryType> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static DLFileEntryType fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the first document library file entry type in the ordered set where uuid = ? and companyId = ?.
static DLFileEntryType fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the last document library file entry type in the ordered set where uuid = ? and companyId = ?.
static DLFileEntryType fetchByUuid_First(String uuid, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the first document library file entry type in the ordered set where uuid = ?.
static DLFileEntryType fetchByUUID_G(String uuid, long groupId)
          Returns the document library file entry type where uuid = ? and groupId = ? or returns null if it could not be found.
static DLFileEntryType fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the document library file entry type where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
static DLFileEntryType fetchByUuid_Last(String uuid, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the last document library file entry type in the ordered set where uuid = ?.
static int filterCountByGroupId(long groupId)
          Returns the number of document library file entry types that the user has permission to view where groupId = ?.
static int filterCountByGroupId(long[] groupIds)
          Returns the number of document library file entry types that the user has permission to view where groupId = any ?.
static DLFileEntryType[] filterFindByGroupId_PrevAndNext(long fileEntryTypeId, long groupId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the document library file entry types before and after the current document library file entry type in the ordered set of document library file entry types that the user has permission to view where groupId = ?.
static List<DLFileEntryType> filterFindByGroupId(long groupId)
          Returns all the document library file entry types that the user has permission to view where groupId = ?.
static List<DLFileEntryType> filterFindByGroupId(long[] groupIds)
          Returns all the document library file entry types that the user has permission to view where groupId = any ?.
static List<DLFileEntryType> filterFindByGroupId(long[] groupIds, int start, int end)
          Returns a range of all the document library file entry types that the user has permission to view where groupId = any ?.
static List<DLFileEntryType> filterFindByGroupId(long[] groupIds, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns an ordered range of all the document library file entry types that the user has permission to view where groupId = any ?.
static List<DLFileEntryType> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the document library file entry types that the user has permission to view where groupId = ?.
static List<DLFileEntryType> filterFindByGroupId(long groupId, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns an ordered range of all the document library file entry types that the user has permissions to view where groupId = ?.
static List<DLFileEntryType> findAll()
          Returns all the document library file entry types.
static List<DLFileEntryType> findAll(int start, int end)
          Returns a range of all the document library file entry types.
static List<DLFileEntryType> findAll(int start, int end, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns an ordered range of all the document library file entry types.
static List<DLFileEntryType> findAll(int start, int end, OrderByComparator<DLFileEntryType> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file entry types.
static DLFileEntryType findByG_F(long groupId, String fileEntryTypeKey)
          Returns the document library file entry type where groupId = ? and fileEntryTypeKey = ? or throws a NoSuchFileEntryTypeException if it could not be found.
static DLFileEntryType findByGroupId_First(long groupId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the first document library file entry type in the ordered set where groupId = ?.
static DLFileEntryType findByGroupId_Last(long groupId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the last document library file entry type in the ordered set where groupId = ?.
static DLFileEntryType[] findByGroupId_PrevAndNext(long fileEntryTypeId, long groupId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the document library file entry types before and after the current document library file entry type in the ordered set where groupId = ?.
static List<DLFileEntryType> findByGroupId(long groupId)
          Returns all the document library file entry types where groupId = ?.
static List<DLFileEntryType> findByGroupId(long[] groupIds)
          Returns all the document library file entry types where groupId = any ?.
static List<DLFileEntryType> findByGroupId(long[] groupIds, int start, int end)
          Returns a range of all the document library file entry types where groupId = any ?.
static List<DLFileEntryType> findByGroupId(long[] groupIds, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns an ordered range of all the document library file entry types where groupId = any ?.
static List<DLFileEntryType> findByGroupId(long[] groupIds, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file entry types where groupId = ?, optionally using the finder cache.
static List<DLFileEntryType> findByGroupId(long groupId, int start, int end)
          Returns a range of all the document library file entry types where groupId = ?.
static List<DLFileEntryType> findByGroupId(long groupId, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns an ordered range of all the document library file entry types where groupId = ?.
static List<DLFileEntryType> findByGroupId(long groupId, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file entry types where groupId = ?.
static DLFileEntryType findByPrimaryKey(long fileEntryTypeId)
          Returns the document library file entry type with the primary key or throws a NoSuchFileEntryTypeException if it could not be found.
static DLFileEntryType findByUuid_C_First(String uuid, long companyId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the first document library file entry type in the ordered set where uuid = ? and companyId = ?.
static DLFileEntryType findByUuid_C_Last(String uuid, long companyId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the last document library file entry type in the ordered set where uuid = ? and companyId = ?.
static DLFileEntryType[] findByUuid_C_PrevAndNext(long fileEntryTypeId, String uuid, long companyId, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the document library file entry types before and after the current document library file entry type in the ordered set where uuid = ? and companyId = ?.
static List<DLFileEntryType> findByUuid_C(String uuid, long companyId)
          Returns all the document library file entry types where uuid = ? and companyId = ?.
static List<DLFileEntryType> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the document library file entry types where uuid = ? and companyId = ?.
static List<DLFileEntryType> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns an ordered range of all the document library file entry types where uuid = ? and companyId = ?.
static List<DLFileEntryType> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file entry types where uuid = ? and companyId = ?.
static DLFileEntryType findByUuid_First(String uuid, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the first document library file entry type in the ordered set where uuid = ?.
static DLFileEntryType findByUUID_G(String uuid, long groupId)
          Returns the document library file entry type where uuid = ? and groupId = ? or throws a NoSuchFileEntryTypeException if it could not be found.
static DLFileEntryType findByUuid_Last(String uuid, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the last document library file entry type in the ordered set where uuid = ?.
static DLFileEntryType[] findByUuid_PrevAndNext(long fileEntryTypeId, String uuid, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns the document library file entry types before and after the current document library file entry type in the ordered set where uuid = ?.
static List<DLFileEntryType> findByUuid(String uuid)
          Returns all the document library file entry types where uuid = ?.
static List<DLFileEntryType> findByUuid(String uuid, int start, int end)
          Returns a range of all the document library file entry types where uuid = ?.
static List<DLFileEntryType> findByUuid(String uuid, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator)
          Returns an ordered range of all the document library file entry types where uuid = ?.
static List<DLFileEntryType> findByUuid(String uuid, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file entry types where uuid = ?.
static List<DLFileEntryType> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DLFileEntryType> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DLFileEntryType> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<DLFileEntryType> orderByComparator)
           
static Set<String> getBadColumnNames()
           
static long[] getDLFolderPrimaryKeys(long pk)
          Returns the primaryKeys of document library folders associated with the document library file entry type.
static List<DLFolder> getDLFolders(long pk)
          Returns all the document library folders associated with the document library file entry type.
static List<DLFolder> getDLFolders(long pk, int start, int end)
          Returns a range of all the document library folders associated with the document library file entry type.
static List<DLFolder> getDLFolders(long pk, int start, int end, OrderByComparator<DLFolder> orderByComparator)
          Returns an ordered range of all the document library folders associated with the document library file entry type.
static int getDLFoldersSize(long pk)
          Returns the number of document library folders associated with the document library file entry type.
static DLFileEntryTypePersistence getPersistence()
           
static DLFileEntryType remove(long fileEntryTypeId)
          Removes the document library file entry type with the primary key from the database.
static void removeAll()
          Removes all the document library file entry types from the database.
static DLFileEntryType removeByG_F(long groupId, String fileEntryTypeKey)
          Removes the document library file entry type where groupId = ? and fileEntryTypeKey = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the document library file entry types where groupId = ? from the database.
static void removeByUuid_C(String uuid, long companyId)
          Removes all the document library file entry types where uuid = ? and companyId = ? from the database.
static DLFileEntryType removeByUUID_G(String uuid, long groupId)
          Removes the document library file entry type where uuid = ? and groupId = ? from the database.
static void removeByUuid(String uuid)
          Removes all the document library file entry types where uuid = ? from the database.
static void removeDLFolder(long pk, DLFolder dlFolder)
          Removes the association between the document library file entry type and the document library folder.
static void removeDLFolder(long pk, long dlFolderPK)
          Removes the association between the document library file entry type and the document library folder.
static void removeDLFolders(long pk, List<DLFolder> dlFolders)
          Removes the association between the document library file entry type and the document library folders.
static void removeDLFolders(long pk, long[] dlFolderPKs)
          Removes the association between the document library file entry type and the document library folders.
static void setDLFolders(long pk, List<DLFolder> dlFolders)
          Sets the document library folders associated with the document library file entry type, removing and adding associations as necessary.
static void setDLFolders(long pk, long[] dlFolderPKs)
          Sets the document library folders associated with the document library file entry type, removing and adding associations as necessary.
static DLFileEntryType update(DLFileEntryType dlFileEntryType)
           
static DLFileEntryType update(DLFileEntryType dlFileEntryType, ServiceContext serviceContext)
           
static DLFileEntryType updateImpl(DLFileEntryType dlFileEntryType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryTypeUtil

public DLFileEntryTypeUtil()
Method Detail

clearCache

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

clearCache

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

countWithDynamicQuery

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

findWithDynamicQuery

public static List<DLFileEntryType> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLFileEntryType> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                         int start,
                                                         int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

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

update

public static DLFileEntryType update(DLFileEntryType dlFileEntryType)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static DLFileEntryType update(DLFileEntryType dlFileEntryType,
                                     ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByUuid

public static List<DLFileEntryType> findByUuid(String uuid)
Returns all the document library file entry types where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching document library file entry types

findByUuid

public static List<DLFileEntryType> findByUuid(String uuid,
                                               int start,
                                               int end)
Returns a range of all the document library file entry types 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 DLFileEntryTypeModelImpl. 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 types
end - the upper bound of the range of document library file entry types (not inclusive)
Returns:
the range of matching document library file entry types

findByUuid

public static List<DLFileEntryType> findByUuid(String uuid,
                                               int start,
                                               int end,
                                               OrderByComparator<DLFileEntryType> orderByComparator)
Returns an ordered range of all the document library file entry types 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 DLFileEntryTypeModelImpl. 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 types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry types

findByUuid

public static List<DLFileEntryType> findByUuid(String uuid,
                                               int start,
                                               int end,
                                               OrderByComparator<DLFileEntryType> orderByComparator,
                                               boolean retrieveFromCache)
Returns an ordered range of all the document library file entry types 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 DLFileEntryTypeModelImpl. 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 types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching document library file entry types

findByUuid_First

public static DLFileEntryType findByUuid_First(String uuid,
                                               OrderByComparator<DLFileEntryType> orderByComparator)
                                        throws NoSuchFileEntryTypeException
Returns the first document library file entry type 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 type
Throws:
NoSuchFileEntryTypeException - if a matching document library file entry type could not be found

fetchByUuid_First

public static DLFileEntryType fetchByUuid_First(String uuid,
                                                OrderByComparator<DLFileEntryType> orderByComparator)
Returns the first document library file entry type 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 type, or null if a matching document library file entry type could not be found

findByUuid_Last

public static DLFileEntryType findByUuid_Last(String uuid,
                                              OrderByComparator<DLFileEntryType> orderByComparator)
                                       throws NoSuchFileEntryTypeException
Returns the last document library file entry type 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 type
Throws:
NoSuchFileEntryTypeException - if a matching document library file entry type could not be found

fetchByUuid_Last

public static DLFileEntryType fetchByUuid_Last(String uuid,
                                               OrderByComparator<DLFileEntryType> orderByComparator)
Returns the last document library file entry type 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 type, or null if a matching document library file entry type could not be found

findByUuid_PrevAndNext

public static DLFileEntryType[] findByUuid_PrevAndNext(long fileEntryTypeId,
                                                       String uuid,
                                                       OrderByComparator<DLFileEntryType> orderByComparator)
                                                throws NoSuchFileEntryTypeException
Returns the document library file entry types before and after the current document library file entry type in the ordered set where uuid = ?.

Parameters:
fileEntryTypeId - the primary key of the current document library file entry type
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file entry type
Throws:
NoSuchFileEntryTypeException - if a document library file entry type with the primary key could not be found

removeByUuid

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

Parameters:
uuid - the uuid

countByUuid

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

Parameters:
uuid - the uuid
Returns:
the number of matching document library file entry types

findByUUID_G

public static DLFileEntryType findByUUID_G(String uuid,
                                           long groupId)
                                    throws NoSuchFileEntryTypeException
Returns the document library file entry type where uuid = ? and groupId = ? or throws a NoSuchFileEntryTypeException if it could not be found.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching document library file entry type
Throws:
NoSuchFileEntryTypeException - if a matching document library file entry type could not be found

fetchByUUID_G

public static DLFileEntryType fetchByUUID_G(String uuid,
                                            long groupId)
Returns the document library file entry type where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching document library file entry type, or null if a matching document library file entry type could not be found

fetchByUUID_G

public static DLFileEntryType fetchByUUID_G(String uuid,
                                            long groupId,
                                            boolean retrieveFromCache)
Returns the document library file entry type where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching document library file entry type, or null if a matching document library file entry type could not be found

removeByUUID_G

public static DLFileEntryType removeByUUID_G(String uuid,
                                             long groupId)
                                      throws NoSuchFileEntryTypeException
Removes the document library file entry type where uuid = ? and groupId = ? from the database.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the document library file entry type that was removed
Throws:
NoSuchFileEntryTypeException

countByUUID_G

public static int countByUUID_G(String uuid,
                                long groupId)
Returns the number of document library file entry types where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching document library file entry types

findByUuid_C

public static List<DLFileEntryType> findByUuid_C(String uuid,
                                                 long companyId)
Returns all the document library file entry types where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching document library file entry types

findByUuid_C

public static List<DLFileEntryType> findByUuid_C(String uuid,
                                                 long companyId,
                                                 int start,
                                                 int end)
Returns a range of all the document library file entry types where uuid = ? and companyId = ?.

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 DLFileEntryTypeModelImpl. 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
companyId - the company ID
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
Returns:
the range of matching document library file entry types

findByUuid_C

public static List<DLFileEntryType> findByUuid_C(String uuid,
                                                 long companyId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<DLFileEntryType> orderByComparator)
Returns an ordered range of all the document library file entry types where uuid = ? and companyId = ?.

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 DLFileEntryTypeModelImpl. 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
companyId - the company ID
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry types

findByUuid_C

public static List<DLFileEntryType> findByUuid_C(String uuid,
                                                 long companyId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<DLFileEntryType> orderByComparator,
                                                 boolean retrieveFromCache)
Returns an ordered range of all the document library file entry types where uuid = ? and companyId = ?.

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 DLFileEntryTypeModelImpl. 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
companyId - the company ID
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching document library file entry types

findByUuid_C_First

public static DLFileEntryType findByUuid_C_First(String uuid,
                                                 long companyId,
                                                 OrderByComparator<DLFileEntryType> orderByComparator)
                                          throws NoSuchFileEntryTypeException
Returns the first document library file entry type in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry type
Throws:
NoSuchFileEntryTypeException - if a matching document library file entry type could not be found

fetchByUuid_C_First

public static DLFileEntryType fetchByUuid_C_First(String uuid,
                                                  long companyId,
                                                  OrderByComparator<DLFileEntryType> orderByComparator)
Returns the first document library file entry type in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry type, or null if a matching document library file entry type could not be found

findByUuid_C_Last

public static DLFileEntryType findByUuid_C_Last(String uuid,
                                                long companyId,
                                                OrderByComparator<DLFileEntryType> orderByComparator)
                                         throws NoSuchFileEntryTypeException
Returns the last document library file entry type in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry type
Throws:
NoSuchFileEntryTypeException - if a matching document library file entry type could not be found

fetchByUuid_C_Last

public static DLFileEntryType fetchByUuid_C_Last(String uuid,
                                                 long companyId,
                                                 OrderByComparator<DLFileEntryType> orderByComparator)
Returns the last document library file entry type in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry type, or null if a matching document library file entry type could not be found

findByUuid_C_PrevAndNext

public static DLFileEntryType[] findByUuid_C_PrevAndNext(long fileEntryTypeId,
                                                         String uuid,
                                                         long companyId,
                                                         OrderByComparator<DLFileEntryType> orderByComparator)
                                                  throws NoSuchFileEntryTypeException
Returns the document library file entry types before and after the current document library file entry type in the ordered set where uuid = ? and companyId = ?.

Parameters:
fileEntryTypeId - the primary key of the current document library file entry type
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file entry type
Throws:
NoSuchFileEntryTypeException - if a document library file entry type with the primary key could not be found

removeByUuid_C

public static void removeByUuid_C(String uuid,
                                  long companyId)
Removes all the document library file entry types where uuid = ? and companyId = ? from the database.

Parameters:
uuid - the uuid
companyId - the company ID

countByUuid_C

public static int countByUuid_C(String uuid,
                                long companyId)
Returns the number of document library file entry types where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching document library file entry types

findByGroupId

public static List<DLFileEntryType> findByGroupId(long groupId)
Returns all the document library file entry types where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching document library file entry types

findByGroupId

public static List<DLFileEntryType> findByGroupId(long groupId,
                                                  int start,
                                                  int end)
Returns a range of all the document library file entry types where groupId = ?.

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 DLFileEntryTypeModelImpl. 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:
groupId - the group ID
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
Returns:
the range of matching document library file entry types

findByGroupId

public static List<DLFileEntryType> findByGroupId(long groupId,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<DLFileEntryType> orderByComparator)
Returns an ordered range of all the document library file entry types where groupId = ?.

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 DLFileEntryTypeModelImpl. 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:
groupId - the group ID
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry types

findByGroupId

public static List<DLFileEntryType> findByGroupId(long groupId,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<DLFileEntryType> orderByComparator,
                                                  boolean retrieveFromCache)
Returns an ordered range of all the document library file entry types where groupId = ?.

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 DLFileEntryTypeModelImpl. 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:
groupId - the group ID
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching document library file entry types

findByGroupId_First

public static DLFileEntryType findByGroupId_First(long groupId,
                                                  OrderByComparator<DLFileEntryType> orderByComparator)
                                           throws NoSuchFileEntryTypeException
Returns the first document library file entry type in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry type
Throws:
NoSuchFileEntryTypeException - if a matching document library file entry type could not be found

fetchByGroupId_First

public static DLFileEntryType fetchByGroupId_First(long groupId,
                                                   OrderByComparator<DLFileEntryType> orderByComparator)
Returns the first document library file entry type in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file entry type, or null if a matching document library file entry type could not be found

findByGroupId_Last

public static DLFileEntryType findByGroupId_Last(long groupId,
                                                 OrderByComparator<DLFileEntryType> orderByComparator)
                                          throws NoSuchFileEntryTypeException
Returns the last document library file entry type in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry type
Throws:
NoSuchFileEntryTypeException - if a matching document library file entry type could not be found

fetchByGroupId_Last

public static DLFileEntryType fetchByGroupId_Last(long groupId,
                                                  OrderByComparator<DLFileEntryType> orderByComparator)
Returns the last document library file entry type in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file entry type, or null if a matching document library file entry type could not be found

findByGroupId_PrevAndNext

public static DLFileEntryType[] findByGroupId_PrevAndNext(long fileEntryTypeId,
                                                          long groupId,
                                                          OrderByComparator<DLFileEntryType> orderByComparator)
                                                   throws NoSuchFileEntryTypeException
Returns the document library file entry types before and after the current document library file entry type in the ordered set where groupId = ?.

Parameters:
fileEntryTypeId - the primary key of the current document library file entry type
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file entry type
Throws:
NoSuchFileEntryTypeException - if a document library file entry type with the primary key could not be found

filterFindByGroupId

public static List<DLFileEntryType> filterFindByGroupId(long groupId)
Returns all the document library file entry types that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching document library file entry types that the user has permission to view

filterFindByGroupId

public static List<DLFileEntryType> filterFindByGroupId(long groupId,
                                                        int start,
                                                        int end)
Returns a range of all the document library file entry types that the user has permission to view where groupId = ?.

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 DLFileEntryTypeModelImpl. 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:
groupId - the group ID
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
Returns:
the range of matching document library file entry types that the user has permission to view

filterFindByGroupId

public static List<DLFileEntryType> filterFindByGroupId(long groupId,
                                                        int start,
                                                        int end,
                                                        OrderByComparator<DLFileEntryType> orderByComparator)
Returns an ordered range of all the document library file entry types that the user has permissions to view where groupId = ?.

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 DLFileEntryTypeModelImpl. 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:
groupId - the group ID
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry types that the user has permission to view

filterFindByGroupId_PrevAndNext

public static DLFileEntryType[] filterFindByGroupId_PrevAndNext(long fileEntryTypeId,
                                                                long groupId,
                                                                OrderByComparator<DLFileEntryType> orderByComparator)
                                                         throws NoSuchFileEntryTypeException
Returns the document library file entry types before and after the current document library file entry type in the ordered set of document library file entry types that the user has permission to view where groupId = ?.

Parameters:
fileEntryTypeId - the primary key of the current document library file entry type
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file entry type
Throws:
NoSuchFileEntryTypeException - if a document library file entry type with the primary key could not be found

filterFindByGroupId

public static List<DLFileEntryType> filterFindByGroupId(long[] groupIds)
Returns all the document library file entry types that the user has permission to view where groupId = any ?.

Parameters:
groupIds - the group IDs
Returns:
the matching document library file entry types that the user has permission to view

filterFindByGroupId

public static List<DLFileEntryType> filterFindByGroupId(long[] groupIds,
                                                        int start,
                                                        int end)
Returns a range of all the document library file entry types that the user has permission to view where groupId = any ?.

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 DLFileEntryTypeModelImpl. 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:
groupIds - the group IDs
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
Returns:
the range of matching document library file entry types that the user has permission to view

filterFindByGroupId

public static List<DLFileEntryType> filterFindByGroupId(long[] groupIds,
                                                        int start,
                                                        int end,
                                                        OrderByComparator<DLFileEntryType> orderByComparator)
Returns an ordered range of all the document library file entry types that the user has permission to view where groupId = any ?.

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 DLFileEntryTypeModelImpl. 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:
groupIds - the group IDs
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry types that the user has permission to view

findByGroupId

public static List<DLFileEntryType> findByGroupId(long[] groupIds)
Returns all the document library file entry types where groupId = any ?.

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 DLFileEntryTypeModelImpl. 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:
groupIds - the group IDs
Returns:
the matching document library file entry types

findByGroupId

public static List<DLFileEntryType> findByGroupId(long[] groupIds,
                                                  int start,
                                                  int end)
Returns a range of all the document library file entry types where groupId = any ?.

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 DLFileEntryTypeModelImpl. 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:
groupIds - the group IDs
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
Returns:
the range of matching document library file entry types

findByGroupId

public static List<DLFileEntryType> findByGroupId(long[] groupIds,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<DLFileEntryType> orderByComparator)
Returns an ordered range of all the document library file entry types where groupId = any ?.

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 DLFileEntryTypeModelImpl. 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:
groupIds - the group IDs
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file entry types

findByGroupId

public static List<DLFileEntryType> findByGroupId(long[] groupIds,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<DLFileEntryType> orderByComparator,
                                                  boolean retrieveFromCache)
Returns an ordered range of all the document library file entry types where groupId = ?, optionally using the finder cache.

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 DLFileEntryTypeModelImpl. 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:
groupId - the group ID
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching document library file entry types

removeByGroupId

public static void removeByGroupId(long groupId)
Removes all the document library file entry types where groupId = ? from the database.

Parameters:
groupId - the group ID

countByGroupId

public static int countByGroupId(long groupId)
Returns the number of document library file entry types where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching document library file entry types

countByGroupId

public static int countByGroupId(long[] groupIds)
Returns the number of document library file entry types where groupId = any ?.

Parameters:
groupIds - the group IDs
Returns:
the number of matching document library file entry types

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
Returns the number of document library file entry types that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching document library file entry types that the user has permission to view

filterCountByGroupId

public static int filterCountByGroupId(long[] groupIds)
Returns the number of document library file entry types that the user has permission to view where groupId = any ?.

Parameters:
groupIds - the group IDs
Returns:
the number of matching document library file entry types that the user has permission to view

findByG_F

public static DLFileEntryType findByG_F(long groupId,
                                        String fileEntryTypeKey)
                                 throws NoSuchFileEntryTypeException
Returns the document library file entry type where groupId = ? and fileEntryTypeKey = ? or throws a NoSuchFileEntryTypeException if it could not be found.

Parameters:
groupId - the group ID
fileEntryTypeKey - the file entry type key
Returns:
the matching document library file entry type
Throws:
NoSuchFileEntryTypeException - if a matching document library file entry type could not be found

fetchByG_F

public static DLFileEntryType fetchByG_F(long groupId,
                                         String fileEntryTypeKey)
Returns the document library file entry type where groupId = ? and fileEntryTypeKey = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
fileEntryTypeKey - the file entry type key
Returns:
the matching document library file entry type, or null if a matching document library file entry type could not be found

fetchByG_F

public static DLFileEntryType fetchByG_F(long groupId,
                                         String fileEntryTypeKey,
                                         boolean retrieveFromCache)
Returns the document library file entry type where groupId = ? and fileEntryTypeKey = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
fileEntryTypeKey - the file entry type key
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching document library file entry type, or null if a matching document library file entry type could not be found

removeByG_F

public static DLFileEntryType removeByG_F(long groupId,
                                          String fileEntryTypeKey)
                                   throws NoSuchFileEntryTypeException
Removes the document library file entry type where groupId = ? and fileEntryTypeKey = ? from the database.

Parameters:
groupId - the group ID
fileEntryTypeKey - the file entry type key
Returns:
the document library file entry type that was removed
Throws:
NoSuchFileEntryTypeException

countByG_F

public static int countByG_F(long groupId,
                             String fileEntryTypeKey)
Returns the number of document library file entry types where groupId = ? and fileEntryTypeKey = ?.

Parameters:
groupId - the group ID
fileEntryTypeKey - the file entry type key
Returns:
the number of matching document library file entry types

cacheResult

public static void cacheResult(DLFileEntryType dlFileEntryType)
Caches the document library file entry type in the entity cache if it is enabled.

Parameters:
dlFileEntryType - the document library file entry type

cacheResult

public static void cacheResult(List<DLFileEntryType> dlFileEntryTypes)
Caches the document library file entry types in the entity cache if it is enabled.

Parameters:
dlFileEntryTypes - the document library file entry types

create

public static DLFileEntryType create(long fileEntryTypeId)
Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database.

Parameters:
fileEntryTypeId - the primary key for the new document library file entry type
Returns:
the new document library file entry type

remove

public static DLFileEntryType remove(long fileEntryTypeId)
                              throws NoSuchFileEntryTypeException
Removes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
fileEntryTypeId - the primary key of the document library file entry type
Returns:
the document library file entry type that was removed
Throws:
NoSuchFileEntryTypeException - if a document library file entry type with the primary key could not be found

updateImpl

public static DLFileEntryType updateImpl(DLFileEntryType dlFileEntryType)

findByPrimaryKey

public static DLFileEntryType findByPrimaryKey(long fileEntryTypeId)
                                        throws NoSuchFileEntryTypeException
Returns the document library file entry type with the primary key or throws a NoSuchFileEntryTypeException if it could not be found.

Parameters:
fileEntryTypeId - the primary key of the document library file entry type
Returns:
the document library file entry type
Throws:
NoSuchFileEntryTypeException - if a document library file entry type with the primary key could not be found

fetchByPrimaryKey

public static DLFileEntryType fetchByPrimaryKey(long fileEntryTypeId)
Returns the document library file entry type with the primary key or returns null if it could not be found.

Parameters:
fileEntryTypeId - the primary key of the document library file entry type
Returns:
the document library file entry type, or null if a document library file entry type with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,DLFileEntryType> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<DLFileEntryType> findAll()
Returns all the document library file entry types.

Returns:
the document library file entry types

findAll

public static List<DLFileEntryType> findAll(int start,
                                            int end)
Returns a range of all the document library file entry types.

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 DLFileEntryTypeModelImpl. 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 types
end - the upper bound of the range of document library file entry types (not inclusive)
Returns:
the range of document library file entry types

findAll

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

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 DLFileEntryTypeModelImpl. 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 types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of document library file entry types

findAll

public static List<DLFileEntryType> findAll(int start,
                                            int end,
                                            OrderByComparator<DLFileEntryType> orderByComparator,
                                            boolean retrieveFromCache)
Returns an ordered range of all the document library file entry types.

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 DLFileEntryTypeModelImpl. 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 types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of document library file entry types

removeAll

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


countAll

public static int countAll()
Returns the number of document library file entry types.

Returns:
the number of document library file entry types

getDLFolderPrimaryKeys

public static long[] getDLFolderPrimaryKeys(long pk)
Returns the primaryKeys of document library folders associated with the document library file entry type.

Parameters:
pk - the primary key of the document library file entry type
Returns:
long[] of the primaryKeys of document library folders associated with the document library file entry type

getDLFolders

public static List<DLFolder> getDLFolders(long pk)
Returns all the document library folders associated with the document library file entry type.

Parameters:
pk - the primary key of the document library file entry type
Returns:
the document library folders associated with the document library file entry type

getDLFolders

public static List<DLFolder> getDLFolders(long pk,
                                          int start,
                                          int end)
Returns a range of all the document library folders associated with the document library file entry type.

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 DLFileEntryTypeModelImpl. 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:
pk - the primary key of the document library file entry type
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
Returns:
the range of document library folders associated with the document library file entry type

getDLFolders

public static List<DLFolder> getDLFolders(long pk,
                                          int start,
                                          int end,
                                          OrderByComparator<DLFolder> orderByComparator)
Returns an ordered range of all the document library folders associated with the document library file entry type.

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 DLFileEntryTypeModelImpl. 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:
pk - the primary key of the document library file entry type
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of document library folders associated with the document library file entry type

getDLFoldersSize

public static int getDLFoldersSize(long pk)
Returns the number of document library folders associated with the document library file entry type.

Parameters:
pk - the primary key of the document library file entry type
Returns:
the number of document library folders associated with the document library file entry type

containsDLFolder

public static boolean containsDLFolder(long pk,
                                       long dlFolderPK)
Returns true if the document library folder is associated with the document library file entry type.

Parameters:
pk - the primary key of the document library file entry type
dlFolderPK - the primary key of the document library folder
Returns:
true if the document library folder is associated with the document library file entry type; false otherwise

containsDLFolders

public static boolean containsDLFolders(long pk)
Returns true if the document library file entry type has any document library folders associated with it.

Parameters:
pk - the primary key of the document library file entry type to check for associations with document library folders
Returns:
true if the document library file entry type has any document library folders associated with it; false otherwise

addDLFolder

public static void addDLFolder(long pk,
                               long dlFolderPK)
Adds an association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolderPK - the primary key of the document library folder

addDLFolder

public static void addDLFolder(long pk,
                               DLFolder dlFolder)
Adds an association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolder - the document library folder

addDLFolders

public static void addDLFolders(long pk,
                                long[] dlFolderPKs)
Adds an association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolderPKs - the primary keys of the document library folders

addDLFolders

public static void addDLFolders(long pk,
                                List<DLFolder> dlFolders)
Adds an association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolders - the document library folders

clearDLFolders

public static void clearDLFolders(long pk)
Clears all associations between the document library file entry type and its document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type to clear the associated document library folders from

removeDLFolder

public static void removeDLFolder(long pk,
                                  long dlFolderPK)
Removes the association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolderPK - the primary key of the document library folder

removeDLFolder

public static void removeDLFolder(long pk,
                                  DLFolder dlFolder)
Removes the association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolder - the document library folder

removeDLFolders

public static void removeDLFolders(long pk,
                                   long[] dlFolderPKs)
Removes the association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolderPKs - the primary keys of the document library folders

removeDLFolders

public static void removeDLFolders(long pk,
                                   List<DLFolder> dlFolders)
Removes the association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolders - the document library folders

setDLFolders

public static void setDLFolders(long pk,
                                long[] dlFolderPKs)
Sets the document library folders associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolderPKs - the primary keys of the document library folders to be associated with the document library file entry type

setDLFolders

public static void setDLFolders(long pk,
                                List<DLFolder> dlFolders)
Sets the document library folders associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the document library file entry type
dlFolders - the document library folders to be associated with the document library file entry type

getBadColumnNames

public static Set<String> getBadColumnNames()

getPersistence

public static DLFileEntryTypePersistence getPersistence()

Liferay 7.0-ce-b4