@ProviderType
public class PasswordPolicyUtil
extends java.lang.Object
PasswordPolicyPersistenceImpl 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
PasswordPolicyPersistence,
PasswordPolicyPersistenceImpl| Constructor and Description |
|---|
PasswordPolicyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(java.util.List<PasswordPolicy> passwordPolicies)
Caches the password policies in the entity cache if it is enabled.
|
static void |
cacheResult(PasswordPolicy passwordPolicy)
Caches the password policy in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(PasswordPolicy passwordPolicy) |
static int |
countAll()
Returns the number of password policies.
|
static int |
countByC_DP(long companyId,
boolean defaultPolicy)
Returns the number of password policies where companyId = ? and defaultPolicy = ?.
|
static int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of password policies where companyId = ? and name = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of password policies where companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of password policies where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of password policies where uuid = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static PasswordPolicy |
create(long passwordPolicyId)
Creates a new password policy with the primary key.
|
static PasswordPolicy |
fetchByC_DP(long companyId,
boolean defaultPolicy)
Returns the password policy where companyId = ? and defaultPolicy = ? or returns
null if it could not be found. |
static PasswordPolicy |
fetchByC_DP(long companyId,
boolean defaultPolicy,
boolean retrieveFromCache)
Returns the password policy where companyId = ? and defaultPolicy = ? or returns
null if it could not be found, optionally using the finder cache. |
static PasswordPolicy |
fetchByC_N(long companyId,
java.lang.String name)
Returns the password policy where companyId = ? and name = ? or returns
null if it could not be found. |
static PasswordPolicy |
fetchByC_N(long companyId,
java.lang.String name,
boolean retrieveFromCache)
Returns the password policy where companyId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static PasswordPolicy |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first password policy in the ordered set where companyId = ?.
|
static PasswordPolicy |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last password policy in the ordered set where companyId = ?.
|
static PasswordPolicy |
fetchByPrimaryKey(long passwordPolicyId)
Returns the password policy with the primary key or returns
null if it could not be found. |
static PasswordPolicy |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
|
static PasswordPolicy |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last password policy in the ordered set where uuid = ? and companyId = ?.
|
static PasswordPolicy |
fetchByUuid_First(java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the first password policy in the ordered set where uuid = ?.
|
static PasswordPolicy |
fetchByUuid_Last(java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the last password policy in the ordered set where uuid = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of password policies that the user has permission to view where companyId = ?.
|
static int |
filterCountByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.
|
static int |
filterCountByUuid(java.lang.String uuid)
Returns the number of password policies that the user has permission to view where uuid = ?.
|
static PasswordPolicy[] |
filterFindByCompanyId_PrevAndNext(long passwordPolicyId,
long companyId,
OrderByComparator orderByComparator)
Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where companyId = ?.
|
static java.util.List<PasswordPolicy> |
filterFindByCompanyId(long companyId)
Returns all the password policies that the user has permission to view where companyId = ?.
|
static java.util.List<PasswordPolicy> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the password policies that the user has permission to view where companyId = ?.
|
static java.util.List<PasswordPolicy> |
filterFindByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the password policies that the user has permissions to view where companyId = ?.
|
static PasswordPolicy[] |
filterFindByUuid_C_PrevAndNext(long passwordPolicyId,
java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<PasswordPolicy> |
filterFindByUuid_C(java.lang.String uuid,
long companyId)
Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<PasswordPolicy> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the password policies that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<PasswordPolicy> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the password policies that the user has permissions to view where uuid = ? and companyId = ?.
|
static PasswordPolicy[] |
filterFindByUuid_PrevAndNext(long passwordPolicyId,
java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = ?.
|
static java.util.List<PasswordPolicy> |
filterFindByUuid(java.lang.String uuid)
Returns all the password policies that the user has permission to view where uuid = ?.
|
static java.util.List<PasswordPolicy> |
filterFindByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the password policies that the user has permission to view where uuid = ?.
|
static java.util.List<PasswordPolicy> |
filterFindByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the password policies that the user has permissions to view where uuid = ?.
|
static java.util.List<PasswordPolicy> |
findAll()
Returns all the password policies.
|
static java.util.List<PasswordPolicy> |
findAll(int start,
int end)
Returns a range of all the password policies.
|
static java.util.List<PasswordPolicy> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the password policies.
|
static PasswordPolicy |
findByC_DP(long companyId,
boolean defaultPolicy)
Returns the password policy where companyId = ? and defaultPolicy = ? or throws a
NoSuchPasswordPolicyException if it could not be found. |
static PasswordPolicy |
findByC_N(long companyId,
java.lang.String name)
Returns the password policy where companyId = ? and name = ? or throws a
NoSuchPasswordPolicyException if it could not be found. |
static PasswordPolicy |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first password policy in the ordered set where companyId = ?.
|
static PasswordPolicy |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last password policy in the ordered set where companyId = ?.
|
static PasswordPolicy[] |
findByCompanyId_PrevAndNext(long passwordPolicyId,
long companyId,
OrderByComparator orderByComparator)
Returns the password policies before and after the current password policy in the ordered set where companyId = ?.
|
static java.util.List<PasswordPolicy> |
findByCompanyId(long companyId)
Returns all the password policies where companyId = ?.
|
static java.util.List<PasswordPolicy> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the password policies where companyId = ?.
|
static java.util.List<PasswordPolicy> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the password policies where companyId = ?.
|
static PasswordPolicy |
findByPrimaryKey(long passwordPolicyId)
Returns the password policy with the primary key or throws a
NoSuchPasswordPolicyException if it could not be found. |
static PasswordPolicy |
findByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
|
static PasswordPolicy |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last password policy in the ordered set where uuid = ? and companyId = ?.
|
static PasswordPolicy[] |
findByUuid_C_PrevAndNext(long passwordPolicyId,
java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the password policies before and after the current password policy in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<PasswordPolicy> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the password policies where uuid = ? and companyId = ?.
|
static java.util.List<PasswordPolicy> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the password policies where uuid = ? and companyId = ?.
|
static java.util.List<PasswordPolicy> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the password policies where uuid = ? and companyId = ?.
|
static PasswordPolicy |
findByUuid_First(java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the first password policy in the ordered set where uuid = ?.
|
static PasswordPolicy |
findByUuid_Last(java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the last password policy in the ordered set where uuid = ?.
|
static PasswordPolicy[] |
findByUuid_PrevAndNext(long passwordPolicyId,
java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the password policies before and after the current password policy in the ordered set where uuid = ?.
|
static java.util.List<PasswordPolicy> |
findByUuid(java.lang.String uuid)
Returns all the password policies where uuid = ?.
|
static java.util.List<PasswordPolicy> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the password policies where uuid = ?.
|
static java.util.List<PasswordPolicy> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the password policies where uuid = ?.
|
static java.util.List<PasswordPolicy> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<PasswordPolicy> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<PasswordPolicy> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator) |
static PasswordPolicyPersistence |
getPersistence() |
static PasswordPolicy |
remove(long passwordPolicyId)
Removes the password policy with the primary key from the database.
|
static void |
removeAll()
Removes all the password policies from the database.
|
static PasswordPolicy |
removeByC_DP(long companyId,
boolean defaultPolicy)
Removes the password policy where companyId = ? and defaultPolicy = ? from the database.
|
static PasswordPolicy |
removeByC_N(long companyId,
java.lang.String name)
Removes the password policy where companyId = ? and name = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the password policies where companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the password policies where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the password policies where uuid = ? from the database.
|
void |
setPersistence(PasswordPolicyPersistence persistence)
Deprecated.
As of 6.2.0
|
static PasswordPolicy |
update(PasswordPolicy passwordPolicy) |
static PasswordPolicy |
update(PasswordPolicy passwordPolicy,
ServiceContext serviceContext) |
static PasswordPolicy |
updateImpl(PasswordPolicy passwordPolicy) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(PasswordPolicy passwordPolicy)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
public static java.util.List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
public static PasswordPolicy update(PasswordPolicy passwordPolicy) throws SystemException
public static PasswordPolicy update(PasswordPolicy passwordPolicy, ServiceContext serviceContext) throws SystemException
public static java.util.List<PasswordPolicy> findByUuid(java.lang.String uuid) throws SystemException
uuid - the uuidSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findByUuid(java.lang.String uuid, int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static PasswordPolicy findByUuid_First(java.lang.String uuid, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByUuid_First(java.lang.String uuid, OrderByComparator orderByComparator) throws SystemException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy findByUuid_Last(java.lang.String uuid, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByUuid_Last(java.lang.String uuid, OrderByComparator orderByComparator) throws SystemException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy[] findByUuid_PrevAndNext(long passwordPolicyId, java.lang.String uuid, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
passwordPolicyId - the primary key of the current password policyuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a password policy with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> filterFindByUuid(java.lang.String uuid) throws SystemException
uuid - the uuidSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> filterFindByUuid(java.lang.String uuid, int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> filterFindByUuid(java.lang.String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static PasswordPolicy[] filterFindByUuid_PrevAndNext(long passwordPolicyId, java.lang.String uuid, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
passwordPolicyId - the primary key of the current password policyuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a password policy with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByUuid(java.lang.String uuid)
throws SystemException
uuid - the uuidSystemException - if a system exception occurredpublic static int countByUuid(java.lang.String uuid)
throws SystemException
uuid - the uuidSystemException - if a system exception occurredpublic static int filterCountByUuid(java.lang.String uuid)
throws SystemException
uuid - the uuidSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findByUuid_C(java.lang.String uuid, long companyId) throws SystemException
uuid - the uuidcompanyId - the company IDSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findByUuid_C(java.lang.String uuid, long companyId, int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static PasswordPolicy findByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy findByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy[] findByUuid_C_PrevAndNext(long passwordPolicyId, java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
passwordPolicyId - the primary key of the current password policyuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a password policy with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> filterFindByUuid_C(java.lang.String uuid, long companyId) throws SystemException
uuid - the uuidcompanyId - the company IDSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static PasswordPolicy[] filterFindByUuid_C_PrevAndNext(long passwordPolicyId, java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
passwordPolicyId - the primary key of the current password policyuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a password policy with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByUuid_C(java.lang.String uuid,
long companyId)
throws SystemException
uuid - the uuidcompanyId - the company IDSystemException - if a system exception occurredpublic static int countByUuid_C(java.lang.String uuid,
long companyId)
throws SystemException
uuid - the uuidcompanyId - the company IDSystemException - if a system exception occurredpublic static int filterCountByUuid_C(java.lang.String uuid,
long companyId)
throws SystemException
uuid - the uuidcompanyId - the company IDSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findByCompanyId(long companyId) throws SystemException
companyId - the company IDSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findByCompanyId(long companyId, int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId - the company IDstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId - the company IDstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static PasswordPolicy findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy[] findByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
passwordPolicyId - the primary key of the current password policycompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a password policy with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> filterFindByCompanyId(long companyId) throws SystemException
companyId - the company IDSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> filterFindByCompanyId(long companyId, int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId - the company IDstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> filterFindByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId - the company IDstart - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static PasswordPolicy[] filterFindByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator orderByComparator) throws NoSuchPasswordPolicyException, SystemException
passwordPolicyId - the primary key of the current password policycompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPasswordPolicyException - if a password policy with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByCompanyId(long companyId)
throws SystemException
companyId - the company IDSystemException - if a system exception occurredpublic static int countByCompanyId(long companyId)
throws SystemException
companyId - the company IDSystemException - if a system exception occurredpublic static int filterCountByCompanyId(long companyId)
throws SystemException
companyId - the company IDSystemException - if a system exception occurredpublic static PasswordPolicy findByC_DP(long companyId, boolean defaultPolicy) throws NoSuchPasswordPolicyException, SystemException
NoSuchPasswordPolicyException if it could not be found.companyId - the company IDdefaultPolicy - the default policyNoSuchPasswordPolicyException - if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy) throws SystemException
null if it could not be found. Uses the finder cache.companyId - the company IDdefaultPolicy - the default policynull if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.companyId - the company IDdefaultPolicy - the default policyretrieveFromCache - whether to use the finder cachenull if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy removeByC_DP(long companyId, boolean defaultPolicy) throws NoSuchPasswordPolicyException, SystemException
companyId - the company IDdefaultPolicy - the default policySystemException - if a system exception occurredNoSuchPasswordPolicyExceptionpublic static int countByC_DP(long companyId,
boolean defaultPolicy)
throws SystemException
companyId - the company IDdefaultPolicy - the default policySystemException - if a system exception occurredpublic static PasswordPolicy findByC_N(long companyId, java.lang.String name) throws NoSuchPasswordPolicyException, SystemException
NoSuchPasswordPolicyException if it could not be found.companyId - the company IDname - the nameNoSuchPasswordPolicyException - if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByC_N(long companyId, java.lang.String name) throws SystemException
null if it could not be found. Uses the finder cache.companyId - the company IDname - the namenull if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByC_N(long companyId, java.lang.String name, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.companyId - the company IDname - the nameretrieveFromCache - whether to use the finder cachenull if a matching password policy could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy removeByC_N(long companyId, java.lang.String name) throws NoSuchPasswordPolicyException, SystemException
companyId - the company IDname - the nameSystemException - if a system exception occurredNoSuchPasswordPolicyExceptionpublic static int countByC_N(long companyId,
java.lang.String name)
throws SystemException
companyId - the company IDname - the nameSystemException - if a system exception occurredpublic static void cacheResult(PasswordPolicy passwordPolicy)
passwordPolicy - the password policypublic static void cacheResult(java.util.List<PasswordPolicy> passwordPolicies)
passwordPolicies - the password policiespublic static PasswordPolicy create(long passwordPolicyId)
passwordPolicyId - the primary key for the new password policypublic static PasswordPolicy remove(long passwordPolicyId) throws NoSuchPasswordPolicyException, SystemException
passwordPolicyId - the primary key of the password policyNoSuchPasswordPolicyException - if a password policy with the primary key could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy updateImpl(PasswordPolicy passwordPolicy) throws SystemException
SystemExceptionpublic static PasswordPolicy findByPrimaryKey(long passwordPolicyId) throws NoSuchPasswordPolicyException, SystemException
NoSuchPasswordPolicyException if it could not be found.passwordPolicyId - the primary key of the password policyNoSuchPasswordPolicyException - if a password policy with the primary key could not be foundSystemException - if a system exception occurredpublic static PasswordPolicy fetchByPrimaryKey(long passwordPolicyId) throws SystemException
null if it could not be found.passwordPolicyId - the primary key of the password policynull if a password policy with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findAll() throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findAll(int start, int end) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<PasswordPolicy> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static void removeAll()
throws SystemException
SystemException - if a system exception occurredpublic static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static PasswordPolicyPersistence getPersistence()
public void setPersistence(PasswordPolicyPersistence persistence)