Class ObjectViewUtil
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
countAll()
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
countByUuid
(String uuid) 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 returnsnull
if it could not be found.static Map<Serializable,
ObjectView> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) 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 = ?.static List<ObjectView>
findAll()
Returns all the object views.static List<ObjectView>
findAll
(int start, int end) Returns a range of all the object views.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.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.static List<ObjectView>
findByObjectDefinitionId
(long objectDefinitionId) Returns all the object views where objectDefinitionId = ?.static List<ObjectView>
findByObjectDefinitionId
(long objectDefinitionId, int start, int end) Returns a range of all the object views where objectDefinitionId = ?.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 = ?.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 = ?.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 = ?.static List<ObjectView>
findByODI_DOV
(long objectDefinitionId, boolean defaultObjectView) Returns all the object views where objectDefinitionId = ? and defaultObjectView = ?.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 = ?.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 = ?.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 = ?.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 aNoSuchObjectViewException
if it could not be found.static List<ObjectView>
findByUuid
(String uuid) Returns all the object views where uuid = ?.static List<ObjectView>
findByUuid
(String uuid, int start, int end) Returns a range of all the object views where uuid = ?.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 = ?.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 = ?.static List<ObjectView>
findByUuid_C
(String uuid, long companyId) Returns all the object views where uuid = ? and companyId = ?.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 = ?.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 = ?.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 = ?.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 = ?.static List<ObjectView>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<ObjectView>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<ObjectView>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) static ObjectViewPersistence
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
removeByUuid
(String uuid) 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
setPersistence
(ObjectViewPersistence persistence) static ObjectView
update
(ObjectView objectView) static ObjectView
update
(ObjectView objectView, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectView
updateImpl
(ObjectView objectView)
-
Constructor Details
-
ObjectViewUtil
public ObjectViewUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
- 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
Returns all the object views where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching object views
-
findByUuid
Returns a range of all the object views where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of object viewsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object view
- Throws:
NoSuchObjectViewException
- if a matching object view could not be foundNoSuchObjectViewException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object view
- Throws:
NoSuchObjectViewException
- if a matching object view could not be foundNoSuchObjectViewException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 viewuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object view
- Throws:
NoSuchObjectViewException
- if a object view with the primary key could not be foundNoSuchObjectViewException
-
removeByUuid
Removes all the object views where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of object views where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching object views
-
findByUuid_C
Returns all the object views where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching object views
-
findByUuid_C
Returns a range of all the object views where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object viewsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object view
- Throws:
NoSuchObjectViewException
- if a matching object view could not be foundNoSuchObjectViewException
-
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object view
- Throws:
NoSuchObjectViewException
- if a matching object view could not be foundNoSuchObjectViewException
-
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 viewuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object view
- Throws:
NoSuchObjectViewException
- if a object view with the primary key could not be foundNoSuchObjectViewException
-
removeByUuid_C
Removes all the object views where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of object views where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching object views
-
findByObjectDefinitionId
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object viewsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object view
- Throws:
NoSuchObjectViewException
- if a matching object view could not be foundNoSuchObjectViewException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object view
- Throws:
NoSuchObjectViewException
- if a matching object view could not be foundNoSuchObjectViewException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 viewobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object view
- Throws:
NoSuchObjectViewException
- if a object view with the primary key could not be foundNoSuchObjectViewException
-
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
Returns all the object views where objectDefinitionId = ? and defaultObjectView = ?.- Parameters:
objectDefinitionId
- the object definition IDdefaultObjectView
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object viewstart
- the lower bound of the range of object viewsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object viewstart
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object viewstart
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object view
- Throws:
NoSuchObjectViewException
- if a matching object view could not be foundNoSuchObjectViewException
-
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 IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object view
- Throws:
NoSuchObjectViewException
- if a matching object view could not be foundNoSuchObjectViewException
-
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 IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionallynull
)- 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 viewobjectDefinitionId
- the object definition IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object view
- Throws:
NoSuchObjectViewException
- if a object view with the primary key could not be foundNoSuchObjectViewException
-
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 IDdefaultObjectView
- 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 IDdefaultObjectView
- the default object view- Returns:
- the number of matching object views
-
cacheResult
Caches the object view in the entity cache if it is enabled.- Parameters:
objectView
- the object view
-
cacheResult
Caches the object views in the entity cache if it is enabled.- Parameters:
objectViews
- the object views
-
create
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
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 foundNoSuchObjectViewException
-
updateImpl
-
findByPrimaryKey
Returns the object view with the primary key or throws aNoSuchObjectViewException
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 foundNoSuchObjectViewException
-
fetchByPrimaryKey
Returns the object view with the primary key or returnsnull
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
Returns all the object views.- Returns:
- the object views
-
findAll
Returns a range of all the object views.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
start
- the lower bound of the range of object viewsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
start
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectViewModelImpl
.- Parameters:
start
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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
-
setPersistence
-