public class ObjectViewUtil
extends java.lang.Object
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
ObjectViewPersistence
Constructor and Description |
---|
ObjectViewUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectView> objectViews)
Caches the object views in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectView objectView)
Caches the object view in the entity cache if it is enabled.
|
static void |
clearCache() |
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_C(java.lang.String uuid,
long companyId)
Returns the number of object views where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object views where uuid = ?.
|
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 java.util.Map<java.io.Serializable,ObjectView> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectView |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
Returns the last object view in the ordered set where uuid = ?.
|
static java.util.List<ObjectView> |
findAll()
Returns all the object views.
|
static java.util.List<ObjectView> |
findAll(int start,
int end)
Returns a range of all the object views.
|
static java.util.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 java.util.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 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 java.util.List<ObjectView> |
findByObjectDefinitionId(long objectDefinitionId)
Returns all the object views where objectDefinitionId = ?.
|
static java.util.List<ObjectView> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end)
Returns a range of all the object views where objectDefinitionId = ?.
|
static java.util.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 java.util.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 |
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 java.util.List<ObjectView> |
findByODI_DOV(long objectDefinitionId,
boolean defaultObjectView)
Returns all the object views where objectDefinitionId = ? and defaultObjectView = ?.
|
static java.util.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 java.util.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 java.util.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 |
findByPrimaryKey(long objectViewId)
Returns the object view with the primary key or throws a
NoSuchObjectViewException if it could not be found. |
static ObjectView |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<ObjectView> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object views where uuid = ? and companyId = ?.
|
static java.util.List<ObjectView> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object views where uuid = ? and companyId = ?.
|
static java.util.List<ObjectView> |
findByUuid_C(java.lang.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 java.util.List<ObjectView> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<ObjectView> |
findByUuid(java.lang.String uuid)
Returns all the object views where uuid = ?.
|
static java.util.List<ObjectView> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object views where uuid = ?.
|
static java.util.List<ObjectView> |
findByUuid(java.lang.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 java.util.List<ObjectView> |
findByUuid(java.lang.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 java.util.List<ObjectView> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectView> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.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 |
getPersistence() |
static ObjectView |
remove(long objectViewId)
Removes the object view with the primary key from the database.
|
static void |
removeAll()
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_C(java.lang.String uuid,
long companyId)
Removes all the object views where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object views where uuid = ? from the database.
|
static ObjectView |
update(ObjectView objectView) |
static ObjectView |
update(ObjectView objectView,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectView |
updateImpl(ObjectView objectView) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectView objectView)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,ObjectView> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectView> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectView> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectView> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectView update(ObjectView objectView)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectView update(ObjectView objectView, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectView> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectView> findByUuid(java.lang.String uuid, int start, int end)
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
.
uuid
- the uuidstart
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)public static java.util.List<ObjectView> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<ObjectView> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectView findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a matching object view could not be foundpublic static ObjectView fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object view could not be foundpublic static ObjectView findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a matching object view could not be foundpublic static ObjectView fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object view could not be foundpublic static ObjectView[] findByUuid_PrevAndNext(long objectViewId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
objectViewId
- the primary key of the current object viewuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a object view with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectView> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectView> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
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
.
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)public static java.util.List<ObjectView> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<ObjectView> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectView findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a matching object view could not be foundpublic static ObjectView fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object view could not be foundpublic static ObjectView findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a matching object view could not be foundpublic static ObjectView fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object view could not be foundpublic static ObjectView[] findByUuid_C_PrevAndNext(long objectViewId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
objectViewId
- the primary key of the current object viewuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a object view with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectView> findByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectView> findByObjectDefinitionId(long objectDefinitionId, int start, int end)
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
.
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)public static java.util.List<ObjectView> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<ObjectView> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectView findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a matching object view could not be foundpublic static ObjectView fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object view could not be foundpublic static ObjectView findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a matching object view could not be foundpublic static ObjectView fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object view could not be foundpublic static ObjectView[] findByObjectDefinitionId_PrevAndNext(long objectViewId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
objectViewId
- the primary key of the current object viewobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a object view with the primary key could not be foundpublic static void removeByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static int countByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectView> findByODI_DOV(long objectDefinitionId, boolean defaultObjectView)
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object viewpublic static java.util.List<ObjectView> findByODI_DOV(long objectDefinitionId, boolean defaultObjectView, int start, int end)
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
.
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)public static java.util.List<ObjectView> findByODI_DOV(long objectDefinitionId, boolean defaultObjectView, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<ObjectView> findByODI_DOV(long objectDefinitionId, boolean defaultObjectView, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectView findByODI_DOV_First(long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a matching object view could not be foundpublic static ObjectView fetchByODI_DOV_First(long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object view could not be foundpublic static ObjectView findByODI_DOV_Last(long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a matching object view could not be foundpublic static ObjectView fetchByODI_DOV_Last(long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object view could not be foundpublic static ObjectView[] findByODI_DOV_PrevAndNext(long objectViewId, long objectDefinitionId, boolean defaultObjectView, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator) throws NoSuchObjectViewException
objectViewId
- the primary key of the current object viewobjectDefinitionId
- the object definition IDdefaultObjectView
- the default object vieworderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectViewException
- if a object view with the primary key could not be foundpublic static void removeByODI_DOV(long objectDefinitionId, boolean defaultObjectView)
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object viewpublic static int countByODI_DOV(long objectDefinitionId, boolean defaultObjectView)
objectDefinitionId
- the object definition IDdefaultObjectView
- the default object viewpublic static void cacheResult(ObjectView objectView)
objectView
- the object viewpublic static void cacheResult(java.util.List<ObjectView> objectViews)
objectViews
- the object viewspublic static ObjectView create(long objectViewId)
objectViewId
- the primary key for the new object viewpublic static ObjectView remove(long objectViewId) throws NoSuchObjectViewException
objectViewId
- the primary key of the object viewNoSuchObjectViewException
- if a object view with the primary key could not be foundpublic static ObjectView updateImpl(ObjectView objectView)
public static ObjectView findByPrimaryKey(long objectViewId) throws NoSuchObjectViewException
NoSuchObjectViewException
if it could not be found.objectViewId
- the primary key of the object viewNoSuchObjectViewException
- if a object view with the primary key could not be foundpublic static ObjectView fetchByPrimaryKey(long objectViewId)
null
if it could not be found.objectViewId
- the primary key of the object viewnull
if a object view with the primary key could not be foundpublic static java.util.List<ObjectView> findAll()
public static java.util.List<ObjectView> findAll(int start, int end)
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
.
start
- the lower bound of the range of object viewsend
- the upper bound of the range of object views (not inclusive)public static java.util.List<ObjectView> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<ObjectView> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectView> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static ObjectViewPersistence getPersistence()