Class ObjectLayoutUtil

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(ObjectLayout objectLayout)
    Caches the object layout in the entity cache if it is enabled.
    static void
    cacheResult(List<ObjectLayout> objectLayouts)
    Caches the object layouts in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(ObjectLayout objectLayout)
     
    static int
    Returns the number of object layouts.
    static int
    countByC_DOL(long companyId, boolean defaultObjectLayout)
    Returns the number of object layouts where companyId = ? and defaultObjectLayout = ?.
    static int
    countByObjectDefinitionId(long objectDefinitionId)
    Returns the number of object layouts where objectDefinitionId = ?.
    static int
    countByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout)
    Returns the number of object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
    static int
    Returns the number of object layouts where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of object layouts where uuid = ? and companyId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    create(long objectLayoutId)
    Creates a new object layout with the primary key.
    fetchByC_DOL_First(long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
    fetchByC_DOL_Last(long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
    fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where objectDefinitionId = ?.
    fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where objectDefinitionId = ?.
    fetchByODI_DOL_First(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
    fetchByODI_DOL_Last(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
    fetchByPrimaryKey(long objectLayoutId)
    Returns the object layout with the primary key or returns null if it could not be found.
     
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where uuid = ?.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where uuid = ?.
    Returns all the object layouts.
    findAll(int start, int end)
    Returns a range of all the object layouts.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns an ordered range of all the object layouts.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object layouts.
    findByC_DOL(long companyId, boolean defaultObjectLayout)
    Returns all the object layouts where companyId = ? and defaultObjectLayout = ?.
    findByC_DOL(long companyId, boolean defaultObjectLayout, int start, int end)
    Returns a range of all the object layouts where companyId = ? and defaultObjectLayout = ?.
    findByC_DOL(long companyId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns an ordered range of all the object layouts where companyId = ? and defaultObjectLayout = ?.
    findByC_DOL(long companyId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object layouts where companyId = ? and defaultObjectLayout = ?.
    findByC_DOL_First(long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
    findByC_DOL_Last(long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
    static ObjectLayout[]
    findByC_DOL_PrevAndNext(long objectLayoutId, long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the object layouts before and after the current object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
    findByObjectDefinitionId(long objectDefinitionId)
    Returns all the object layouts where objectDefinitionId = ?.
    findByObjectDefinitionId(long objectDefinitionId, int start, int end)
    Returns a range of all the object layouts where objectDefinitionId = ?.
    findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns an ordered range of all the object layouts where objectDefinitionId = ?.
    findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object layouts where objectDefinitionId = ?.
    findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where objectDefinitionId = ?.
    findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where objectDefinitionId = ?.
    static ObjectLayout[]
    findByObjectDefinitionId_PrevAndNext(long objectLayoutId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the object layouts before and after the current object layout in the ordered set where objectDefinitionId = ?.
    findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout)
    Returns all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
    findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout, int start, int end)
    Returns a range of all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
    findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns an ordered range of all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
    findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
    findByODI_DOL_First(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
    findByODI_DOL_Last(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
    static ObjectLayout[]
    findByODI_DOL_PrevAndNext(long objectLayoutId, long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the object layouts before and after the current object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
    findByPrimaryKey(long objectLayoutId)
    Returns the object layout with the primary key or throws a NoSuchObjectLayoutException if it could not be found.
    Returns all the object layouts where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the object layouts where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns an ordered range of all the object layouts where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object layouts where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the object layouts where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the object layouts where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns an ordered range of all the object layouts where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object layouts where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where uuid = ? and companyId = ?.
    static ObjectLayout[]
    findByUuid_C_PrevAndNext(long objectLayoutId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the object layouts before and after the current object layout in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the first object layout in the ordered set where uuid = ?.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the last object layout in the ordered set where uuid = ?.
    static ObjectLayout[]
    findByUuid_PrevAndNext(long objectLayoutId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
    Returns the object layouts before and after the current object layout in the ordered set where uuid = ?.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
     
     
    remove(long objectLayoutId)
    Removes the object layout with the primary key from the database.
    static void
    Removes all the object layouts from the database.
    static void
    removeByC_DOL(long companyId, boolean defaultObjectLayout)
    Removes all the object layouts where companyId = ? and defaultObjectLayout = ? from the database.
    static void
    removeByObjectDefinitionId(long objectDefinitionId)
    Removes all the object layouts where objectDefinitionId = ? from the database.
    static void
    removeByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout)
    Removes all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ? from the database.
    static void
    Removes all the object layouts where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the object layouts where uuid = ? and companyId = ? from the database.
    static void
     
    update(ObjectLayout objectLayout)
     
    update(ObjectLayout objectLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    updateImpl(ObjectLayout objectLayout)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObjectLayoutUtil

      public ObjectLayoutUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

      public static List<ObjectLayout> findByUuid(String uuid, int start, int end)
      Returns a range of all the object layouts 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 ObjectLayoutModelImpl.

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

      public static List<ObjectLayout> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns an ordered range of all the object layouts 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 ObjectLayoutModelImpl.

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

      public static List<ObjectLayout> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object layouts 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 ObjectLayoutModelImpl.

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

      public static ObjectLayout findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the first object layout 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
      Throws:
      NoSuchObjectLayoutException - if a matching object layout could not be found
      NoSuchObjectLayoutException
    • fetchByUuid_First

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

      public static ObjectLayout findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the last object layout 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 layout
      Throws:
      NoSuchObjectLayoutException - if a matching object layout could not be found
      NoSuchObjectLayoutException
    • fetchByUuid_Last

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

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

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

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

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

      public static List<ObjectLayout> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the object layouts 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 ObjectLayoutModelImpl.

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

      public static List<ObjectLayout> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns an ordered range of all the object layouts 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 ObjectLayoutModelImpl.

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

      public static List<ObjectLayout> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object layouts 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 ObjectLayoutModelImpl.

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

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

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

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

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

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

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

      public static List<ObjectLayout> findByObjectDefinitionId(long objectDefinitionId)
      Returns all the object layouts where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      Returns:
      the matching object layouts
    • findByObjectDefinitionId

      public static List<ObjectLayout> findByObjectDefinitionId(long objectDefinitionId, int start, int end)
      Returns a range of all the object layouts where objectDefinitionId = ?.

      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 ObjectLayoutModelImpl.

      Parameters:
      objectDefinitionId - the object definition ID
      start - the lower bound of the range of object layouts
      end - the upper bound of the range of object layouts (not inclusive)
      Returns:
      the range of matching object layouts
    • findByObjectDefinitionId

      public static List<ObjectLayout> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns an ordered range of all the object layouts where objectDefinitionId = ?.

      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 ObjectLayoutModelImpl.

      Parameters:
      objectDefinitionId - the object definition ID
      start - the lower bound of the range of object layouts
      end - the upper bound of the range of object layouts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object layouts
    • findByObjectDefinitionId

      public static List<ObjectLayout> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object layouts where objectDefinitionId = ?.

      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 ObjectLayoutModelImpl.

      Parameters:
      objectDefinitionId - the object definition ID
      start - the lower bound of the range of object layouts
      end - the upper bound of the range of object layouts (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 layouts
    • findByObjectDefinitionId_First

      public static ObjectLayout findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the first object layout in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object layout
      Throws:
      NoSuchObjectLayoutException - if a matching object layout could not be found
      NoSuchObjectLayoutException
    • fetchByObjectDefinitionId_First

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

      public static ObjectLayout findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the last object layout in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object layout
      Throws:
      NoSuchObjectLayoutException - if a matching object layout could not be found
      NoSuchObjectLayoutException
    • fetchByObjectDefinitionId_Last

      public static ObjectLayout fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns the last object layout in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object layout, or null if a matching object layout could not be found
    • findByObjectDefinitionId_PrevAndNext

      public static ObjectLayout[] findByObjectDefinitionId_PrevAndNext(long objectLayoutId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the object layouts before and after the current object layout in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectLayoutId - the primary key of the current object layout
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object layout
      Throws:
      NoSuchObjectLayoutException - if a object layout with the primary key could not be found
      NoSuchObjectLayoutException
    • removeByObjectDefinitionId

      public static void removeByObjectDefinitionId(long objectDefinitionId)
      Removes all the object layouts where objectDefinitionId = ? from the database.
      Parameters:
      objectDefinitionId - the object definition ID
    • countByObjectDefinitionId

      public static int countByObjectDefinitionId(long objectDefinitionId)
      Returns the number of object layouts where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      Returns:
      the number of matching object layouts
    • findByC_DOL

      public static List<ObjectLayout> findByC_DOL(long companyId, boolean defaultObjectLayout)
      Returns all the object layouts where companyId = ? and defaultObjectLayout = ?.
      Parameters:
      companyId - the company ID
      defaultObjectLayout - the default object layout
      Returns:
      the matching object layouts
    • findByC_DOL

      public static List<ObjectLayout> findByC_DOL(long companyId, boolean defaultObjectLayout, int start, int end)
      Returns a range of all the object layouts where companyId = ? and defaultObjectLayout = ?.

      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 ObjectLayoutModelImpl.

      Parameters:
      companyId - the company ID
      defaultObjectLayout - the default object layout
      start - the lower bound of the range of object layouts
      end - the upper bound of the range of object layouts (not inclusive)
      Returns:
      the range of matching object layouts
    • findByC_DOL

      public static List<ObjectLayout> findByC_DOL(long companyId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns an ordered range of all the object layouts where companyId = ? and defaultObjectLayout = ?.

      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 ObjectLayoutModelImpl.

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

      public static List<ObjectLayout> findByC_DOL(long companyId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object layouts where companyId = ? and defaultObjectLayout = ?.

      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 ObjectLayoutModelImpl.

      Parameters:
      companyId - the company ID
      defaultObjectLayout - the default object layout
      start - the lower bound of the range of object layouts
      end - the upper bound of the range of object layouts (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 layouts
    • findByC_DOL_First

      public static ObjectLayout findByC_DOL_First(long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the first object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
      Parameters:
      companyId - the company ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object layout
      Throws:
      NoSuchObjectLayoutException - if a matching object layout could not be found
      NoSuchObjectLayoutException
    • fetchByC_DOL_First

      public static ObjectLayout fetchByC_DOL_First(long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns the first object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
      Parameters:
      companyId - the company ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object layout, or null if a matching object layout could not be found
    • findByC_DOL_Last

      public static ObjectLayout findByC_DOL_Last(long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the last object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
      Parameters:
      companyId - the company ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object layout
      Throws:
      NoSuchObjectLayoutException - if a matching object layout could not be found
      NoSuchObjectLayoutException
    • fetchByC_DOL_Last

      public static ObjectLayout fetchByC_DOL_Last(long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns the last object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
      Parameters:
      companyId - the company ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object layout, or null if a matching object layout could not be found
    • findByC_DOL_PrevAndNext

      public static ObjectLayout[] findByC_DOL_PrevAndNext(long objectLayoutId, long companyId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the object layouts before and after the current object layout in the ordered set where companyId = ? and defaultObjectLayout = ?.
      Parameters:
      objectLayoutId - the primary key of the current object layout
      companyId - the company ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object layout
      Throws:
      NoSuchObjectLayoutException - if a object layout with the primary key could not be found
      NoSuchObjectLayoutException
    • removeByC_DOL

      public static void removeByC_DOL(long companyId, boolean defaultObjectLayout)
      Removes all the object layouts where companyId = ? and defaultObjectLayout = ? from the database.
      Parameters:
      companyId - the company ID
      defaultObjectLayout - the default object layout
    • countByC_DOL

      public static int countByC_DOL(long companyId, boolean defaultObjectLayout)
      Returns the number of object layouts where companyId = ? and defaultObjectLayout = ?.
      Parameters:
      companyId - the company ID
      defaultObjectLayout - the default object layout
      Returns:
      the number of matching object layouts
    • findByODI_DOL

      public static List<ObjectLayout> findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout)
      Returns all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      Returns:
      the matching object layouts
    • findByODI_DOL

      public static List<ObjectLayout> findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout, int start, int end)
      Returns a range of all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.

      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 ObjectLayoutModelImpl.

      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      start - the lower bound of the range of object layouts
      end - the upper bound of the range of object layouts (not inclusive)
      Returns:
      the range of matching object layouts
    • findByODI_DOL

      public static List<ObjectLayout> findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns an ordered range of all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.

      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 ObjectLayoutModelImpl.

      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      start - the lower bound of the range of object layouts
      end - the upper bound of the range of object layouts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object layouts
    • findByODI_DOL

      public static List<ObjectLayout> findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.

      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 ObjectLayoutModelImpl.

      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      start - the lower bound of the range of object layouts
      end - the upper bound of the range of object layouts (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 layouts
    • findByODI_DOL_First

      public static ObjectLayout findByODI_DOL_First(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the first object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object layout
      Throws:
      NoSuchObjectLayoutException - if a matching object layout could not be found
      NoSuchObjectLayoutException
    • fetchByODI_DOL_First

      public static ObjectLayout fetchByODI_DOL_First(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns the first object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object layout, or null if a matching object layout could not be found
    • findByODI_DOL_Last

      public static ObjectLayout findByODI_DOL_Last(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the last object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object layout
      Throws:
      NoSuchObjectLayoutException - if a matching object layout could not be found
      NoSuchObjectLayoutException
    • fetchByODI_DOL_Last

      public static ObjectLayout fetchByODI_DOL_Last(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
      Returns the last object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object layout, or null if a matching object layout could not be found
    • findByODI_DOL_PrevAndNext

      public static ObjectLayout[] findByODI_DOL_PrevAndNext(long objectLayoutId, long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
      Returns the object layouts before and after the current object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
      Parameters:
      objectLayoutId - the primary key of the current object layout
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object layout
      Throws:
      NoSuchObjectLayoutException - if a object layout with the primary key could not be found
      NoSuchObjectLayoutException
    • removeByODI_DOL

      public static void removeByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout)
      Removes all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ? from the database.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
    • countByODI_DOL

      public static int countByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout)
      Returns the number of object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectLayout - the default object layout
      Returns:
      the number of matching object layouts
    • cacheResult

      public static void cacheResult(ObjectLayout objectLayout)
      Caches the object layout in the entity cache if it is enabled.
      Parameters:
      objectLayout - the object layout
    • cacheResult

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

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

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

      public static ObjectLayout updateImpl(ObjectLayout objectLayout)
    • findByPrimaryKey

      public static ObjectLayout findByPrimaryKey(long objectLayoutId) throws NoSuchObjectLayoutException
      Returns the object layout with the primary key or throws a NoSuchObjectLayoutException if it could not be found.
      Parameters:
      objectLayoutId - the primary key of the object layout
      Returns:
      the object layout
      Throws:
      NoSuchObjectLayoutException - if a object layout with the primary key could not be found
      NoSuchObjectLayoutException
    • fetchByPrimaryKey

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

      public static List<ObjectLayout> findAll()
      Returns all the object layouts.
      Returns:
      the object layouts
    • findAll

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

      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 ObjectLayoutModelImpl.

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

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

      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 ObjectLayoutModelImpl.

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

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

      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 ObjectLayoutModelImpl.

      Parameters:
      start - the lower bound of the range of object layouts
      end - the upper bound of the range of object layouts (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 layouts
    • removeAll

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

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

      public static ObjectLayoutPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectLayoutPersistence persistence)