public class ObjectStateFlowUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectStateFlowPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
ObjectStateFlowPersistence
Constructor and Description |
---|
ObjectStateFlowUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectStateFlow> objectStateFlows)
Caches the object state flows in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectStateFlow objectStateFlow)
Caches the object state flow in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectStateFlow objectStateFlow) |
static int |
countAll()
Returns the number of object state flows.
|
static int |
countByObjectFieldId(long objectFieldId)
Returns the number of object state flows where objectFieldId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object state flows where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object state flows where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectStateFlow |
create(long objectStateFlowId)
Creates a new object state flow with the primary key.
|
static ObjectStateFlow |
fetchByObjectFieldId(long objectFieldId)
Returns the object state flow where objectFieldId = ? or returns
null if it could not be found. |
static ObjectStateFlow |
fetchByObjectFieldId(long objectFieldId,
boolean useFinderCache)
Returns the object state flow where objectFieldId = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectStateFlow |
fetchByPrimaryKey(long objectStateFlowId)
Returns the object state flow with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectStateFlow> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectStateFlow |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the first object state flow in the ordered set where uuid = ? and companyId = ?.
|
static ObjectStateFlow |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the last object state flow in the ordered set where uuid = ? and companyId = ?.
|
static ObjectStateFlow |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the first object state flow in the ordered set where uuid = ?.
|
static ObjectStateFlow |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the last object state flow in the ordered set where uuid = ?.
|
static java.util.List<ObjectStateFlow> |
findAll()
Returns all the object state flows.
|
static java.util.List<ObjectStateFlow> |
findAll(int start,
int end)
Returns a range of all the object state flows.
|
static java.util.List<ObjectStateFlow> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns an ordered range of all the object state flows.
|
static java.util.List<ObjectStateFlow> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object state flows.
|
static ObjectStateFlow |
findByObjectFieldId(long objectFieldId)
Returns the object state flow where objectFieldId = ? or throws a
NoSuchObjectStateFlowException if it could not be found. |
static ObjectStateFlow |
findByPrimaryKey(long objectStateFlowId)
Returns the object state flow with the primary key or throws a
NoSuchObjectStateFlowException if it could not be found. |
static ObjectStateFlow |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the first object state flow in the ordered set where uuid = ? and companyId = ?.
|
static ObjectStateFlow |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the last object state flow in the ordered set where uuid = ? and companyId = ?.
|
static ObjectStateFlow[] |
findByUuid_C_PrevAndNext(long objectStateFlowId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the object state flows before and after the current object state flow in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectStateFlow> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object state flows where uuid = ? and companyId = ?.
|
static java.util.List<ObjectStateFlow> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object state flows where uuid = ? and companyId = ?.
|
static java.util.List<ObjectStateFlow> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns an ordered range of all the object state flows where uuid = ? and companyId = ?.
|
static java.util.List<ObjectStateFlow> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object state flows where uuid = ? and companyId = ?.
|
static ObjectStateFlow |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the first object state flow in the ordered set where uuid = ?.
|
static ObjectStateFlow |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the last object state flow in the ordered set where uuid = ?.
|
static ObjectStateFlow[] |
findByUuid_PrevAndNext(long objectStateFlowId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns the object state flows before and after the current object state flow in the ordered set where uuid = ?.
|
static java.util.List<ObjectStateFlow> |
findByUuid(java.lang.String uuid)
Returns all the object state flows where uuid = ?.
|
static java.util.List<ObjectStateFlow> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object state flows where uuid = ?.
|
static java.util.List<ObjectStateFlow> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
Returns an ordered range of all the object state flows where uuid = ?.
|
static java.util.List<ObjectStateFlow> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object state flows where uuid = ?.
|
static java.util.List<ObjectStateFlow> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectStateFlow> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectStateFlow> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) |
static ObjectStateFlowPersistence |
getPersistence() |
static ObjectStateFlow |
remove(long objectStateFlowId)
Removes the object state flow with the primary key from the database.
|
static void |
removeAll()
Removes all the object state flows from the database.
|
static ObjectStateFlow |
removeByObjectFieldId(long objectFieldId)
Removes the object state flow where objectFieldId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object state flows where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object state flows where uuid = ? from the database.
|
static void |
setPersistence(ObjectStateFlowPersistence persistence) |
static ObjectStateFlow |
update(ObjectStateFlow objectStateFlow) |
static ObjectStateFlow |
update(ObjectStateFlow objectStateFlow,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectStateFlow |
updateImpl(ObjectStateFlow objectStateFlow) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectStateFlow objectStateFlow)
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,ObjectStateFlow> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectStateFlow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectStateFlow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectStateFlow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectStateFlow update(ObjectStateFlow objectStateFlow)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectStateFlow update(ObjectStateFlow objectStateFlow, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectStateFlow> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectStateFlow> 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 ObjectStateFlowModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)public static java.util.List<ObjectStateFlow> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> 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 ObjectStateFlowModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectStateFlow> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> 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 ObjectStateFlowModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectStateFlow findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateFlowException
- if a matching object state flow could not be foundpublic static ObjectStateFlow fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state flow could not be foundpublic static ObjectStateFlow findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateFlowException
- if a matching object state flow could not be foundpublic static ObjectStateFlow fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state flow could not be foundpublic static ObjectStateFlow[] findByUuid_PrevAndNext(long objectStateFlowId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
objectStateFlowId
- the primary key of the current object state flowuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateFlowException
- if a object state flow 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<ObjectStateFlow> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectStateFlow> 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 ObjectStateFlowModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)public static java.util.List<ObjectStateFlow> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> 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 ObjectStateFlowModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectStateFlow> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> 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 ObjectStateFlowModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectStateFlow findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateFlowException
- if a matching object state flow could not be foundpublic static ObjectStateFlow fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state flow could not be foundpublic static ObjectStateFlow findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateFlowException
- if a matching object state flow could not be foundpublic static ObjectStateFlow fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object state flow could not be foundpublic static ObjectStateFlow[] findByUuid_C_PrevAndNext(long objectStateFlowId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> orderByComparator) throws NoSuchObjectStateFlowException
objectStateFlowId
- the primary key of the current object state flowuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectStateFlowException
- if a object state flow 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 ObjectStateFlow findByObjectFieldId(long objectFieldId) throws NoSuchObjectStateFlowException
NoSuchObjectStateFlowException
if it could not be found.objectFieldId
- the object field IDNoSuchObjectStateFlowException
- if a matching object state flow could not be foundpublic static ObjectStateFlow fetchByObjectFieldId(long objectFieldId)
null
if it could not be found. Uses the finder cache.objectFieldId
- the object field IDnull
if a matching object state flow could not be foundpublic static ObjectStateFlow fetchByObjectFieldId(long objectFieldId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.objectFieldId
- the object field IDuseFinderCache
- whether to use the finder cachenull
if a matching object state flow could not be foundpublic static ObjectStateFlow removeByObjectFieldId(long objectFieldId) throws NoSuchObjectStateFlowException
objectFieldId
- the object field IDNoSuchObjectStateFlowException
public static int countByObjectFieldId(long objectFieldId)
objectFieldId
- the object field IDpublic static void cacheResult(ObjectStateFlow objectStateFlow)
objectStateFlow
- the object state flowpublic static void cacheResult(java.util.List<ObjectStateFlow> objectStateFlows)
objectStateFlows
- the object state flowspublic static ObjectStateFlow create(long objectStateFlowId)
objectStateFlowId
- the primary key for the new object state flowpublic static ObjectStateFlow remove(long objectStateFlowId) throws NoSuchObjectStateFlowException
objectStateFlowId
- the primary key of the object state flowNoSuchObjectStateFlowException
- if a object state flow with the primary key could not be foundpublic static ObjectStateFlow updateImpl(ObjectStateFlow objectStateFlow)
public static ObjectStateFlow findByPrimaryKey(long objectStateFlowId) throws NoSuchObjectStateFlowException
NoSuchObjectStateFlowException
if it could not be found.objectStateFlowId
- the primary key of the object state flowNoSuchObjectStateFlowException
- if a object state flow with the primary key could not be foundpublic static ObjectStateFlow fetchByPrimaryKey(long objectStateFlowId)
null
if it could not be found.objectStateFlowId
- the primary key of the object state flownull
if a object state flow with the primary key could not be foundpublic static java.util.List<ObjectStateFlow> findAll()
public static java.util.List<ObjectStateFlow> 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 ObjectStateFlowModelImpl
.
start
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)public static java.util.List<ObjectStateFlow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> 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 ObjectStateFlowModelImpl
.
start
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectStateFlow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectStateFlow> 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 ObjectStateFlowModelImpl
.
start
- the lower bound of the range of object state flowsend
- the upper bound of the range of object state flows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static ObjectStateFlowPersistence getPersistence()
public static void setPersistence(ObjectStateFlowPersistence persistence)