public class ObjectValidationRuleUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectValidationRulePersistenceImpl
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
ObjectValidationRulePersistence
Constructor and Description |
---|
ObjectValidationRuleUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectValidationRule> objectValidationRules)
Caches the object validation rules in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectValidationRule objectValidationRule)
Caches the object validation rule in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectValidationRule objectValidationRule) |
static int |
countAll()
Returns the number of object validation rules.
|
static int |
countByObjectDefinitionId(long objectDefinitionId)
Returns the number of object validation rules where objectDefinitionId = ?.
|
static int |
countByODI_A(long objectDefinitionId,
boolean active)
Returns the number of object validation rules where objectDefinitionId = ? and active = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object validation rules where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object validation rules where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectValidationRule |
create(long objectValidationRuleId)
Creates a new object validation rule with the primary key.
|
static ObjectValidationRule |
fetchByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the first object validation rule in the ordered set where objectDefinitionId = ?.
|
static ObjectValidationRule |
fetchByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the last object validation rule in the ordered set where objectDefinitionId = ?.
|
static ObjectValidationRule |
fetchByODI_A_First(long objectDefinitionId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the first object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
|
static ObjectValidationRule |
fetchByODI_A_Last(long objectDefinitionId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the last object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
|
static ObjectValidationRule |
fetchByPrimaryKey(long objectValidationRuleId)
Returns the object validation rule with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectValidationRule> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectValidationRule |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the first object validation rule in the ordered set where uuid = ? and companyId = ?.
|
static ObjectValidationRule |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the last object validation rule in the ordered set where uuid = ? and companyId = ?.
|
static ObjectValidationRule |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the first object validation rule in the ordered set where uuid = ?.
|
static ObjectValidationRule |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the last object validation rule in the ordered set where uuid = ?.
|
static java.util.List<ObjectValidationRule> |
findAll()
Returns all the object validation rules.
|
static java.util.List<ObjectValidationRule> |
findAll(int start,
int end)
Returns a range of all the object validation rules.
|
static java.util.List<ObjectValidationRule> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns an ordered range of all the object validation rules.
|
static java.util.List<ObjectValidationRule> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object validation rules.
|
static ObjectValidationRule |
findByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the first object validation rule in the ordered set where objectDefinitionId = ?.
|
static ObjectValidationRule |
findByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the last object validation rule in the ordered set where objectDefinitionId = ?.
|
static ObjectValidationRule[] |
findByObjectDefinitionId_PrevAndNext(long objectValidationRuleId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the object validation rules before and after the current object validation rule in the ordered set where objectDefinitionId = ?.
|
static java.util.List<ObjectValidationRule> |
findByObjectDefinitionId(long objectDefinitionId)
Returns all the object validation rules where objectDefinitionId = ?.
|
static java.util.List<ObjectValidationRule> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end)
Returns a range of all the object validation rules where objectDefinitionId = ?.
|
static java.util.List<ObjectValidationRule> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns an ordered range of all the object validation rules where objectDefinitionId = ?.
|
static java.util.List<ObjectValidationRule> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object validation rules where objectDefinitionId = ?.
|
static ObjectValidationRule |
findByODI_A_First(long objectDefinitionId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the first object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
|
static ObjectValidationRule |
findByODI_A_Last(long objectDefinitionId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the last object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
|
static ObjectValidationRule[] |
findByODI_A_PrevAndNext(long objectValidationRuleId,
long objectDefinitionId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the object validation rules before and after the current object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
|
static java.util.List<ObjectValidationRule> |
findByODI_A(long objectDefinitionId,
boolean active)
Returns all the object validation rules where objectDefinitionId = ? and active = ?.
|
static java.util.List<ObjectValidationRule> |
findByODI_A(long objectDefinitionId,
boolean active,
int start,
int end)
Returns a range of all the object validation rules where objectDefinitionId = ? and active = ?.
|
static java.util.List<ObjectValidationRule> |
findByODI_A(long objectDefinitionId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns an ordered range of all the object validation rules where objectDefinitionId = ? and active = ?.
|
static java.util.List<ObjectValidationRule> |
findByODI_A(long objectDefinitionId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object validation rules where objectDefinitionId = ? and active = ?.
|
static ObjectValidationRule |
findByPrimaryKey(long objectValidationRuleId)
Returns the object validation rule with the primary key or throws a
NoSuchObjectValidationRuleException if it could not be found. |
static ObjectValidationRule |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the first object validation rule in the ordered set where uuid = ? and companyId = ?.
|
static ObjectValidationRule |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the last object validation rule in the ordered set where uuid = ? and companyId = ?.
|
static ObjectValidationRule[] |
findByUuid_C_PrevAndNext(long objectValidationRuleId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the object validation rules before and after the current object validation rule in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectValidationRule> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object validation rules where uuid = ? and companyId = ?.
|
static java.util.List<ObjectValidationRule> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object validation rules where uuid = ? and companyId = ?.
|
static java.util.List<ObjectValidationRule> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns an ordered range of all the object validation rules where uuid = ? and companyId = ?.
|
static java.util.List<ObjectValidationRule> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object validation rules where uuid = ? and companyId = ?.
|
static ObjectValidationRule |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the first object validation rule in the ordered set where uuid = ?.
|
static ObjectValidationRule |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the last object validation rule in the ordered set where uuid = ?.
|
static ObjectValidationRule[] |
findByUuid_PrevAndNext(long objectValidationRuleId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns the object validation rules before and after the current object validation rule in the ordered set where uuid = ?.
|
static java.util.List<ObjectValidationRule> |
findByUuid(java.lang.String uuid)
Returns all the object validation rules where uuid = ?.
|
static java.util.List<ObjectValidationRule> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object validation rules where uuid = ?.
|
static java.util.List<ObjectValidationRule> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
Returns an ordered range of all the object validation rules where uuid = ?.
|
static java.util.List<ObjectValidationRule> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object validation rules where uuid = ?.
|
static java.util.List<ObjectValidationRule> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectValidationRule> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectValidationRule> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) |
static ObjectValidationRulePersistence |
getPersistence() |
static ObjectValidationRule |
remove(long objectValidationRuleId)
Removes the object validation rule with the primary key from the database.
|
static void |
removeAll()
Removes all the object validation rules from the database.
|
static void |
removeByObjectDefinitionId(long objectDefinitionId)
Removes all the object validation rules where objectDefinitionId = ? from the database.
|
static void |
removeByODI_A(long objectDefinitionId,
boolean active)
Removes all the object validation rules where objectDefinitionId = ? and active = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object validation rules where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object validation rules where uuid = ? from the database.
|
static ObjectValidationRule |
update(ObjectValidationRule objectValidationRule) |
static ObjectValidationRule |
update(ObjectValidationRule objectValidationRule,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectValidationRule |
updateImpl(ObjectValidationRule objectValidationRule) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectValidationRule objectValidationRule)
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,ObjectValidationRule> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectValidationRule> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectValidationRule> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectValidationRule> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectValidationRule update(ObjectValidationRule objectValidationRule)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectValidationRule update(ObjectValidationRule objectValidationRule, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectValidationRule> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)public static java.util.List<ObjectValidationRule> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectValidationRule> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectValidationRule findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a matching object validation rule could not be foundpublic static ObjectValidationRule fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object validation rule could not be foundpublic static ObjectValidationRule findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a matching object validation rule could not be foundpublic static ObjectValidationRule fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object validation rule could not be foundpublic static ObjectValidationRule[] findByUuid_PrevAndNext(long objectValidationRuleId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
objectValidationRuleId
- the primary key of the current object validation ruleuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a object validation rule 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<ObjectValidationRule> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)public static java.util.List<ObjectValidationRule> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectValidationRule> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectValidationRule findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a matching object validation rule could not be foundpublic static ObjectValidationRule fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object validation rule could not be foundpublic static ObjectValidationRule findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a matching object validation rule could not be foundpublic static ObjectValidationRule fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object validation rule could not be foundpublic static ObjectValidationRule[] findByUuid_C_PrevAndNext(long objectValidationRuleId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
objectValidationRuleId
- the primary key of the current object validation ruleuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a object validation rule 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<ObjectValidationRule> findByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)public static java.util.List<ObjectValidationRule> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectValidationRule> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectValidationRule findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a matching object validation rule could not be foundpublic static ObjectValidationRule fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object validation rule could not be foundpublic static ObjectValidationRule findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a matching object validation rule could not be foundpublic static ObjectValidationRule fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object validation rule could not be foundpublic static ObjectValidationRule[] findByObjectDefinitionId_PrevAndNext(long objectValidationRuleId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
objectValidationRuleId
- the primary key of the current object validation ruleobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a object validation rule 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<ObjectValidationRule> findByODI_A(long objectDefinitionId, boolean active)
objectDefinitionId
- the object definition IDactive
- the activepublic static java.util.List<ObjectValidationRule> findByODI_A(long objectDefinitionId, boolean active, 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 ObjectValidationRuleModelImpl
.
objectDefinitionId
- the object definition IDactive
- the activestart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)public static java.util.List<ObjectValidationRule> findByODI_A(long objectDefinitionId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
objectDefinitionId
- the object definition IDactive
- the activestart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectValidationRule> findByODI_A(long objectDefinitionId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
objectDefinitionId
- the object definition IDactive
- the activestart
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectValidationRule findByODI_A_First(long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
objectDefinitionId
- the object definition IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a matching object validation rule could not be foundpublic static ObjectValidationRule fetchByODI_A_First(long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
objectDefinitionId
- the object definition IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object validation rule could not be foundpublic static ObjectValidationRule findByODI_A_Last(long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
objectDefinitionId
- the object definition IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a matching object validation rule could not be foundpublic static ObjectValidationRule fetchByODI_A_Last(long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
objectDefinitionId
- the object definition IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object validation rule could not be foundpublic static ObjectValidationRule[] findByODI_A_PrevAndNext(long objectValidationRuleId, long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
objectValidationRuleId
- the primary key of the current object validation ruleobjectDefinitionId
- the object definition IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectValidationRuleException
- if a object validation rule with the primary key could not be foundpublic static void removeByODI_A(long objectDefinitionId, boolean active)
objectDefinitionId
- the object definition IDactive
- the activepublic static int countByODI_A(long objectDefinitionId, boolean active)
objectDefinitionId
- the object definition IDactive
- the activepublic static void cacheResult(ObjectValidationRule objectValidationRule)
objectValidationRule
- the object validation rulepublic static void cacheResult(java.util.List<ObjectValidationRule> objectValidationRules)
objectValidationRules
- the object validation rulespublic static ObjectValidationRule create(long objectValidationRuleId)
objectValidationRuleId
- the primary key for the new object validation rulepublic static ObjectValidationRule remove(long objectValidationRuleId) throws NoSuchObjectValidationRuleException
objectValidationRuleId
- the primary key of the object validation ruleNoSuchObjectValidationRuleException
- if a object validation rule with the primary key could not be foundpublic static ObjectValidationRule updateImpl(ObjectValidationRule objectValidationRule)
public static ObjectValidationRule findByPrimaryKey(long objectValidationRuleId) throws NoSuchObjectValidationRuleException
NoSuchObjectValidationRuleException
if it could not be found.objectValidationRuleId
- the primary key of the object validation ruleNoSuchObjectValidationRuleException
- if a object validation rule with the primary key could not be foundpublic static ObjectValidationRule fetchByPrimaryKey(long objectValidationRuleId)
null
if it could not be found.objectValidationRuleId
- the primary key of the object validation rulenull
if a object validation rule with the primary key could not be foundpublic static java.util.List<ObjectValidationRule> findAll()
public static java.util.List<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
start
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)public static java.util.List<ObjectValidationRule> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
start
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectValidationRule> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> 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 ObjectValidationRuleModelImpl
.
start
- the lower bound of the range of object validation rulesend
- the upper bound of the range of object validation rules (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 ObjectValidationRulePersistence getPersistence()