Class ObjectFolderUtil

java.lang.Object
com.liferay.object.service.persistence.ObjectFolderUtil

public class ObjectFolderUtil extends Object
The persistence utility for the object folder service. This utility wraps com.liferay.object.service.persistence.impl.ObjectFolderPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • ObjectFolderUtil

      public ObjectFolderUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(ObjectFolder objectFolder)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,ObjectFolder> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<ObjectFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<ObjectFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<ObjectFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static ObjectFolder update(ObjectFolder objectFolder)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static ObjectFolder update(ObjectFolder objectFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<ObjectFolder> findByUuid(String uuid)
      Returns all the object folders where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching object folders
    • findByUuid

      public static List<ObjectFolder> findByUuid(String uuid, int start, int end)
      Returns a range of all the object folders 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      Returns:
      the range of matching object folders
    • findByUuid

      public static List<ObjectFolder> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns an ordered range of all the object folders 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object folders
    • findByUuid

      public static List<ObjectFolder> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object folders 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching object folders
    • findByUuid_First

      public static ObjectFolder findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the first object folder in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object folder
      Throws:
      NoSuchObjectFolderException - if a matching object folder could not be found
      NoSuchObjectFolderException
    • fetchByUuid_First

      public static ObjectFolder fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns the first object folder in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object folder, or null if a matching object folder could not be found
    • findByUuid_Last

      public static ObjectFolder findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the last object folder in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object folder
      Throws:
      NoSuchObjectFolderException - if a matching object folder could not be found
      NoSuchObjectFolderException
    • fetchByUuid_Last

      public static ObjectFolder fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns the last object folder in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object folder, or null if a matching object folder could not be found
    • findByUuid_PrevAndNext

      public static ObjectFolder[] findByUuid_PrevAndNext(long objectFolderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the object folders before and after the current object folder in the ordered set where uuid = ?.
      Parameters:
      objectFolderId - the primary key of the current object folder
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object folder
      Throws:
      NoSuchObjectFolderException - if a object folder with the primary key could not be found
      NoSuchObjectFolderException
    • filterFindByUuid

      public static List<ObjectFolder> filterFindByUuid(String uuid)
      Returns all the object folders that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching object folders that the user has permission to view
    • filterFindByUuid

      public static List<ObjectFolder> filterFindByUuid(String uuid, int start, int end)
      Returns a range of all the object folders that the user has permission to view 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      Returns:
      the range of matching object folders that the user has permission to view
    • filterFindByUuid

      public static List<ObjectFolder> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns an ordered range of all the object folders that the user has permissions to view 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object folders that the user has permission to view
    • filterFindByUuid_PrevAndNext

      public static ObjectFolder[] filterFindByUuid_PrevAndNext(long objectFolderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where uuid = ?.
      Parameters:
      objectFolderId - the primary key of the current object folder
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object folder
      Throws:
      NoSuchObjectFolderException - if a object folder with the primary key could not be found
      NoSuchObjectFolderException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the object folders where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of object folders where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching object folders
    • filterCountByUuid

      public static int filterCountByUuid(String uuid)
      Returns the number of object folders that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching object folders that the user has permission to view
    • findByUuid_C

      public static List<ObjectFolder> findByUuid_C(String uuid, long companyId)
      Returns all the object folders where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching object folders
    • findByUuid_C

      public static List<ObjectFolder> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the object folders 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      Returns:
      the range of matching object folders
    • findByUuid_C

      public static List<ObjectFolder> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns an ordered range of all the object folders 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object folders
    • findByUuid_C

      public static List<ObjectFolder> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object folders 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching object folders
    • findByUuid_C_First

      public static ObjectFolder findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the first object folder 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 object folder
      Throws:
      NoSuchObjectFolderException - if a matching object folder could not be found
      NoSuchObjectFolderException
    • fetchByUuid_C_First

      public static ObjectFolder fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns the first object folder 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 object folder, or null if a matching object folder could not be found
    • findByUuid_C_Last

      public static ObjectFolder findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the last object folder 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 object folder
      Throws:
      NoSuchObjectFolderException - if a matching object folder could not be found
      NoSuchObjectFolderException
    • fetchByUuid_C_Last

      public static ObjectFolder fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns the last object folder 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 object folder, or null if a matching object folder could not be found
    • findByUuid_C_PrevAndNext

      public static ObjectFolder[] findByUuid_C_PrevAndNext(long objectFolderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the object folders before and after the current object folder in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      objectFolderId - the primary key of the current object folder
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object folder
      Throws:
      NoSuchObjectFolderException - if a object folder with the primary key could not be found
      NoSuchObjectFolderException
    • filterFindByUuid_C

      public static List<ObjectFolder> filterFindByUuid_C(String uuid, long companyId)
      Returns all the object folders that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching object folders that the user has permission to view
    • filterFindByUuid_C

      public static List<ObjectFolder> filterFindByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the object folders that the user has permission to view 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      Returns:
      the range of matching object folders that the user has permission to view
    • filterFindByUuid_C

      public static List<ObjectFolder> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns an ordered range of all the object folders that the user has permissions to view 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object folders that the user has permission to view
    • filterFindByUuid_C_PrevAndNext

      public static ObjectFolder[] filterFindByUuid_C_PrevAndNext(long objectFolderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      objectFolderId - the primary key of the current object folder
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object folder
      Throws:
      NoSuchObjectFolderException - if a object folder with the primary key could not be found
      NoSuchObjectFolderException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the object folders 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 object folders where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching object folders
    • filterCountByUuid_C

      public static int filterCountByUuid_C(String uuid, long companyId)
      Returns the number of object folders that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching object folders that the user has permission to view
    • findByCompanyId

      public static List<ObjectFolder> findByCompanyId(long companyId)
      Returns all the object folders where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching object folders
    • findByCompanyId

      public static List<ObjectFolder> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the object folders where 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      Returns:
      the range of matching object folders
    • findByCompanyId

      public static List<ObjectFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns an ordered range of all the object folders where 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object folders
    • findByCompanyId

      public static List<ObjectFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object folders where 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching object folders
    • findByCompanyId_First

      public static ObjectFolder findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the first object folder in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object folder
      Throws:
      NoSuchObjectFolderException - if a matching object folder could not be found
      NoSuchObjectFolderException
    • fetchByCompanyId_First

      public static ObjectFolder fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns the first object folder in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object folder, or null if a matching object folder could not be found
    • findByCompanyId_Last

      public static ObjectFolder findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the last object folder in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object folder
      Throws:
      NoSuchObjectFolderException - if a matching object folder could not be found
      NoSuchObjectFolderException
    • fetchByCompanyId_Last

      public static ObjectFolder fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns the last object folder in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object folder, or null if a matching object folder could not be found
    • findByCompanyId_PrevAndNext

      public static ObjectFolder[] findByCompanyId_PrevAndNext(long objectFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the object folders before and after the current object folder in the ordered set where companyId = ?.
      Parameters:
      objectFolderId - the primary key of the current object folder
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object folder
      Throws:
      NoSuchObjectFolderException - if a object folder with the primary key could not be found
      NoSuchObjectFolderException
    • filterFindByCompanyId

      public static List<ObjectFolder> filterFindByCompanyId(long companyId)
      Returns all the object folders that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching object folders that the user has permission to view
    • filterFindByCompanyId

      public static List<ObjectFolder> filterFindByCompanyId(long companyId, int start, int end)
      Returns a range of all the object folders that the user has permission to view where 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      Returns:
      the range of matching object folders that the user has permission to view
    • filterFindByCompanyId

      public static List<ObjectFolder> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns an ordered range of all the object folders that the user has permissions to view where 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, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object folders that the user has permission to view
    • filterFindByCompanyId_PrevAndNext

      public static ObjectFolder[] filterFindByCompanyId_PrevAndNext(long objectFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
      Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where companyId = ?.
      Parameters:
      objectFolderId - the primary key of the current object folder
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object folder
      Throws:
      NoSuchObjectFolderException - if a object folder with the primary key could not be found
      NoSuchObjectFolderException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the object folders where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of object folders where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching object folders
    • filterCountByCompanyId

      public static int filterCountByCompanyId(long companyId)
      Returns the number of object folders that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching object folders that the user has permission to view
    • findByC_N

      public static ObjectFolder findByC_N(long companyId, String name) throws NoSuchObjectFolderException
      Returns the object folder where companyId = ? and name = ? or throws a NoSuchObjectFolderException if it could not be found.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching object folder
      Throws:
      NoSuchObjectFolderException - if a matching object folder could not be found
      NoSuchObjectFolderException
    • fetchByC_N

      public static ObjectFolder fetchByC_N(long companyId, String name)
      Returns the object folder where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching object folder, or null if a matching object folder could not be found
    • fetchByC_N

      public static ObjectFolder fetchByC_N(long companyId, String name, boolean useFinderCache)
      Returns the object folder where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching object folder, or null if a matching object folder could not be found
    • removeByC_N

      public static ObjectFolder removeByC_N(long companyId, String name) throws NoSuchObjectFolderException
      Removes the object folder where companyId = ? and name = ? from the database.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the object folder that was removed
      Throws:
      NoSuchObjectFolderException
    • countByC_N

      public static int countByC_N(long companyId, String name)
      Returns the number of object folders where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the number of matching object folders
    • findByERC_C

      public static ObjectFolder findByERC_C(String externalReferenceCode, long companyId) throws NoSuchObjectFolderException
      Returns the object folder where externalReferenceCode = ? and companyId = ? or throws a NoSuchObjectFolderException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching object folder
      Throws:
      NoSuchObjectFolderException - if a matching object folder could not be found
      NoSuchObjectFolderException
    • fetchByERC_C

      public static ObjectFolder fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the object folder where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching object folder, or null if a matching object folder could not be found
    • fetchByERC_C

      public static ObjectFolder fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the object folder where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching object folder, or null if a matching object folder could not be found
    • removeByERC_C

      public static ObjectFolder removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchObjectFolderException
      Removes the object folder where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the object folder that was removed
      Throws:
      NoSuchObjectFolderException
    • countByERC_C

      public static int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of object folders where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching object folders
    • cacheResult

      public static void cacheResult(ObjectFolder objectFolder)
      Caches the object folder in the entity cache if it is enabled.
      Parameters:
      objectFolder - the object folder
    • cacheResult

      public static void cacheResult(List<ObjectFolder> objectFolders)
      Caches the object folders in the entity cache if it is enabled.
      Parameters:
      objectFolders - the object folders
    • create

      public static ObjectFolder create(long objectFolderId)
      Creates a new object folder with the primary key. Does not add the object folder to the database.
      Parameters:
      objectFolderId - the primary key for the new object folder
      Returns:
      the new object folder
    • remove

      public static ObjectFolder remove(long objectFolderId) throws NoSuchObjectFolderException
      Removes the object folder with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      objectFolderId - the primary key of the object folder
      Returns:
      the object folder that was removed
      Throws:
      NoSuchObjectFolderException - if a object folder with the primary key could not be found
      NoSuchObjectFolderException
    • updateImpl

      public static ObjectFolder updateImpl(ObjectFolder objectFolder)
    • findByPrimaryKey

      public static ObjectFolder findByPrimaryKey(long objectFolderId) throws NoSuchObjectFolderException
      Returns the object folder with the primary key or throws a NoSuchObjectFolderException if it could not be found.
      Parameters:
      objectFolderId - the primary key of the object folder
      Returns:
      the object folder
      Throws:
      NoSuchObjectFolderException - if a object folder with the primary key could not be found
      NoSuchObjectFolderException
    • fetchByPrimaryKey

      public static ObjectFolder fetchByPrimaryKey(long objectFolderId)
      Returns the object folder with the primary key or returns null if it could not be found.
      Parameters:
      objectFolderId - the primary key of the object folder
      Returns:
      the object folder, or null if a object folder with the primary key could not be found
    • findAll

      public static List<ObjectFolder> findAll()
      Returns all the object folders.
      Returns:
      the object folders
    • findAll

      public static List<ObjectFolder> findAll(int start, int end)
      Returns a range of all the object folders.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      Returns:
      the range of object folders
    • findAll

      public static List<ObjectFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
      Returns an ordered range of all the object folders.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of object folders
    • findAll

      public static List<ObjectFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object folders.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ObjectFolderModelImpl.

      Parameters:
      start - the lower bound of the range of object folders
      end - the upper bound of the range of object folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of object folders
    • removeAll

      public static void removeAll()
      Removes all the object folders from the database.
    • countAll

      public static int countAll()
      Returns the number of object folders.
      Returns:
      the number of object folders
    • getPersistence

      public static ObjectFolderPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectFolderPersistence persistence)