Class ObjectStateFlowUtil
com.liferay.object.service.persistence.impl.ObjectStateFlowPersistenceImpl
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
(ObjectStateFlow objectStateFlow) Caches the object state flow in the entity cache if it is enabled.static void
cacheResult
(List<ObjectStateFlow> objectStateFlows) Caches the object state flows in the entity cache if it is enabled.static void
static void
clearCache
(ObjectStateFlow objectStateFlow) static int
countAll()
Returns the number of object state flows.static int
countByObjectFieldId
(long objectFieldId) Returns the number of object state flows where objectFieldId = ?.static int
countByUuid
(String uuid) Returns the number of object state flows where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of object state flows where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static ObjectStateFlow
create
(long objectStateFlowId) Creates a new object state flow with the primary key.static ObjectStateFlow
fetchByObjectFieldId
(long objectFieldId) Returns the object state flow where objectFieldId = ? or returnsnull
if it could not be found.static ObjectStateFlow
fetchByObjectFieldId
(long objectFieldId, boolean useFinderCache) Returns the object state flow where objectFieldId = ? or returnsnull
if it could not be found, optionally using the finder cache.static ObjectStateFlow
fetchByPrimaryKey
(long objectStateFlowId) Returns the object state flow with the primary key or returnsnull
if it could not be found.static Map<Serializable,
ObjectStateFlow> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static ObjectStateFlow
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the first object state flow in the ordered set where uuid = ? and companyId = ?.static ObjectStateFlow
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the last object state flow in the ordered set where uuid = ? and companyId = ?.static ObjectStateFlow
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the first object state flow in the ordered set where uuid = ?.static ObjectStateFlow
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the last object state flow in the ordered set where uuid = ?.static List<ObjectStateFlow>
findAll()
Returns all the object state flows.static List<ObjectStateFlow>
findAll
(int start, int end) Returns a range of all the object state flows.static List<ObjectStateFlow>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns an ordered range of all the object state flows.static List<ObjectStateFlow>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object state flows.static ObjectStateFlow
findByObjectFieldId
(long objectFieldId) Returns the object state flow where objectFieldId = ? or throws aNoSuchObjectStateFlowException
if it could not be found.static ObjectStateFlow
findByPrimaryKey
(long objectStateFlowId) Returns the object state flow with the primary key or throws aNoSuchObjectStateFlowException
if it could not be found.static List<ObjectStateFlow>
findByUuid
(String uuid) Returns all the object state flows where uuid = ?.static List<ObjectStateFlow>
findByUuid
(String uuid, int start, int end) Returns a range of all the object state flows where uuid = ?.static List<ObjectStateFlow>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns an ordered range of all the object state flows where uuid = ?.static List<ObjectStateFlow>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object state flows where uuid = ?.static List<ObjectStateFlow>
findByUuid_C
(String uuid, long companyId) Returns all the object state flows where uuid = ? and companyId = ?.static List<ObjectStateFlow>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the object state flows where uuid = ? and companyId = ?.static List<ObjectStateFlow>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns an ordered range of all the object state flows where uuid = ? and companyId = ?.static List<ObjectStateFlow>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object state flows where uuid = ? and companyId = ?.static ObjectStateFlow
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the first object state flow in the ordered set where uuid = ? and companyId = ?.static ObjectStateFlow
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the last object state flow in the ordered set where uuid = ? and companyId = ?.static ObjectStateFlow[]
findByUuid_C_PrevAndNext
(long objectStateFlowId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the object state flows before and after the current object state flow in the ordered set where uuid = ? and companyId = ?.static ObjectStateFlow
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the first object state flow in the ordered set where uuid = ?.static ObjectStateFlow
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the last object state flow in the ordered set where uuid = ?.static ObjectStateFlow[]
findByUuid_PrevAndNext
(long objectStateFlowId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the object state flows before and after the current object state flow in the ordered set where uuid = ?.static List<ObjectStateFlow>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<ObjectStateFlow>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<ObjectStateFlow>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) static ObjectStateFlowPersistence
static ObjectStateFlow
remove
(long objectStateFlowId) Removes the object state flow with the primary key from the database.static void
Removes all the object state flows from the database.static ObjectStateFlow
removeByObjectFieldId
(long objectFieldId) Removes the object state flow where objectFieldId = ? from the database.static void
removeByUuid
(String uuid) Removes all the object state flows where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the object state flows where uuid = ? and companyId = ? from the database.static void
setPersistence
(ObjectStateFlowPersistence persistence) static ObjectStateFlow
update
(ObjectStateFlow objectStateFlow) static ObjectStateFlow
update
(ObjectStateFlow objectStateFlow, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectStateFlow
updateImpl
(ObjectStateFlow objectStateFlow)
-
Constructor Details
-
ObjectStateFlowUtil
public ObjectStateFlowUtil()
-
-
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<ObjectStateFlow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<ObjectStateFlow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<ObjectStateFlow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static ObjectStateFlow update(ObjectStateFlow objectStateFlow, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the object state flows where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching object state flows
-
findByUuid
Returns a range of all the object state flows 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 fromObjectStateFlowModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)- Returns:
- the range of matching object state flows
-
findByUuid
public static List<ObjectStateFlow> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns an ordered range of all the object state flows 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 fromObjectStateFlowModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching object state flows
-
findByUuid
public static List<ObjectStateFlow> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object state flows 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 fromObjectStateFlowModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (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 state flows
-
findByUuid_First
public static ObjectStateFlow findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException Returns the first object state flow in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object state flow
- Throws:
NoSuchObjectStateFlowException
- if a matching object state flow could not be foundNoSuchObjectStateFlowException
-
fetchByUuid_First
public static ObjectStateFlow fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the first object state flow in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object state flow, or
null
if a matching object state flow could not be found
-
findByUuid_Last
public static ObjectStateFlow findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException Returns the last object state flow in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object state flow
- Throws:
NoSuchObjectStateFlowException
- if a matching object state flow could not be foundNoSuchObjectStateFlowException
-
fetchByUuid_Last
public static ObjectStateFlow fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the last object state flow in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object state flow, or
null
if a matching object state flow could not be found
-
findByUuid_PrevAndNext
public static ObjectStateFlow[] findByUuid_PrevAndNext(long objectStateFlowId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException Returns the object state flows before and after the current object state flow in the ordered set where uuid = ?.- Parameters:
objectStateFlowId
- the primary key of the current object state flowuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object state flow
- Throws:
NoSuchObjectStateFlowException
- if a object state flow with the primary key could not be foundNoSuchObjectStateFlowException
-
removeByUuid
Removes all the object state flows where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of object state flows where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching object state flows
-
findByUuid_C
Returns all the object state flows where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching object state flows
-
findByUuid_C
Returns a range of all the object state flows 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 fromObjectStateFlowModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)- Returns:
- the range of matching object state flows
-
findByUuid_C
public static List<ObjectStateFlow> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns an ordered range of all the object state flows 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 fromObjectStateFlowModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching object state flows
-
findByUuid_C
public static List<ObjectStateFlow> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object state flows 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 fromObjectStateFlowModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (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 state flows
-
findByUuid_C_First
public static ObjectStateFlow findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException Returns the first object state flow 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 state flow
- Throws:
NoSuchObjectStateFlowException
- if a matching object state flow could not be foundNoSuchObjectStateFlowException
-
fetchByUuid_C_First
public static ObjectStateFlow fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the first object state flow 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 state flow, or
null
if a matching object state flow could not be found
-
findByUuid_C_Last
public static ObjectStateFlow findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException Returns the last object state flow 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 state flow
- Throws:
NoSuchObjectStateFlowException
- if a matching object state flow could not be foundNoSuchObjectStateFlowException
-
fetchByUuid_C_Last
public static ObjectStateFlow fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns the last object state flow 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 state flow, or
null
if a matching object state flow could not be found
-
findByUuid_C_PrevAndNext
public static ObjectStateFlow[] findByUuid_C_PrevAndNext(long objectStateFlowId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException Returns the object state flows before and after the current object state flow in the ordered set where uuid = ? and companyId = ?.- Parameters:
objectStateFlowId
- the primary key of the current object state flowuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object state flow
- Throws:
NoSuchObjectStateFlowException
- if a object state flow with the primary key could not be foundNoSuchObjectStateFlowException
-
removeByUuid_C
Removes all the object state flows where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of object state flows where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching object state flows
-
findByObjectFieldId
public static ObjectStateFlow findByObjectFieldId(long objectFieldId) throws NoSuchObjectStateFlowException Returns the object state flow where objectFieldId = ? or throws aNoSuchObjectStateFlowException
if it could not be found.- Parameters:
objectFieldId
- the object field ID- Returns:
- the matching object state flow
- Throws:
NoSuchObjectStateFlowException
- if a matching object state flow could not be foundNoSuchObjectStateFlowException
-
fetchByObjectFieldId
Returns the object state flow where objectFieldId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
objectFieldId
- the object field ID- Returns:
- the matching object state flow, or
null
if a matching object state flow could not be found
-
fetchByObjectFieldId
Returns the object state flow where objectFieldId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
objectFieldId
- the object field IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching object state flow, or
null
if a matching object state flow could not be found
-
removeByObjectFieldId
public static ObjectStateFlow removeByObjectFieldId(long objectFieldId) throws NoSuchObjectStateFlowException Removes the object state flow where objectFieldId = ? from the database.- Parameters:
objectFieldId
- the object field ID- Returns:
- the object state flow that was removed
- Throws:
NoSuchObjectStateFlowException
-
countByObjectFieldId
public static int countByObjectFieldId(long objectFieldId) Returns the number of object state flows where objectFieldId = ?.- Parameters:
objectFieldId
- the object field ID- Returns:
- the number of matching object state flows
-
cacheResult
Caches the object state flow in the entity cache if it is enabled.- Parameters:
objectStateFlow
- the object state flow
-
cacheResult
Caches the object state flows in the entity cache if it is enabled.- Parameters:
objectStateFlows
- the object state flows
-
create
Creates a new object state flow with the primary key. Does not add the object state flow to the database.- Parameters:
objectStateFlowId
- the primary key for the new object state flow- Returns:
- the new object state flow
-
remove
Removes the object state flow with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
objectStateFlowId
- the primary key of the object state flow- Returns:
- the object state flow that was removed
- Throws:
NoSuchObjectStateFlowException
- if a object state flow with the primary key could not be foundNoSuchObjectStateFlowException
-
updateImpl
-
findByPrimaryKey
public static ObjectStateFlow findByPrimaryKey(long objectStateFlowId) throws NoSuchObjectStateFlowException Returns the object state flow with the primary key or throws aNoSuchObjectStateFlowException
if it could not be found.- Parameters:
objectStateFlowId
- the primary key of the object state flow- Returns:
- the object state flow
- Throws:
NoSuchObjectStateFlowException
- if a object state flow with the primary key could not be foundNoSuchObjectStateFlowException
-
fetchByPrimaryKey
Returns the object state flow with the primary key or returnsnull
if it could not be found.- Parameters:
objectStateFlowId
- the primary key of the object state flow- Returns:
- the object state flow, or
null
if a object state flow with the primary key could not be found
-
findAll
Returns all the object state flows.- Returns:
- the object state flows
-
findAll
Returns a range of all the object state flows.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 fromObjectStateFlowModelImpl
.- Parameters:
start
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)- Returns:
- the range of object state flows
-
findAll
public static List<ObjectStateFlow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) Returns an ordered range of all the object state flows.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 fromObjectStateFlowModelImpl
.- Parameters:
start
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of object state flows
-
findAll
public static List<ObjectStateFlow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object state flows.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 fromObjectStateFlowModelImpl
.- Parameters:
start
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of object state flows
-
removeAll
public static void removeAll()Removes all the object state flows from the database. -
countAll
public static int countAll()Returns the number of object state flows.- Returns:
- the number of object state flows
-
getPersistence
-
setPersistence
-