Class ObjectStateUtil
com.liferay.object.service.persistence.impl.ObjectStatePersistenceImpl 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 voidcacheResult(ObjectState objectState) Caches the object state in the entity cache if it is enabled.static voidcacheResult(List<ObjectState> objectStates) Caches the object states in the entity cache if it is enabled.static voidstatic voidclearCache(ObjectState objectState) static intcountAll()Returns the number of object states.static intcountByListTypeEntryId(long listTypeEntryId) Returns the number of object states where listTypeEntryId = ?.static intcountByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) Returns the number of object states where listTypeEntryId = ? and objectStateFlowId = ?.static intcountByObjectStateFlowId(long objectStateFlowId) Returns the number of object states where objectStateFlowId = ?.static intcountByUuid(String uuid) Returns the number of object states where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of object states where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static ObjectStatecreate(long objectStateId) Creates a new object state with the primary key.static ObjectStatefetchByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where listTypeEntryId = ?.static ObjectStatefetchByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returnsnullif it could not be found.static ObjectStatefetchByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId, boolean useFinderCache) Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returnsnullif it could not be found, optionally using the finder cache.static ObjectStatefetchByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where objectStateFlowId = ?.static ObjectStatefetchByPrimaryKey(long objectStateId) Returns the object state with the primary key or returnsnullif it could not be found.static Map<Serializable, ObjectState> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static ObjectStatefetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where uuid = ? and companyId = ?.static ObjectStatefetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where uuid = ?.static List<ObjectState> findAll()Returns all the object states.static List<ObjectState> findAll(int start, int end) Returns a range of all the object states.static List<ObjectState> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states.static List<ObjectState> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states.static List<ObjectState> findByListTypeEntryId(long listTypeEntryId) Returns all the object states where listTypeEntryId = ?.static List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end) Returns a range of all the object states where listTypeEntryId = ?.static List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states where listTypeEntryId = ?.static List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states where listTypeEntryId = ?.static ObjectStatefindByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where listTypeEntryId = ?.static ObjectStatefindByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or throws aNoSuchObjectStateExceptionif it could not be found.static List<ObjectState> findByObjectStateFlowId(long objectStateFlowId) Returns all the object states where objectStateFlowId = ?.static List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end) Returns a range of all the object states where objectStateFlowId = ?.static List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states where objectStateFlowId = ?.static List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states where objectStateFlowId = ?.static ObjectStatefindByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where objectStateFlowId = ?.static ObjectStatefindByPrimaryKey(long objectStateId) Returns the object state with the primary key or throws aNoSuchObjectStateExceptionif it could not be found.static List<ObjectState> findByUuid(String uuid) Returns all the object states where uuid = ?.static List<ObjectState> findByUuid(String uuid, int start, int end) Returns a range of all the object states where uuid = ?.static List<ObjectState> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states where uuid = ?.static List<ObjectState> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states where uuid = ?.static List<ObjectState> findByUuid_C(String uuid, long companyId) Returns all the object states where uuid = ? and companyId = ?.static List<ObjectState> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the object states where uuid = ? and companyId = ?.static List<ObjectState> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states where uuid = ? and companyId = ?.static List<ObjectState> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states where uuid = ? and companyId = ?.static ObjectStatefindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where uuid = ? and companyId = ?.static ObjectStatefindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where uuid = ?.static List<ObjectState> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<ObjectState> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<ObjectState> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) static ObjectStatePersistencestatic ObjectStateremove(long objectStateId) Removes the object state with the primary key from the database.static voidRemoves all the object states from the database.static voidremoveByListTypeEntryId(long listTypeEntryId) Removes all the object states where listTypeEntryId = ? from the database.static ObjectStateremoveByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) Removes the object state where listTypeEntryId = ? and objectStateFlowId = ? from the database.static voidremoveByObjectStateFlowId(long objectStateFlowId) Removes all the object states where objectStateFlowId = ? from the database.static voidremoveByUuid(String uuid) Removes all the object states where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the object states where uuid = ? and companyId = ? from the database.static voidsetPersistence(ObjectStatePersistence persistence) static ObjectStateupdate(ObjectState objectState) static ObjectStateupdate(ObjectState objectState, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectStateupdateImpl(ObjectState objectState)
-
Constructor Details
-
ObjectStateUtil
public ObjectStateUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<ObjectState> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<ObjectState> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<ObjectState> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static ObjectState update(ObjectState objectState, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
Returns all the object states where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching object states
-
findByUuid
Returns a range of all the object states where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)- Returns:
- the range of matching object states
-
findByUuid
public static List<ObjectState> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object states
-
findByUuid
public static List<ObjectState> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object statesend- the upper bound of the range of object states (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 states
-
findByUuid_First
public static ObjectState findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the first object state in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object state
-
fetchByUuid_First
public static ObjectState fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object state, or
nullif a matching object state could not be found
-
removeByUuid
Removes all the object states where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of object states where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching object states
-
findByUuid_C
Returns all the object states where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching object states
-
findByUuid_C
Returns a range of all the object states where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)- Returns:
- the range of matching object states
-
findByUuid_C
public static List<ObjectState> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object states
-
findByUuid_C
public static List<ObjectState> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object statesend- the upper bound of the range of object states (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 states
-
findByUuid_C_First
public static ObjectState findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the first object state 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
-
fetchByUuid_C_First
public static ObjectState fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state 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, or
nullif a matching object state could not be found
-
removeByUuid_C
Removes all the object states where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of object states where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching object states
-
findByListTypeEntryId
Returns all the object states where listTypeEntryId = ?.- Parameters:
listTypeEntryId- the list type entry ID- Returns:
- the matching object states
-
findByListTypeEntryId
Returns a range of all the object states where listTypeEntryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
listTypeEntryId- the list type entry IDstart- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)- Returns:
- the range of matching object states
-
findByListTypeEntryId
public static List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states where listTypeEntryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
listTypeEntryId- the list type entry IDstart- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object states
-
findByListTypeEntryId
public static List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states where listTypeEntryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
listTypeEntryId- the list type entry IDstart- the lower bound of the range of object statesend- the upper bound of the range of object states (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 states
-
findByListTypeEntryId_First
public static ObjectState findByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the first object state in the ordered set where listTypeEntryId = ?.- Parameters:
listTypeEntryId- the list type entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object state
-
fetchByListTypeEntryId_First
public static ObjectState fetchByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where listTypeEntryId = ?.- Parameters:
listTypeEntryId- the list type entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object state, or
nullif a matching object state could not be found
-
removeByListTypeEntryId
public static void removeByListTypeEntryId(long listTypeEntryId) Removes all the object states where listTypeEntryId = ? from the database.- Parameters:
listTypeEntryId- the list type entry ID
-
countByListTypeEntryId
public static int countByListTypeEntryId(long listTypeEntryId) Returns the number of object states where listTypeEntryId = ?.- Parameters:
listTypeEntryId- the list type entry ID- Returns:
- the number of matching object states
-
findByObjectStateFlowId
Returns all the object states where objectStateFlowId = ?.- Parameters:
objectStateFlowId- the object state flow ID- Returns:
- the matching object states
-
findByObjectStateFlowId
Returns a range of all the object states where objectStateFlowId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
objectStateFlowId- the object state flow IDstart- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)- Returns:
- the range of matching object states
-
findByObjectStateFlowId
public static List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states where objectStateFlowId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
objectStateFlowId- the object state flow IDstart- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object states
-
findByObjectStateFlowId
public static List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states where objectStateFlowId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
objectStateFlowId- the object state flow IDstart- the lower bound of the range of object statesend- the upper bound of the range of object states (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 states
-
findByObjectStateFlowId_First
public static ObjectState findByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the first object state in the ordered set where objectStateFlowId = ?.- Parameters:
objectStateFlowId- the object state flow IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object state
-
fetchByObjectStateFlowId_First
public static ObjectState fetchByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where objectStateFlowId = ?.- Parameters:
objectStateFlowId- the object state flow IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object state, or
nullif a matching object state could not be found
-
removeByObjectStateFlowId
public static void removeByObjectStateFlowId(long objectStateFlowId) Removes all the object states where objectStateFlowId = ? from the database.- Parameters:
objectStateFlowId- the object state flow ID
-
countByObjectStateFlowId
public static int countByObjectStateFlowId(long objectStateFlowId) Returns the number of object states where objectStateFlowId = ?.- Parameters:
objectStateFlowId- the object state flow ID- Returns:
- the number of matching object states
-
findByLTEI_OSFI
public static ObjectState findByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) throws NoSuchObjectStateException Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or throws aNoSuchObjectStateExceptionif it could not be found.- Parameters:
listTypeEntryId- the list type entry IDobjectStateFlowId- the object state flow ID- Returns:
- the matching object state
-
fetchByLTEI_OSFI
Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
listTypeEntryId- the list type entry IDobjectStateFlowId- the object state flow ID- Returns:
- the matching object state, or
nullif a matching object state could not be found
-
fetchByLTEI_OSFI
public static ObjectState fetchByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId, boolean useFinderCache) Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
listTypeEntryId- the list type entry IDobjectStateFlowId- the object state flow IDuseFinderCache- whether to use the finder cache- Returns:
- the matching object state, or
nullif a matching object state could not be found
-
removeByLTEI_OSFI
public static ObjectState removeByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) throws NoSuchObjectStateException Removes the object state where listTypeEntryId = ? and objectStateFlowId = ? from the database.- Parameters:
listTypeEntryId- the list type entry IDobjectStateFlowId- the object state flow ID- Returns:
- the object state that was removed
- Throws:
NoSuchObjectStateException
-
countByLTEI_OSFI
public static int countByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) Returns the number of object states where listTypeEntryId = ? and objectStateFlowId = ?.- Parameters:
listTypeEntryId- the list type entry IDobjectStateFlowId- the object state flow ID- Returns:
- the number of matching object states
-
cacheResult
Caches the object state in the entity cache if it is enabled.- Parameters:
objectState- the object state
-
cacheResult
Caches the object states in the entity cache if it is enabled.- Parameters:
objectStates- the object states
-
create
Creates a new object state with the primary key. Does not add the object state to the database.- Parameters:
objectStateId- the primary key for the new object state- Returns:
- the new object state
-
remove
Removes the object state with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
objectStateId- the primary key of the object state- Returns:
- the object state that was removed
-
updateImpl
-
findByPrimaryKey
Returns the object state with the primary key or throws aNoSuchObjectStateExceptionif it could not be found.- Parameters:
objectStateId- the primary key of the object state- Returns:
- the object state
-
fetchByPrimaryKey
Returns the object state with the primary key or returnsnullif it could not be found.- Parameters:
objectStateId- the primary key of the object state- Returns:
- the object state, or
nullif a object state with the primary key could not be found
-
findAll
Returns all the object states.- Returns:
- the object states
-
findAll
Returns a range of all the object states.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
start- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)- Returns:
- the range of object states
-
findAll
public static List<ObjectState> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
start- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of object states
-
findAll
public static List<ObjectState> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.object.model.impl.ObjectStateModelImpl.- Parameters:
start- the lower bound of the range of object statesend- the upper bound of the range of object states (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of object states
-
removeAll
public static void removeAll()Removes all the object states from the database. -
countAll
public static int countAll()Returns the number of object states.- Returns:
- the number of object states
-
getPersistence
-
setPersistence
-