public class ObjectStateTransitionUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectStateTransitionPersistenceImpl
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
ObjectStateTransitionPersistence
Constructor and Description |
---|
ObjectStateTransitionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectStateTransition> objectStateTransitions)
Caches the object state transitions in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectStateTransition objectStateTransition)
Caches the object state transition in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectStateTransition objectStateTransition) |
static int |
countAll()
Returns the number of object state transitions.
|
static int |
countByObjectStateFlowId(long objectStateFlowId)
Returns the number of object state transitions where objectStateFlowId = ?.
|
static int |
countBySourceObjectStateId(long sourceObjectStateId)
Returns the number of object state transitions where sourceObjectStateId = ?.
|
static int |
countByTargetObjectStateId(long targetObjectStateId)
Returns the number of object state transitions where targetObjectStateId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object state transitions where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object state transitions where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectStateTransition |
create(long objectStateTransitionId)
Creates a new object state transition with the primary key.
|
static ObjectStateTransition |
fetchByObjectStateFlowId_First(long objectStateFlowId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where objectStateFlowId = ?.
|
static ObjectStateTransition |
fetchByObjectStateFlowId_Last(long objectStateFlowId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where objectStateFlowId = ?.
|
static ObjectStateTransition |
fetchByPrimaryKey(long objectStateTransitionId)
Returns the object state transition with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectStateTransition> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectStateTransition |
fetchBySourceObjectStateId_First(long sourceObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where sourceObjectStateId = ?.
|
static ObjectStateTransition |
fetchBySourceObjectStateId_Last(long sourceObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where sourceObjectStateId = ?.
|
static ObjectStateTransition |
fetchByTargetObjectStateId_First(long targetObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where targetObjectStateId = ?.
|
static ObjectStateTransition |
fetchByTargetObjectStateId_Last(long targetObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where targetObjectStateId = ?.
|
static ObjectStateTransition |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where uuid = ? and companyId = ?.
|
static ObjectStateTransition |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where uuid = ? and companyId = ?.
|
static ObjectStateTransition |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where uuid = ?.
|
static ObjectStateTransition |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where uuid = ?.
|
static java.util.List<ObjectStateTransition> |
findAll()
Returns all the object state transitions.
|
static java.util.List<ObjectStateTransition> |
findAll(int start,
int end)
Returns a range of all the object state transitions.
|
static java.util.List<ObjectStateTransition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns an ordered range of all the object state transitions.
|
static java.util.List<ObjectStateTransition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object state transitions.
|
static ObjectStateTransition |
findByObjectStateFlowId_First(long objectStateFlowId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where objectStateFlowId = ?.
|
static ObjectStateTransition |
findByObjectStateFlowId_Last(long objectStateFlowId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where objectStateFlowId = ?.
|
static ObjectStateTransition[] |
findByObjectStateFlowId_PrevAndNext(long objectStateTransitionId,
long objectStateFlowId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the object state transitions before and after the current object state transition in the ordered set where objectStateFlowId = ?.
|
static java.util.List<ObjectStateTransition> |
findByObjectStateFlowId(long objectStateFlowId)
Returns all the object state transitions where objectStateFlowId = ?.
|
static java.util.List<ObjectStateTransition> |
findByObjectStateFlowId(long objectStateFlowId,
int start,
int end)
Returns a range of all the object state transitions where objectStateFlowId = ?.
|
static java.util.List<ObjectStateTransition> |
findByObjectStateFlowId(long objectStateFlowId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns an ordered range of all the object state transitions where objectStateFlowId = ?.
|
static java.util.List<ObjectStateTransition> |
findByObjectStateFlowId(long objectStateFlowId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object state transitions where objectStateFlowId = ?.
|
static ObjectStateTransition |
findByPrimaryKey(long objectStateTransitionId)
Returns the object state transition with the primary key or throws a
NoSuchObjectStateTransitionException if it could not be found. |
static ObjectStateTransition |
findBySourceObjectStateId_First(long sourceObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where sourceObjectStateId = ?.
|
static ObjectStateTransition |
findBySourceObjectStateId_Last(long sourceObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where sourceObjectStateId = ?.
|
static ObjectStateTransition[] |
findBySourceObjectStateId_PrevAndNext(long objectStateTransitionId,
long sourceObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the object state transitions before and after the current object state transition in the ordered set where sourceObjectStateId = ?.
|
static java.util.List<ObjectStateTransition> |
findBySourceObjectStateId(long sourceObjectStateId)
Returns all the object state transitions where sourceObjectStateId = ?.
|
static java.util.List<ObjectStateTransition> |
findBySourceObjectStateId(long sourceObjectStateId,
int start,
int end)
Returns a range of all the object state transitions where sourceObjectStateId = ?.
|
static java.util.List<ObjectStateTransition> |
findBySourceObjectStateId(long sourceObjectStateId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns an ordered range of all the object state transitions where sourceObjectStateId = ?.
|
static java.util.List<ObjectStateTransition> |
findBySourceObjectStateId(long sourceObjectStateId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object state transitions where sourceObjectStateId = ?.
|
static ObjectStateTransition |
findByTargetObjectStateId_First(long targetObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where targetObjectStateId = ?.
|
static ObjectStateTransition |
findByTargetObjectStateId_Last(long targetObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where targetObjectStateId = ?.
|
static ObjectStateTransition[] |
findByTargetObjectStateId_PrevAndNext(long objectStateTransitionId,
long targetObjectStateId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the object state transitions before and after the current object state transition in the ordered set where targetObjectStateId = ?.
|
static java.util.List<ObjectStateTransition> |
findByTargetObjectStateId(long targetObjectStateId)
Returns all the object state transitions where targetObjectStateId = ?.
|
static java.util.List<ObjectStateTransition> |
findByTargetObjectStateId(long targetObjectStateId,
int start,
int end)
Returns a range of all the object state transitions where targetObjectStateId = ?.
|
static java.util.List<ObjectStateTransition> |
findByTargetObjectStateId(long targetObjectStateId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns an ordered range of all the object state transitions where targetObjectStateId = ?.
|
static java.util.List<ObjectStateTransition> |
findByTargetObjectStateId(long targetObjectStateId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object state transitions where targetObjectStateId = ?.
|
static ObjectStateTransition |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where uuid = ? and companyId = ?.
|
static ObjectStateTransition |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where uuid = ? and companyId = ?.
|
static ObjectStateTransition[] |
findByUuid_C_PrevAndNext(long objectStateTransitionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the object state transitions before and after the current object state transition in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectStateTransition> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object state transitions where uuid = ? and companyId = ?.
|
static java.util.List<ObjectStateTransition> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object state transitions where uuid = ? and companyId = ?.
|
static java.util.List<ObjectStateTransition> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns an ordered range of all the object state transitions where uuid = ? and companyId = ?.
|
static java.util.List<ObjectStateTransition> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object state transitions where uuid = ? and companyId = ?.
|
static ObjectStateTransition |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the first object state transition in the ordered set where uuid = ?.
|
static ObjectStateTransition |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the last object state transition in the ordered set where uuid = ?.
|
static ObjectStateTransition[] |
findByUuid_PrevAndNext(long objectStateTransitionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns the object state transitions before and after the current object state transition in the ordered set where uuid = ?.
|
static java.util.List<ObjectStateTransition> |
findByUuid(java.lang.String uuid)
Returns all the object state transitions where uuid = ?.
|
static java.util.List<ObjectStateTransition> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object state transitions where uuid = ?.
|
static java.util.List<ObjectStateTransition> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
Returns an ordered range of all the object state transitions where uuid = ?.
|
static java.util.List<ObjectStateTransition> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object state transitions where uuid = ?.
|
static java.util.List<ObjectStateTransition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectStateTransition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectStateTransition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) |
static ObjectStateTransitionPersistence |
getPersistence() |
static ObjectStateTransition |
remove(long objectStateTransitionId)
Removes the object state transition with the primary key from the database.
|
static void |
removeAll()
Removes all the object state transitions from the database.
|
static void |
removeByObjectStateFlowId(long objectStateFlowId)
Removes all the object state transitions where objectStateFlowId = ? from the database.
|
static void |
removeBySourceObjectStateId(long sourceObjectStateId)
Removes all the object state transitions where sourceObjectStateId = ? from the database.
|
static void |
removeByTargetObjectStateId(long targetObjectStateId)
Removes all the object state transitions where targetObjectStateId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object state transitions where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object state transitions where uuid = ? from the database.
|
static void |
setPersistence(ObjectStateTransitionPersistence persistence) |
static ObjectStateTransition |
update(ObjectStateTransition objectStateTransition) |
static ObjectStateTransition |
update(ObjectStateTransition objectStateTransition,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectStateTransition |
updateImpl(ObjectStateTransition objectStateTransition) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectStateTransition objectStateTransition)
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,ObjectStateTransition> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectStateTransition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectStateTransition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectStateTransition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectStateTransition update(ObjectStateTransition objectStateTransition)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectStateTransition update(ObjectStateTransition objectStateTransition, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectStateTransition> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)public static java.util.List<ObjectStateTransition> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectStateTransition> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectStateTransition findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition[] findByUuid_PrevAndNext(long objectStateTransitionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
objectStateTransitionId
- the primary key of the current object state transitionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a object state transition 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<ObjectStateTransition> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)public static java.util.List<ObjectStateTransition> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectStateTransition> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectStateTransition findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition[] findByUuid_C_PrevAndNext(long objectStateTransitionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
objectStateTransitionId
- the primary key of the current object state transitionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a object state transition 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<ObjectStateTransition> findByObjectStateFlowId(long objectStateFlowId)
objectStateFlowId
- the object state flow IDpublic static java.util.List<ObjectStateTransition> findByObjectStateFlowId(long objectStateFlowId, 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 ObjectStateTransitionModelImpl
.
objectStateFlowId
- the object state flow IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)public static java.util.List<ObjectStateTransition> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
objectStateFlowId
- the object state flow IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectStateTransition> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
objectStateFlowId
- the object state flow IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectStateTransition findByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
objectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
objectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition findByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
objectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
objectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition[] findByObjectStateFlowId_PrevAndNext(long objectStateTransitionId, long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
objectStateTransitionId
- the primary key of the current object state transitionobjectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a object state transition with the primary key could not be foundpublic static void removeByObjectStateFlowId(long objectStateFlowId)
objectStateFlowId
- the object state flow IDpublic static int countByObjectStateFlowId(long objectStateFlowId)
objectStateFlowId
- the object state flow IDpublic static java.util.List<ObjectStateTransition> findBySourceObjectStateId(long sourceObjectStateId)
sourceObjectStateId
- the source object state IDpublic static java.util.List<ObjectStateTransition> findBySourceObjectStateId(long sourceObjectStateId, 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 ObjectStateTransitionModelImpl
.
sourceObjectStateId
- the source object state IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)public static java.util.List<ObjectStateTransition> findBySourceObjectStateId(long sourceObjectStateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
sourceObjectStateId
- the source object state IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectStateTransition> findBySourceObjectStateId(long sourceObjectStateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
sourceObjectStateId
- the source object state IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectStateTransition findBySourceObjectStateId_First(long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
sourceObjectStateId
- the source object state IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchBySourceObjectStateId_First(long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
sourceObjectStateId
- the source object state IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition findBySourceObjectStateId_Last(long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
sourceObjectStateId
- the source object state IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchBySourceObjectStateId_Last(long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
sourceObjectStateId
- the source object state IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition[] findBySourceObjectStateId_PrevAndNext(long objectStateTransitionId, long sourceObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
objectStateTransitionId
- the primary key of the current object state transitionsourceObjectStateId
- the source object state IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a object state transition with the primary key could not be foundpublic static void removeBySourceObjectStateId(long sourceObjectStateId)
sourceObjectStateId
- the source object state IDpublic static int countBySourceObjectStateId(long sourceObjectStateId)
sourceObjectStateId
- the source object state IDpublic static java.util.List<ObjectStateTransition> findByTargetObjectStateId(long targetObjectStateId)
targetObjectStateId
- the target object state IDpublic static java.util.List<ObjectStateTransition> findByTargetObjectStateId(long targetObjectStateId, 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 ObjectStateTransitionModelImpl
.
targetObjectStateId
- the target object state IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)public static java.util.List<ObjectStateTransition> findByTargetObjectStateId(long targetObjectStateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
targetObjectStateId
- the target object state IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectStateTransition> findByTargetObjectStateId(long targetObjectStateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
targetObjectStateId
- the target object state IDstart
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectStateTransition findByTargetObjectStateId_First(long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
targetObjectStateId
- the target object state IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchByTargetObjectStateId_First(long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
targetObjectStateId
- the target object state IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition findByTargetObjectStateId_Last(long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
targetObjectStateId
- the target object state IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a matching object state transition could not be foundpublic static ObjectStateTransition fetchByTargetObjectStateId_Last(long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator)
targetObjectStateId
- the target object state IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state transition could not be foundpublic static ObjectStateTransition[] findByTargetObjectStateId_PrevAndNext(long objectStateTransitionId, long targetObjectStateId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> orderByComparator) throws NoSuchObjectStateTransitionException
objectStateTransitionId
- the primary key of the current object state transitiontargetObjectStateId
- the target object state IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateTransitionException
- if a object state transition with the primary key could not be foundpublic static void removeByTargetObjectStateId(long targetObjectStateId)
targetObjectStateId
- the target object state IDpublic static int countByTargetObjectStateId(long targetObjectStateId)
targetObjectStateId
- the target object state IDpublic static void cacheResult(ObjectStateTransition objectStateTransition)
objectStateTransition
- the object state transitionpublic static void cacheResult(java.util.List<ObjectStateTransition> objectStateTransitions)
objectStateTransitions
- the object state transitionspublic static ObjectStateTransition create(long objectStateTransitionId)
objectStateTransitionId
- the primary key for the new object state transitionpublic static ObjectStateTransition remove(long objectStateTransitionId) throws NoSuchObjectStateTransitionException
objectStateTransitionId
- the primary key of the object state transitionNoSuchObjectStateTransitionException
- if a object state transition with the primary key could not be foundpublic static ObjectStateTransition updateImpl(ObjectStateTransition objectStateTransition)
public static ObjectStateTransition findByPrimaryKey(long objectStateTransitionId) throws NoSuchObjectStateTransitionException
NoSuchObjectStateTransitionException
if it could not be found.objectStateTransitionId
- the primary key of the object state transitionNoSuchObjectStateTransitionException
- if a object state transition with the primary key could not be foundpublic static ObjectStateTransition fetchByPrimaryKey(long objectStateTransitionId)
null
if it could not be found.objectStateTransitionId
- the primary key of the object state transitionnull
if a object state transition with the primary key could not be foundpublic static java.util.List<ObjectStateTransition> findAll()
public static java.util.List<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
start
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)public static java.util.List<ObjectStateTransition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
start
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectStateTransition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateTransition> 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 ObjectStateTransitionModelImpl
.
start
- the lower bound of the range of object state transitionsend
- the upper bound of the range of object state transitions (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 ObjectStateTransitionPersistence getPersistence()
public static void setPersistence(ObjectStateTransitionPersistence persistence)