Class ObjectLayoutBoxUtil

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

public class ObjectLayoutBoxUtil extends Object
The persistence utility for the object layout box service. This utility wraps com.liferay.object.service.persistence.impl.ObjectLayoutBoxPersistenceImpl 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

    • ObjectLayoutBoxUtil

      public ObjectLayoutBoxUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<ObjectLayoutBox> objectLayoutBoxes)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(ObjectLayoutBox objectLayoutBox)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • clearCache

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

      public static void clearCache(ObjectLayoutBox objectLayoutBox)
      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,ObjectLayoutBox> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

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

      public static List<ObjectLayoutBox> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object layout boxes 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.object.model.impl.ObjectLayoutBoxModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object layout boxes
      end - the upper bound of the range of object layout boxes (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 layout boxes
    • findByUuid_First

      public static ObjectLayoutBox findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
      Returns the first object layout box 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 layout box
    • fetchByUuid_First

      public static ObjectLayoutBox fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
      Returns the first object layout box 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 layout box, or null if a matching object layout box could not be found
    • removeByUuid

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

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

      public static List<ObjectLayoutBox> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object layout boxes 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.object.model.impl.ObjectLayoutBoxModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object layout boxes
      end - the upper bound of the range of object layout boxes (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 layout boxes
    • findByUuid_C_First

      public static ObjectLayoutBox findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
      Returns the first object layout box 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 layout box
    • fetchByUuid_C_First

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

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

      public static List<ObjectLayoutBox> findByObjectLayoutTabId(long objectLayoutTabId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object layout boxes where objectLayoutTabId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.object.model.impl.ObjectLayoutBoxModelImpl.

      Parameters:
      objectLayoutTabId - the object layout tab ID
      start - the lower bound of the range of object layout boxes
      end - the upper bound of the range of object layout boxes (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 layout boxes
    • findByObjectLayoutTabId_First

      public static ObjectLayoutBox findByObjectLayoutTabId_First(long objectLayoutTabId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
      Returns the first object layout box in the ordered set where objectLayoutTabId = ?.
      Parameters:
      objectLayoutTabId - the object layout tab ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object layout box
    • fetchByObjectLayoutTabId_First

      public static ObjectLayoutBox fetchByObjectLayoutTabId_First(long objectLayoutTabId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
      Returns the first object layout box in the ordered set where objectLayoutTabId = ?.
      Parameters:
      objectLayoutTabId - the object layout tab ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object layout box, or null if a matching object layout box could not be found
    • removeByObjectLayoutTabId

      public static void removeByObjectLayoutTabId(long objectLayoutTabId)
      Removes all the object layout boxes where objectLayoutTabId = ? from the database.
      Parameters:
      objectLayoutTabId - the object layout tab ID
    • countByObjectLayoutTabId

      public static int countByObjectLayoutTabId(long objectLayoutTabId)
      Returns the number of object layout boxes where objectLayoutTabId = ?.
      Parameters:
      objectLayoutTabId - the object layout tab ID
      Returns:
      the number of matching object layout boxes
    • create

      public static ObjectLayoutBox create(long objectLayoutBoxId)
      Creates a new object layout box with the primary key. Does not add the object layout box to the database.
      Parameters:
      objectLayoutBoxId - the primary key for the new object layout box
      Returns:
      the new object layout box
    • remove

      public static ObjectLayoutBox remove(long objectLayoutBoxId) throws NoSuchObjectLayoutBoxException
      Removes the object layout box with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      objectLayoutBoxId - the primary key of the object layout box
      Returns:
      the object layout box that was removed
    • updateImpl

      public static ObjectLayoutBox updateImpl(ObjectLayoutBox objectLayoutBox)
    • findByPrimaryKey

      public static ObjectLayoutBox findByPrimaryKey(long objectLayoutBoxId) throws NoSuchObjectLayoutBoxException
      Returns the object layout box with the primary key or throws a NoSuchObjectLayoutBoxException if it could not be found.
      Parameters:
      objectLayoutBoxId - the primary key of the object layout box
      Returns:
      the object layout box
    • fetchByPrimaryKey

      public static ObjectLayoutBox fetchByPrimaryKey(long objectLayoutBoxId)
      Returns the object layout box with the primary key or returns null if it could not be found.
      Parameters:
      objectLayoutBoxId - the primary key of the object layout box
      Returns:
      the object layout box, or null if a object layout box with the primary key could not be found
    • findByUuid

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

      public static List<ObjectLayoutBox> findByUuid(String uuid, int start, int end)
      Returns a range of all the object layout boxes 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.object.model.impl.ObjectLayoutBoxModelImpl.

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

      public static List<ObjectLayoutBox> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
      Returns an ordered range of all the object layout boxes 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.object.model.impl.ObjectLayoutBoxModelImpl.

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

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

      public static List<ObjectLayoutBox> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the object layout boxes 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.object.model.impl.ObjectLayoutBoxModelImpl.

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

      public static List<ObjectLayoutBox> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
      Returns an ordered range of all the object layout boxes 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.object.model.impl.ObjectLayoutBoxModelImpl.

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

      public static List<ObjectLayoutBox> findByObjectLayoutTabId(long objectLayoutTabId)
      Returns all the object layout boxes where objectLayoutTabId = ?.
      Parameters:
      objectLayoutTabId - the object layout tab ID
      Returns:
      the matching object layout boxes
    • findByObjectLayoutTabId

      public static List<ObjectLayoutBox> findByObjectLayoutTabId(long objectLayoutTabId, int start, int end)
      Returns a range of all the object layout boxes where objectLayoutTabId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.object.model.impl.ObjectLayoutBoxModelImpl.

      Parameters:
      objectLayoutTabId - the object layout tab ID
      start - the lower bound of the range of object layout boxes
      end - the upper bound of the range of object layout boxes (not inclusive)
      Returns:
      the range of matching object layout boxes
    • findByObjectLayoutTabId

      public static List<ObjectLayoutBox> findByObjectLayoutTabId(long objectLayoutTabId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
      Returns an ordered range of all the object layout boxes where objectLayoutTabId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.object.model.impl.ObjectLayoutBoxModelImpl.

      Parameters:
      objectLayoutTabId - the object layout tab ID
      start - the lower bound of the range of object layout boxes
      end - the upper bound of the range of object layout boxes (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object layout boxes
    • getPersistence

      public static ObjectLayoutBoxPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectLayoutBoxPersistence persistence)