public class ObjectActionUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectActionPersistenceImpl
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
ObjectActionPersistence
Constructor and Description |
---|
ObjectActionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectAction> objectActions)
Caches the object actions in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectAction objectAction)
Caches the object action in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectAction objectAction) |
static int |
countAll()
Returns the number of object actions.
|
static int |
countByO_A_OATK(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey)
Returns the number of object actions where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static int |
countByObjectDefinitionId(long objectDefinitionId)
Returns the number of object actions where objectDefinitionId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object actions where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object actions where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectAction |
create(long objectActionId)
Creates a new object action with the primary key.
|
static ObjectAction |
fetchByO_A_OATK_First(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the first object action in the ordered set where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static ObjectAction |
fetchByO_A_OATK_Last(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the last object action in the ordered set where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static ObjectAction |
fetchByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the first object action in the ordered set where objectDefinitionId = ?.
|
static ObjectAction |
fetchByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the last object action in the ordered set where objectDefinitionId = ?.
|
static ObjectAction |
fetchByPrimaryKey(long objectActionId)
Returns the object action with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectAction> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectAction |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the first object action in the ordered set where uuid = ? and companyId = ?.
|
static ObjectAction |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the last object action in the ordered set where uuid = ? and companyId = ?.
|
static ObjectAction |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the first object action in the ordered set where uuid = ?.
|
static ObjectAction |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the last object action in the ordered set where uuid = ?.
|
static java.util.List<ObjectAction> |
findAll()
Returns all the object actions.
|
static java.util.List<ObjectAction> |
findAll(int start,
int end)
Returns a range of all the object actions.
|
static java.util.List<ObjectAction> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns an ordered range of all the object actions.
|
static java.util.List<ObjectAction> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object actions.
|
static ObjectAction |
findByO_A_OATK_First(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the first object action in the ordered set where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static ObjectAction |
findByO_A_OATK_Last(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the last object action in the ordered set where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static ObjectAction[] |
findByO_A_OATK_PrevAndNext(long objectActionId,
long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the object actions before and after the current object action in the ordered set where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static java.util.List<ObjectAction> |
findByO_A_OATK(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey)
Returns all the object actions where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static java.util.List<ObjectAction> |
findByO_A_OATK(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey,
int start,
int end)
Returns a range of all the object actions where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static java.util.List<ObjectAction> |
findByO_A_OATK(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns an ordered range of all the object actions where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static java.util.List<ObjectAction> |
findByO_A_OATK(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object actions where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ?.
|
static ObjectAction |
findByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the first object action in the ordered set where objectDefinitionId = ?.
|
static ObjectAction |
findByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the last object action in the ordered set where objectDefinitionId = ?.
|
static ObjectAction[] |
findByObjectDefinitionId_PrevAndNext(long objectActionId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the object actions before and after the current object action in the ordered set where objectDefinitionId = ?.
|
static java.util.List<ObjectAction> |
findByObjectDefinitionId(long objectDefinitionId)
Returns all the object actions where objectDefinitionId = ?.
|
static java.util.List<ObjectAction> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end)
Returns a range of all the object actions where objectDefinitionId = ?.
|
static java.util.List<ObjectAction> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns an ordered range of all the object actions where objectDefinitionId = ?.
|
static java.util.List<ObjectAction> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object actions where objectDefinitionId = ?.
|
static ObjectAction |
findByPrimaryKey(long objectActionId)
Returns the object action with the primary key or throws a
NoSuchObjectActionException if it could not be found. |
static ObjectAction |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the first object action in the ordered set where uuid = ? and companyId = ?.
|
static ObjectAction |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the last object action in the ordered set where uuid = ? and companyId = ?.
|
static ObjectAction[] |
findByUuid_C_PrevAndNext(long objectActionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the object actions before and after the current object action in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectAction> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object actions where uuid = ? and companyId = ?.
|
static java.util.List<ObjectAction> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object actions where uuid = ? and companyId = ?.
|
static java.util.List<ObjectAction> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns an ordered range of all the object actions where uuid = ? and companyId = ?.
|
static java.util.List<ObjectAction> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object actions where uuid = ? and companyId = ?.
|
static ObjectAction |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the first object action in the ordered set where uuid = ?.
|
static ObjectAction |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the last object action in the ordered set where uuid = ?.
|
static ObjectAction[] |
findByUuid_PrevAndNext(long objectActionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns the object actions before and after the current object action in the ordered set where uuid = ?.
|
static java.util.List<ObjectAction> |
findByUuid(java.lang.String uuid)
Returns all the object actions where uuid = ?.
|
static java.util.List<ObjectAction> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object actions where uuid = ?.
|
static java.util.List<ObjectAction> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
Returns an ordered range of all the object actions where uuid = ?.
|
static java.util.List<ObjectAction> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object actions where uuid = ?.
|
static java.util.List<ObjectAction> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectAction> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectAction> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) |
static ObjectActionPersistence |
getPersistence() |
static ObjectAction |
remove(long objectActionId)
Removes the object action with the primary key from the database.
|
static void |
removeAll()
Removes all the object actions from the database.
|
static void |
removeByO_A_OATK(long objectDefinitionId,
boolean active,
java.lang.String objectActionTriggerKey)
Removes all the object actions where objectDefinitionId = ? and active = ? and objectActionTriggerKey = ? from the database.
|
static void |
removeByObjectDefinitionId(long objectDefinitionId)
Removes all the object actions where objectDefinitionId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object actions where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object actions where uuid = ? from the database.
|
static ObjectAction |
update(ObjectAction objectAction) |
static ObjectAction |
update(ObjectAction objectAction,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectAction |
updateImpl(ObjectAction objectAction) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectAction objectAction)
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,ObjectAction> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectAction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectAction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectAction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectAction update(ObjectAction objectAction)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectAction update(ObjectAction objectAction, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectAction> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectAction> 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 ObjectActionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)public static java.util.List<ObjectAction> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectAction> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectAction findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a matching object action could not be foundpublic static ObjectAction fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object action could not be foundpublic static ObjectAction findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a matching object action could not be foundpublic static ObjectAction fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object action could not be foundpublic static ObjectAction[] findByUuid_PrevAndNext(long objectActionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
objectActionId
- the primary key of the current object actionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a object action 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<ObjectAction> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectAction> 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 ObjectActionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)public static java.util.List<ObjectAction> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectAction> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectAction findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a matching object action could not be foundpublic static ObjectAction fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object action could not be foundpublic static ObjectAction findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a matching object action could not be foundpublic static ObjectAction fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object action could not be foundpublic static ObjectAction[] findByUuid_C_PrevAndNext(long objectActionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
objectActionId
- the primary key of the current object actionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a object action 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<ObjectAction> findByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectAction> findByObjectDefinitionId(long objectDefinitionId, 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 ObjectActionModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)public static java.util.List<ObjectAction> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectAction> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectAction findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a matching object action could not be foundpublic static ObjectAction fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object action could not be foundpublic static ObjectAction findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a matching object action could not be foundpublic static ObjectAction fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object action could not be foundpublic static ObjectAction[] findByObjectDefinitionId_PrevAndNext(long objectActionId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
objectActionId
- the primary key of the current object actionobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a object action with the primary key could not be foundpublic static void removeByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static int countByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectAction> findByO_A_OATK(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey)
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keypublic static java.util.List<ObjectAction> findByO_A_OATK(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey, 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 ObjectActionModelImpl
.
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keystart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)public static java.util.List<ObjectAction> findByO_A_OATK(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keystart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectAction> findByO_A_OATK(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keystart
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectAction findByO_A_OATK_First(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a matching object action could not be foundpublic static ObjectAction fetchByO_A_OATK_First(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object action could not be foundpublic static ObjectAction findByO_A_OATK_Last(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a matching object action could not be foundpublic static ObjectAction fetchByO_A_OATK_Last(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator)
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object action could not be foundpublic static ObjectAction[] findByO_A_OATK_PrevAndNext(long objectActionId, long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> orderByComparator) throws NoSuchObjectActionException
objectActionId
- the primary key of the current object actionobjectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectActionException
- if a object action with the primary key could not be foundpublic static void removeByO_A_OATK(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey)
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keypublic static int countByO_A_OATK(long objectDefinitionId, boolean active, java.lang.String objectActionTriggerKey)
objectDefinitionId
- the object definition IDactive
- the activeobjectActionTriggerKey
- the object action trigger keypublic static void cacheResult(ObjectAction objectAction)
objectAction
- the object actionpublic static void cacheResult(java.util.List<ObjectAction> objectActions)
objectActions
- the object actionspublic static ObjectAction create(long objectActionId)
objectActionId
- the primary key for the new object actionpublic static ObjectAction remove(long objectActionId) throws NoSuchObjectActionException
objectActionId
- the primary key of the object actionNoSuchObjectActionException
- if a object action with the primary key could not be foundpublic static ObjectAction updateImpl(ObjectAction objectAction)
public static ObjectAction findByPrimaryKey(long objectActionId) throws NoSuchObjectActionException
NoSuchObjectActionException
if it could not be found.objectActionId
- the primary key of the object actionNoSuchObjectActionException
- if a object action with the primary key could not be foundpublic static ObjectAction fetchByPrimaryKey(long objectActionId)
null
if it could not be found.objectActionId
- the primary key of the object actionnull
if a object action with the primary key could not be foundpublic static java.util.List<ObjectAction> findAll()
public static java.util.List<ObjectAction> 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 ObjectActionModelImpl
.
start
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)public static java.util.List<ObjectAction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
start
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectAction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectAction> 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 ObjectActionModelImpl
.
start
- the lower bound of the range of object actionsend
- the upper bound of the range of object actions (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 ObjectActionPersistence getPersistence()