Interface ObjectStatePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<ObjectState>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(ObjectState objectState) Caches the object state in the entity cache if it is enabled.void
cacheResult
(List<ObjectState> objectStates) Caches the object states in the entity cache if it is enabled.int
countAll()
Returns the number of object states.int
countByListTypeEntryId
(long listTypeEntryId) Returns the number of object states where listTypeEntryId = ?.int
countByLTEI_OSFI
(long listTypeEntryId, long objectStateFlowId) Returns the number of object states where listTypeEntryId = ? and objectStateFlowId = ?.int
countByObjectStateFlowId
(long objectStateFlowId) Returns the number of object states where objectStateFlowId = ?.int
countByUuid
(String uuid) Returns the number of object states where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of object states where uuid = ? and companyId = ?.create
(long objectStateId) Creates a new object state with the primary key.fetchByListTypeEntryId_First
(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where listTypeEntryId = ?.fetchByListTypeEntryId_Last
(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last object state in the ordered set where listTypeEntryId = ?.fetchByLTEI_OSFI
(long listTypeEntryId, long objectStateFlowId) Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returnsnull
if it could not be found.fetchByLTEI_OSFI
(long listTypeEntryId, long objectStateFlowId, boolean useFinderCache) Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByObjectStateFlowId_First
(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where objectStateFlowId = ?.fetchByObjectStateFlowId_Last
(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last object state in the ordered set where objectStateFlowId = ?.fetchByPrimaryKey
(long objectStateId) Returns the object state with the primary key or returnsnull
if it could not be found.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 = ?.fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last object state in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last object state in the ordered set where uuid = ?.findAll()
Returns all the object states.findAll
(int start, int end) Returns a range of all the object states.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns an ordered range of all the object states.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object states.findByListTypeEntryId
(long listTypeEntryId) Returns all the object states where listTypeEntryId = ?.findByListTypeEntryId
(long listTypeEntryId, int start, int end) Returns a range of all the object states where listTypeEntryId = ?.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 = ?.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 = ?.findByListTypeEntryId_First
(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where listTypeEntryId = ?.findByListTypeEntryId_Last
(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last object state in the ordered set where listTypeEntryId = ?.findByListTypeEntryId_PrevAndNext
(long objectStateId, long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the object states before and after the current object state in the ordered set where listTypeEntryId = ?.findByLTEI_OSFI
(long listTypeEntryId, long objectStateFlowId) Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or throws aNoSuchObjectStateException
if it could not be found.findByObjectStateFlowId
(long objectStateFlowId) Returns all the object states where objectStateFlowId = ?.findByObjectStateFlowId
(long objectStateFlowId, int start, int end) Returns a range of all the object states where objectStateFlowId = ?.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 = ?.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 = ?.findByObjectStateFlowId_First
(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where objectStateFlowId = ?.findByObjectStateFlowId_Last
(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last object state in the ordered set where objectStateFlowId = ?.findByObjectStateFlowId_PrevAndNext
(long objectStateId, long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the object states before and after the current object state in the ordered set where objectStateFlowId = ?.findByPrimaryKey
(long objectStateId) Returns the object state with the primary key or throws aNoSuchObjectStateException
if it could not be found.findByUuid
(String uuid) Returns all the object states where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the object states where uuid = ?.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 = ?.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 = ?.findByUuid_C
(String uuid, long companyId) Returns all the object states where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the object states where uuid = ? and companyId = ?.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 = ?.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 = ?.findByUuid_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 = ?.findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last object state in the ordered set where uuid = ? and companyId = ?.findByUuid_C_PrevAndNext
(long objectStateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the object states before and after the current object state in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the first object state in the ordered set where uuid = ?.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last object state in the ordered set where uuid = ?.findByUuid_PrevAndNext
(long objectStateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the object states before and after the current object state in the ordered set where uuid = ?.remove
(long objectStateId) Removes the object state with the primary key from the database.void
Removes all the object states from the database.void
removeByListTypeEntryId
(long listTypeEntryId) Removes all the object states where listTypeEntryId = ? from the database.removeByLTEI_OSFI
(long listTypeEntryId, long objectStateFlowId) Removes the object state where listTypeEntryId = ? and objectStateFlowId = ? from the database.void
removeByObjectStateFlowId
(long objectStateFlowId) Removes all the object states where objectStateFlowId = ? from the database.void
removeByUuid
(String uuid) Removes all the object states where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the object states where uuid = ? and companyId = ? from the database.updateImpl
(ObjectState objectState) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
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
- Throws:
NoSuchObjectStateException
- if a matching object state could not be found
-
fetchByUuid_First
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
null
if a matching object state could not be found
-
findByUuid_Last
ObjectState findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the last object state in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object state
- Throws:
NoSuchObjectStateException
- if a matching object state could not be found
-
fetchByUuid_Last
ObjectState fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last object state in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object state, or
null
if a matching object state could not be found
-
findByUuid_PrevAndNext
ObjectState[] findByUuid_PrevAndNext(long objectStateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the object states before and after the current object state in the ordered set where uuid = ?.- Parameters:
objectStateId
- the primary key of the current object stateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object state
- Throws:
NoSuchObjectStateException
- if a object state with the primary key 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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
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
- Throws:
NoSuchObjectStateException
- if a matching object state could not be found
-
fetchByUuid_C_First
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
null
if a matching object state could not be found
-
findByUuid_C_Last
ObjectState findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the last 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 last matching object state
- Throws:
NoSuchObjectStateException
- if a matching object state could not be found
-
fetchByUuid_C_Last
ObjectState fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last 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 last matching object state, or
null
if a matching object state could not be found
-
findByUuid_C_PrevAndNext
ObjectState[] findByUuid_C_PrevAndNext(long objectStateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the object states before and after the current object state in the ordered set where uuid = ? and companyId = ?.- Parameters:
objectStateId
- the primary key of the current object stateuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object state
- Throws:
NoSuchObjectStateException
- if a object state with the primary key 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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
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
- Throws:
NoSuchObjectStateException
- if a matching object state could not be found
-
fetchByListTypeEntryId_First
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
null
if a matching object state could not be found
-
findByListTypeEntryId_Last
ObjectState findByListTypeEntryId_Last(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the last 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 last matching object state
- Throws:
NoSuchObjectStateException
- if a matching object state could not be found
-
fetchByListTypeEntryId_Last
ObjectState fetchByListTypeEntryId_Last(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last 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 last matching object state, or
null
if a matching object state could not be found
-
findByListTypeEntryId_PrevAndNext
ObjectState[] findByListTypeEntryId_PrevAndNext(long objectStateId, long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the object states before and after the current object state in the ordered set where listTypeEntryId = ?.- Parameters:
objectStateId
- the primary key of the current object statelistTypeEntryId
- the list type entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object state
- Throws:
NoSuchObjectStateException
- if a object state with the primary key could not be found
-
removeByListTypeEntryId
void removeByListTypeEntryId(long listTypeEntryId) Removes all the object states where listTypeEntryId = ? from the database.- Parameters:
listTypeEntryId
- the list type entry ID
-
countByListTypeEntryId
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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
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
- Throws:
NoSuchObjectStateException
- if a matching object state could not be found
-
fetchByObjectStateFlowId_First
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
null
if a matching object state could not be found
-
findByObjectStateFlowId_Last
ObjectState findByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the last 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 last matching object state
- Throws:
NoSuchObjectStateException
- if a matching object state could not be found
-
fetchByObjectStateFlowId_Last
ObjectState fetchByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) Returns the last 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 last matching object state, or
null
if a matching object state could not be found
-
findByObjectStateFlowId_PrevAndNext
ObjectState[] findByObjectStateFlowId_PrevAndNext(long objectStateId, long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException Returns the object states before and after the current object state in the ordered set where objectStateFlowId = ?.- Parameters:
objectStateId
- the primary key of the current object stateobjectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object state
- Throws:
NoSuchObjectStateException
- if a object state with the primary key could not be found
-
removeByObjectStateFlowId
void removeByObjectStateFlowId(long objectStateFlowId) Removes all the object states where objectStateFlowId = ? from the database.- Parameters:
objectStateFlowId
- the object state flow ID
-
countByObjectStateFlowId
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
ObjectState findByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) throws NoSuchObjectStateException Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or throws aNoSuchObjectStateException
if it could not be found.- Parameters:
listTypeEntryId
- the list type entry IDobjectStateFlowId
- the object state flow ID- Returns:
- the matching object state
- Throws:
NoSuchObjectStateException
- if a matching object state could not be found
-
fetchByLTEI_OSFI
Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returnsnull
if 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
null
if a matching object state could not be found
-
fetchByLTEI_OSFI
Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returnsnull
if 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
null
if a matching object state could not be found
-
removeByLTEI_OSFI
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
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
- Throws:
NoSuchObjectStateException
- if a object state with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the object state with the primary key or throws aNoSuchObjectStateException
if it could not be found.- Parameters:
objectStateId
- the primary key of the object state- Returns:
- the object state
- Throws:
NoSuchObjectStateException
- if a object state with the primary key could not be found
-
fetchByPrimaryKey
Returns the object state with the primary key or returnsnull
if it could not be found.- Parameters:
objectStateId
- the primary key of the object state- Returns:
- the object state, or
null
if a object state with the primary key could not be found
-
findAll
List<ObjectState> 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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
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 - 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 fromObjectStateModelImpl
.- 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
void removeAll()Removes all the object states from the database. -
countAll
int countAll()Returns the number of object states.- Returns:
- the number of object states
-