public class ObjectStateUtil
extends java.lang.Object
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
ObjectStatePersistence
Constructor and Description |
---|
ObjectStateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectState> objectStates)
Caches the object states in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectState objectState)
Caches the object state in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectState objectState) |
static int |
countAll()
Returns the number of object states.
|
static int |
countByListTypeEntryId(long listTypeEntryId)
Returns the number of object states where listTypeEntryId = ?.
|
static int |
countByLTEI_OSFI(long listTypeEntryId,
long objectStateFlowId)
Returns the number of object states where listTypeEntryId = ? and objectStateFlowId = ?.
|
static int |
countByObjectStateFlowId(long objectStateFlowId)
Returns the number of object states where objectStateFlowId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object states where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object states where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectState |
create(long objectStateId)
Creates a new object state with the primary key.
|
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 = ?.
|
static ObjectState |
fetchByListTypeEntryId_Last(long listTypeEntryId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the last object state in the ordered set where listTypeEntryId = ?.
|
static ObjectState |
fetchByLTEI_OSFI(long listTypeEntryId,
long objectStateFlowId)
Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returns
null if it could not be found. |
static ObjectState |
fetchByLTEI_OSFI(long listTypeEntryId,
long objectStateFlowId,
boolean useFinderCache)
Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
static ObjectState |
fetchByObjectStateFlowId_Last(long objectStateFlowId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the last object state in the ordered set where objectStateFlowId = ?.
|
static ObjectState |
fetchByPrimaryKey(long objectStateId)
Returns the object state with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectState> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectState |
fetchByUuid_C_First(java.lang.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 ObjectState |
fetchByUuid_C_Last(java.lang.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 = ?.
|
static ObjectState |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the first object state in the ordered set where uuid = ?.
|
static ObjectState |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the last object state in the ordered set where uuid = ?.
|
static java.util.List<ObjectState> |
findAll()
Returns all the object states.
|
static java.util.List<ObjectState> |
findAll(int start,
int end)
Returns a range of all the object states.
|
static java.util.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 java.util.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 ObjectState |
findByListTypeEntryId_First(long listTypeEntryId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the first object state in the ordered set where listTypeEntryId = ?.
|
static ObjectState |
findByListTypeEntryId_Last(long listTypeEntryId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the last object state in the ordered set where listTypeEntryId = ?.
|
static ObjectState[] |
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 = ?.
|
static java.util.List<ObjectState> |
findByListTypeEntryId(long listTypeEntryId)
Returns all the object states where listTypeEntryId = ?.
|
static java.util.List<ObjectState> |
findByListTypeEntryId(long listTypeEntryId,
int start,
int end)
Returns a range of all the object states where listTypeEntryId = ?.
|
static java.util.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 java.util.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 ObjectState |
findByLTEI_OSFI(long listTypeEntryId,
long objectStateFlowId)
Returns the object state where listTypeEntryId = ? and objectStateFlowId = ? or throws a
NoSuchObjectStateException if it could not be found. |
static ObjectState |
findByObjectStateFlowId_First(long objectStateFlowId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the first object state in the ordered set where objectStateFlowId = ?.
|
static ObjectState |
findByObjectStateFlowId_Last(long objectStateFlowId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the last object state in the ordered set where objectStateFlowId = ?.
|
static ObjectState[] |
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 = ?.
|
static java.util.List<ObjectState> |
findByObjectStateFlowId(long objectStateFlowId)
Returns all the object states where objectStateFlowId = ?.
|
static java.util.List<ObjectState> |
findByObjectStateFlowId(long objectStateFlowId,
int start,
int end)
Returns a range of all the object states where objectStateFlowId = ?.
|
static java.util.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 java.util.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 ObjectState |
findByPrimaryKey(long objectStateId)
Returns the object state with the primary key or throws a
NoSuchObjectStateException if it could not be found. |
static ObjectState |
findByUuid_C_First(java.lang.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 ObjectState |
findByUuid_C_Last(java.lang.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 = ?.
|
static ObjectState[] |
findByUuid_C_PrevAndNext(long objectStateId,
java.lang.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 = ?.
|
static java.util.List<ObjectState> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object states where uuid = ? and companyId = ?.
|
static java.util.List<ObjectState> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object states where uuid = ? and companyId = ?.
|
static java.util.List<ObjectState> |
findByUuid_C(java.lang.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 java.util.List<ObjectState> |
findByUuid_C(java.lang.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 ObjectState |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the first object state in the ordered set where uuid = ?.
|
static ObjectState |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Returns the last object state in the ordered set where uuid = ?.
|
static ObjectState[] |
findByUuid_PrevAndNext(long objectStateId,
java.lang.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 = ?.
|
static java.util.List<ObjectState> |
findByUuid(java.lang.String uuid)
Returns all the object states where uuid = ?.
|
static java.util.List<ObjectState> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object states where uuid = ?.
|
static java.util.List<ObjectState> |
findByUuid(java.lang.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 java.util.List<ObjectState> |
findByUuid(java.lang.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 java.util.List<ObjectState> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectState> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectState> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) |
static ObjectStatePersistence |
getPersistence() |
static ObjectState |
remove(long objectStateId)
Removes the object state with the primary key from the database.
|
static void |
removeAll()
Removes all the object states from the database.
|
static void |
removeByListTypeEntryId(long listTypeEntryId)
Removes all the object states where listTypeEntryId = ? from the database.
|
static ObjectState |
removeByLTEI_OSFI(long listTypeEntryId,
long objectStateFlowId)
Removes the object state where listTypeEntryId = ? and objectStateFlowId = ? from the database.
|
static void |
removeByObjectStateFlowId(long objectStateFlowId)
Removes all the object states where objectStateFlowId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object states where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object states where uuid = ? from the database.
|
static void |
setPersistence(ObjectStatePersistence persistence) |
static ObjectState |
update(ObjectState objectState) |
static ObjectState |
update(ObjectState objectState,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectState |
updateImpl(ObjectState objectState) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectState objectState)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,ObjectState> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectState> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectState> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectState> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectState update(ObjectState objectState)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectState update(ObjectState objectState, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectState> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectState> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object statesend
- the upper bound of the range of object states (not inclusive)public static java.util.List<ObjectState> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)public static java.util.List<ObjectState> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectState findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a matching object state could not be foundpublic static ObjectState fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state could not be foundpublic static ObjectState findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a matching object state could not be foundpublic static ObjectState fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state could not be foundpublic static ObjectState[] findByUuid_PrevAndNext(long objectStateId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
objectStateId
- the primary key of the current object stateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a object state with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectState> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectState> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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)public static java.util.List<ObjectState> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)public static java.util.List<ObjectState> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectState findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a matching object state could not be foundpublic static ObjectState fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state could not be foundpublic static ObjectState findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a matching object state could not be foundpublic static ObjectState fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state could not be foundpublic static ObjectState[] findByUuid_C_PrevAndNext(long objectStateId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
objectStateId
- the primary key of the current object stateuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a object state with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectState> findByListTypeEntryId(long listTypeEntryId)
listTypeEntryId
- the list type entry IDpublic static java.util.List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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)public static java.util.List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)public static java.util.List<ObjectState> findByListTypeEntryId(long listTypeEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectState findByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
listTypeEntryId
- the list type entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a matching object state could not be foundpublic static ObjectState fetchByListTypeEntryId_First(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
listTypeEntryId
- the list type entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state could not be foundpublic static ObjectState findByListTypeEntryId_Last(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
listTypeEntryId
- the list type entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a matching object state could not be foundpublic static ObjectState fetchByListTypeEntryId_Last(long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
listTypeEntryId
- the list type entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state could not be foundpublic static ObjectState[] findByListTypeEntryId_PrevAndNext(long objectStateId, long listTypeEntryId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
objectStateId
- the primary key of the current object statelistTypeEntryId
- the list type entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a object state with the primary key could not be foundpublic static void removeByListTypeEntryId(long listTypeEntryId)
listTypeEntryId
- the list type entry IDpublic static int countByListTypeEntryId(long listTypeEntryId)
listTypeEntryId
- the list type entry IDpublic static java.util.List<ObjectState> findByObjectStateFlowId(long objectStateFlowId)
objectStateFlowId
- the object state flow IDpublic static java.util.List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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)public static java.util.List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)public static java.util.List<ObjectState> findByObjectStateFlowId(long objectStateFlowId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectState findByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
objectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a matching object state could not be foundpublic static ObjectState fetchByObjectStateFlowId_First(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
objectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state could not be foundpublic static ObjectState findByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
objectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a matching object state could not be foundpublic static ObjectState fetchByObjectStateFlowId_Last(long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
objectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state could not be foundpublic static ObjectState[] findByObjectStateFlowId_PrevAndNext(long objectStateId, long objectStateFlowId, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator) throws NoSuchObjectStateException
objectStateId
- the primary key of the current object stateobjectStateFlowId
- the object state flow IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateException
- if a object state with the primary key could not be foundpublic static void removeByObjectStateFlowId(long objectStateFlowId)
objectStateFlowId
- the object state flow IDpublic static int countByObjectStateFlowId(long objectStateFlowId)
objectStateFlowId
- the object state flow IDpublic static ObjectState findByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) throws NoSuchObjectStateException
NoSuchObjectStateException
if it could not be found.listTypeEntryId
- the list type entry IDobjectStateFlowId
- the object state flow IDNoSuchObjectStateException
- if a matching object state could not be foundpublic static ObjectState fetchByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId)
null
if it could not be found. Uses the finder cache.listTypeEntryId
- the list type entry IDobjectStateFlowId
- the object state flow IDnull
if a matching object state could not be foundpublic static ObjectState fetchByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.listTypeEntryId
- the list type entry IDobjectStateFlowId
- the object state flow IDuseFinderCache
- whether to use the finder cachenull
if a matching object state could not be foundpublic static ObjectState removeByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId) throws NoSuchObjectStateException
listTypeEntryId
- the list type entry IDobjectStateFlowId
- the object state flow IDNoSuchObjectStateException
public static int countByLTEI_OSFI(long listTypeEntryId, long objectStateFlowId)
listTypeEntryId
- the list type entry IDobjectStateFlowId
- the object state flow IDpublic static void cacheResult(ObjectState objectState)
objectState
- the object statepublic static void cacheResult(java.util.List<ObjectState> objectStates)
objectStates
- the object statespublic static ObjectState create(long objectStateId)
objectStateId
- the primary key for the new object statepublic static ObjectState remove(long objectStateId) throws NoSuchObjectStateException
objectStateId
- the primary key of the object stateNoSuchObjectStateException
- if a object state with the primary key could not be foundpublic static ObjectState updateImpl(ObjectState objectState)
public static ObjectState findByPrimaryKey(long objectStateId) throws NoSuchObjectStateException
NoSuchObjectStateException
if it could not be found.objectStateId
- the primary key of the object stateNoSuchObjectStateException
- if a object state with the primary key could not be foundpublic static ObjectState fetchByPrimaryKey(long objectStateId)
null
if it could not be found.objectStateId
- the primary key of the object statenull
if a object state with the primary key could not be foundpublic static java.util.List<ObjectState> findAll()
public static java.util.List<ObjectState> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
start
- the lower bound of the range of object statesend
- the upper bound of the range of object states (not inclusive)public static java.util.List<ObjectState> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)public static java.util.List<ObjectState> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectState> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectStateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static ObjectStatePersistence getPersistence()
public static void setPersistence(ObjectStatePersistence persistence)