Class ObjectViewUtil

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

public class ObjectViewUtil extends Object
The persistence utility for the object view service. This utility wraps com.liferay.object.service.persistence.impl.ObjectViewPersistenceImpl 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(ObjectView objectView)
    Caches the object view in the entity cache if it is enabled.
    static void
    cacheResult(List<ObjectView> objectViews)
    Caches the object views in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(ObjectView objectView)
     
    static int
    Returns the number of object views.
    static int
    countByObjectDefinitionId(long objectDefinitionId)
    Returns the number of object views where objectDefinitionId = ?.
    static int
    countByODI_DOV(long objectDefinitionId, boolean defaultObjectView)
    Returns the number of object views where objectDefinitionId = ? and defaultObjectView = ?.
    static int
    Returns the number of object views where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of object views where uuid = ? and companyId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static ObjectView
    create(long objectViewId)
    Creates a new object view with the primary key.
    static ObjectView
    fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the first object view in the ordered set where objectDefinitionId = ?.
    static ObjectView
    fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the last object view in the ordered set where objectDefinitionId = ?.
    static ObjectView
    fetchByODI_DOV_First(long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the first object view in the ordered set where objectDefinitionId = ? and defaultObjectView = ?.
    static ObjectView
    fetchByODI_DOV_Last(long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the last object view in the ordered set where objectDefinitionId = ? and defaultObjectView = ?.
    static ObjectView
    fetchByPrimaryKey(long objectViewId)
    Returns the object view with the primary key or returns null if it could not be found.
     
    static ObjectView
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the first object view in the ordered set where uuid = ? and companyId = ?.
    static ObjectView
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the last object view in the ordered set where uuid = ? and companyId = ?.
    static ObjectView
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the first object view in the ordered set where uuid = ?.
    static ObjectView
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the last object view in the ordered set where uuid = ?.
    Returns all the object views.
    findAll(int start, int end)
    Returns a range of all the object views.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns an ordered range of all the object views.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object views.
    findByObjectDefinitionId(long objectDefinitionId)
    Returns all the object views where objectDefinitionId = ?.
    findByObjectDefinitionId(long objectDefinitionId, int start, int end)
    Returns a range of all the object views where objectDefinitionId = ?.
    findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns an ordered range of all the object views where objectDefinitionId = ?.
    findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object views where objectDefinitionId = ?.
    static ObjectView
    findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the first object view in the ordered set where objectDefinitionId = ?.
    static ObjectView
    findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the last object view in the ordered set where objectDefinitionId = ?.
    static ObjectView[]
    findByObjectDefinitionId_PrevAndNext(long objectViewId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the object views before and after the current object view in the ordered set where objectDefinitionId = ?.
    findByODI_DOV(long objectDefinitionId, boolean defaultObjectView)
    Returns all the object views where objectDefinitionId = ? and defaultObjectView = ?.
    findByODI_DOV(long objectDefinitionId, boolean defaultObjectView, int start, int end)
    Returns a range of all the object views where objectDefinitionId = ? and defaultObjectView = ?.
    findByODI_DOV(long objectDefinitionId, boolean defaultObjectView, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns an ordered range of all the object views where objectDefinitionId = ? and defaultObjectView = ?.
    findByODI_DOV(long objectDefinitionId, boolean defaultObjectView, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object views where objectDefinitionId = ? and defaultObjectView = ?.
    static ObjectView
    findByODI_DOV_First(long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the first object view in the ordered set where objectDefinitionId = ? and defaultObjectView = ?.
    static ObjectView
    findByODI_DOV_Last(long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the last object view in the ordered set where objectDefinitionId = ? and defaultObjectView = ?.
    static ObjectView[]
    findByODI_DOV_PrevAndNext(long objectViewId, long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the object views before and after the current object view in the ordered set where objectDefinitionId = ? and defaultObjectView = ?.
    static ObjectView
    findByPrimaryKey(long objectViewId)
    Returns the object view with the primary key or throws a NoSuchObjectViewException if it could not be found.
    Returns all the object views where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the object views where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns an ordered range of all the object views where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object views where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the object views where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the object views where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns an ordered range of all the object views where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the object views where uuid = ? and companyId = ?.
    static ObjectView
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the first object view in the ordered set where uuid = ? and companyId = ?.
    static ObjectView
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the last object view in the ordered set where uuid = ? and companyId = ?.
    static ObjectView[]
    findByUuid_C_PrevAndNext(long objectViewId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the object views before and after the current object view in the ordered set where uuid = ? and companyId = ?.
    static ObjectView
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the first object view in the ordered set where uuid = ?.
    static ObjectView
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the last object view in the ordered set where uuid = ?.
    static ObjectView[]
    findByUuid_PrevAndNext(long objectViewId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
    Returns the object views before and after the current object view 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<ObjectView> orderByComparator)
     
     
    static ObjectView
    remove(long objectViewId)
    Removes the object view with the primary key from the database.
    static void
    Removes all the object views from the database.
    static void
    removeByObjectDefinitionId(long objectDefinitionId)
    Removes all the object views where objectDefinitionId = ? from the database.
    static void
    removeByODI_DOV(long objectDefinitionId, boolean defaultObjectView)
    Removes all the object views where objectDefinitionId = ? and defaultObjectView = ? from the database.
    static void
    Removes all the object views where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the object views where uuid = ? and companyId = ? from the database.
    static void
     
    static ObjectView
    update(ObjectView objectView)
     
    static ObjectView
    update(ObjectView objectView, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static ObjectView
    updateImpl(ObjectView objectView)
     

    Methods inherited from class java.lang.Object

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

    • ObjectViewUtil

      public ObjectViewUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static List<ObjectView> findByObjectDefinitionId(long objectDefinitionId, int start, int end)
      Returns a range of all the object views 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 ObjectViewModelImpl.

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

      public static List<ObjectView> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
      Returns an ordered range of all the object views 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 ObjectViewModelImpl.

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

      public static List<ObjectView> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object views 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 ObjectViewModelImpl.

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

      public static ObjectView findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
      Returns the first object view 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 view
      Throws:
      NoSuchObjectViewException - if a matching object view could not be found
      NoSuchObjectViewException
    • fetchByObjectDefinitionId_First

      public static ObjectView fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
      Returns the first object view 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 view, or null if a matching object view could not be found
    • findByObjectDefinitionId_Last

      public static ObjectView findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
      Returns the last object view 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 view
      Throws:
      NoSuchObjectViewException - if a matching object view could not be found
      NoSuchObjectViewException
    • fetchByObjectDefinitionId_Last

      public static ObjectView fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
      Returns the last object view 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 view, or null if a matching object view could not be found
    • findByObjectDefinitionId_PrevAndNext

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

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

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

      public static List<ObjectView> findByODI_DOV(long objectDefinitionId, boolean defaultObjectView)
      Returns all the object views where objectDefinitionId = ? and defaultObjectView = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectView - the default object view
      Returns:
      the matching object views
    • findByODI_DOV

      public static List<ObjectView> findByODI_DOV(long objectDefinitionId, boolean defaultObjectView, int start, int end)
      Returns a range of all the object views where objectDefinitionId = ? and defaultObjectView = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectView - the default object view
      start - the lower bound of the range of object views
      end - the upper bound of the range of object views (not inclusive)
      Returns:
      the range of matching object views
    • findByODI_DOV

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

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

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

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

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

      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectView - the default object view
      start - the lower bound of the range of object views
      end - the upper bound of the range of object views (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 views
    • findByODI_DOV_First

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

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

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

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

      public static ObjectView[] findByODI_DOV_PrevAndNext(long objectViewId, long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
      Returns the object views before and after the current object view in the ordered set where objectDefinitionId = ? and defaultObjectView = ?.
      Parameters:
      objectViewId - the primary key of the current object view
      objectDefinitionId - the object definition ID
      defaultObjectView - the default object view
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object view
      Throws:
      NoSuchObjectViewException - if a object view with the primary key could not be found
      NoSuchObjectViewException
    • removeByODI_DOV

      public static void removeByODI_DOV(long objectDefinitionId, boolean defaultObjectView)
      Removes all the object views where objectDefinitionId = ? and defaultObjectView = ? from the database.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectView - the default object view
    • countByODI_DOV

      public static int countByODI_DOV(long objectDefinitionId, boolean defaultObjectView)
      Returns the number of object views where objectDefinitionId = ? and defaultObjectView = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      defaultObjectView - the default object view
      Returns:
      the number of matching object views
    • cacheResult

      public static void cacheResult(ObjectView objectView)
      Caches the object view in the entity cache if it is enabled.
      Parameters:
      objectView - the object view
    • cacheResult

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

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

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

      public static ObjectView updateImpl(ObjectView objectView)
    • findByPrimaryKey

      public static ObjectView findByPrimaryKey(long objectViewId) throws NoSuchObjectViewException
      Returns the object view with the primary key or throws a NoSuchObjectViewException if it could not be found.
      Parameters:
      objectViewId - the primary key of the object view
      Returns:
      the object view
      Throws:
      NoSuchObjectViewException - if a object view with the primary key could not be found
      NoSuchObjectViewException
    • fetchByPrimaryKey

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

      public static List<ObjectView> findAll()
      Returns all the object views.
      Returns:
      the object views
    • findAll

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

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

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

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

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

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

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

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

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

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

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

      public static ObjectViewPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectViewPersistence persistence)