public class PasswordPolicyUtil
extends Object
com.liferay.portal.service.persistence.impl.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
Constructor and Description |
---|
PasswordPolicyUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(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,
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(String uuid,
long companyId)
Returns the number of password policies where uuid = ? and companyId = ?.
|
static int |
countByUuid(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 useFinderCache)
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,
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,
String name,
boolean useFinderCache)
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<PasswordPolicy> orderByComparator)
Returns the first password policy in the ordered set where companyId = ?.
|
static PasswordPolicy |
fetchByCompanyId_Last(long companyId,
OrderByComparator<PasswordPolicy> 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 Map<Serializable,PasswordPolicy> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static PasswordPolicy |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
|
static PasswordPolicy |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the last password policy in the ordered set where uuid = ? and companyId = ?.
|
static PasswordPolicy |
fetchByUuid_First(String uuid,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the first password policy in the ordered set where uuid = ?.
|
static PasswordPolicy |
fetchByUuid_Last(String uuid,
OrderByComparator<PasswordPolicy> 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(String uuid,
long companyId)
Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.
|
static int |
filterCountByUuid(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<PasswordPolicy> 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 List<PasswordPolicy> |
filterFindByCompanyId(long companyId)
Returns all the password policies that the user has permission to view where companyId = ?.
|
static 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 List<PasswordPolicy> |
filterFindByCompanyId(long companyId,
int start,
int end,
OrderByComparator<PasswordPolicy> 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,
String uuid,
long companyId,
OrderByComparator<PasswordPolicy> 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 List<PasswordPolicy> |
filterFindByUuid_C(String uuid,
long companyId)
Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?.
|
static List<PasswordPolicy> |
filterFindByUuid_C(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 List<PasswordPolicy> |
filterFindByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<PasswordPolicy> 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,
String uuid,
OrderByComparator<PasswordPolicy> 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 List<PasswordPolicy> |
filterFindByUuid(String uuid)
Returns all the password policies that the user has permission to view where uuid = ?.
|
static List<PasswordPolicy> |
filterFindByUuid(String uuid,
int start,
int end)
Returns a range of all the password policies that the user has permission to view where uuid = ?.
|
static List<PasswordPolicy> |
filterFindByUuid(String uuid,
int start,
int end,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns an ordered range of all the password policies that the user has permissions to view where uuid = ?.
|
static List<PasswordPolicy> |
findAll()
Returns all the password policies.
|
static List<PasswordPolicy> |
findAll(int start,
int end)
Returns a range of all the password policies.
|
static List<PasswordPolicy> |
findAll(int start,
int end,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns an ordered range of all the password policies.
|
static List<PasswordPolicy> |
findAll(int start,
int end,
OrderByComparator<PasswordPolicy> orderByComparator,
boolean useFinderCache)
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,
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<PasswordPolicy> orderByComparator)
Returns the first password policy in the ordered set where companyId = ?.
|
static PasswordPolicy |
findByCompanyId_Last(long companyId,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the last password policy in the ordered set where companyId = ?.
|
static PasswordPolicy[] |
findByCompanyId_PrevAndNext(long passwordPolicyId,
long companyId,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the password policies before and after the current password policy in the ordered set where companyId = ?.
|
static List<PasswordPolicy> |
findByCompanyId(long companyId)
Returns all the password policies where companyId = ?.
|
static List<PasswordPolicy> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the password policies where companyId = ?.
|
static List<PasswordPolicy> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns an ordered range of all the password policies where companyId = ?.
|
static List<PasswordPolicy> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<PasswordPolicy> orderByComparator,
boolean useFinderCache)
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(String uuid,
long companyId,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
|
static PasswordPolicy |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the last password policy in the ordered set where uuid = ? and companyId = ?.
|
static PasswordPolicy[] |
findByUuid_C_PrevAndNext(long passwordPolicyId,
String uuid,
long companyId,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the password policies before and after the current password policy in the ordered set where uuid = ? and companyId = ?.
|
static List<PasswordPolicy> |
findByUuid_C(String uuid,
long companyId)
Returns all the password policies where uuid = ? and companyId = ?.
|
static List<PasswordPolicy> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the password policies where uuid = ? and companyId = ?.
|
static List<PasswordPolicy> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns an ordered range of all the password policies where uuid = ? and companyId = ?.
|
static List<PasswordPolicy> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<PasswordPolicy> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the password policies where uuid = ? and companyId = ?.
|
static PasswordPolicy |
findByUuid_First(String uuid,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the first password policy in the ordered set where uuid = ?.
|
static PasswordPolicy |
findByUuid_Last(String uuid,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the last password policy in the ordered set where uuid = ?.
|
static PasswordPolicy[] |
findByUuid_PrevAndNext(long passwordPolicyId,
String uuid,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns the password policies before and after the current password policy in the ordered set where uuid = ?.
|
static List<PasswordPolicy> |
findByUuid(String uuid)
Returns all the password policies where uuid = ?.
|
static List<PasswordPolicy> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the password policies where uuid = ?.
|
static List<PasswordPolicy> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<PasswordPolicy> orderByComparator)
Returns an ordered range of all the password policies where uuid = ?.
|
static List<PasswordPolicy> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<PasswordPolicy> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the password policies where uuid = ?.
|
static List<PasswordPolicy> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<PasswordPolicy> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<PasswordPolicy> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<PasswordPolicy> 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,
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(String uuid,
long companyId)
Removes all the password policies where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(String uuid)
Removes all the password policies where uuid = ? from the database.
|
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)
public static Map<Serializable,PasswordPolicy> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator)
public static PasswordPolicy update(PasswordPolicy passwordPolicy)
public static PasswordPolicy update(PasswordPolicy passwordPolicy, ServiceContext serviceContext)
public static List<PasswordPolicy> findByUuid(String uuid)
uuid
- the uuidpublic static List<PasswordPolicy> findByUuid(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 PasswordPolicyModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of password policiesend
- the upper bound of the range of password policies (not inclusive)public static List<PasswordPolicy> findByUuid(String uuid, int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)public static List<PasswordPolicy> findByUuid(String uuid, int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static PasswordPolicy findByUuid_First(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPasswordPolicyException
- if a matching password policy could not be foundpublic static PasswordPolicy fetchByUuid_First(String uuid, OrderByComparator<PasswordPolicy> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching password policy could not be foundpublic static PasswordPolicy findByUuid_Last(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPasswordPolicyException
- if a matching password policy could not be foundpublic static PasswordPolicy fetchByUuid_Last(String uuid, OrderByComparator<PasswordPolicy> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching password policy could not be foundpublic static PasswordPolicy[] findByUuid_PrevAndNext(long passwordPolicyId, String uuid, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
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 foundpublic static List<PasswordPolicy> filterFindByUuid(String uuid)
uuid
- the uuidpublic static List<PasswordPolicy> filterFindByUuid(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 PasswordPolicyModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of password policiesend
- the upper bound of the range of password policies (not inclusive)public static List<PasswordPolicy> filterFindByUuid(String uuid, int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)public static PasswordPolicy[] filterFindByUuid_PrevAndNext(long passwordPolicyId, String uuid, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
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 foundpublic static void removeByUuid(String uuid)
uuid
- the uuidpublic static int countByUuid(String uuid)
uuid
- the uuidpublic static int filterCountByUuid(String uuid)
uuid
- the uuidpublic static List<PasswordPolicy> findByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<PasswordPolicy> findByUuid_C(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 PasswordPolicyModelImpl
.
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)public static List<PasswordPolicy> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)public static List<PasswordPolicy> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static PasswordPolicy findByUuid_C_First(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPasswordPolicyException
- if a matching password policy could not be foundpublic static PasswordPolicy fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching password policy could not be foundpublic static PasswordPolicy findByUuid_C_Last(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPasswordPolicyException
- if a matching password policy could not be foundpublic static PasswordPolicy fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching password policy could not be foundpublic static PasswordPolicy[] findByUuid_C_PrevAndNext(long passwordPolicyId, String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
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 foundpublic static List<PasswordPolicy> filterFindByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<PasswordPolicy> filterFindByUuid_C(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 PasswordPolicyModelImpl
.
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)public static List<PasswordPolicy> filterFindByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)public static PasswordPolicy[] filterFindByUuid_C_PrevAndNext(long passwordPolicyId, String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
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 foundpublic static void removeByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int filterCountByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<PasswordPolicy> findByCompanyId(long companyId)
companyId
- the company IDpublic static List<PasswordPolicy> findByCompanyId(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 PasswordPolicyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of password policiesend
- the upper bound of the range of password policies (not inclusive)public static List<PasswordPolicy> findByCompanyId(long companyId, int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)public static List<PasswordPolicy> findByCompanyId(long companyId, int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static PasswordPolicy findByCompanyId_First(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPasswordPolicyException
- if a matching password policy could not be foundpublic static PasswordPolicy fetchByCompanyId_First(long companyId, OrderByComparator<PasswordPolicy> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching password policy could not be foundpublic static PasswordPolicy findByCompanyId_Last(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPasswordPolicyException
- if a matching password policy could not be foundpublic static PasswordPolicy fetchByCompanyId_Last(long companyId, OrderByComparator<PasswordPolicy> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching password policy could not be foundpublic static PasswordPolicy[] findByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
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 foundpublic static List<PasswordPolicy> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static List<PasswordPolicy> filterFindByCompanyId(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 PasswordPolicyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of password policiesend
- the upper bound of the range of password policies (not inclusive)public static List<PasswordPolicy> filterFindByCompanyId(long companyId, int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)public static PasswordPolicy[] filterFindByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException
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 foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static PasswordPolicy findByC_DP(long companyId, boolean defaultPolicy) throws NoSuchPasswordPolicyException
NoSuchPasswordPolicyException
if it could not be found.companyId
- the company IDdefaultPolicy
- the default policyNoSuchPasswordPolicyException
- if a matching password policy could not be foundpublic static PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy)
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 foundpublic static PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDdefaultPolicy
- the default policyuseFinderCache
- whether to use the finder cachenull
if a matching password policy could not be foundpublic static PasswordPolicy removeByC_DP(long companyId, boolean defaultPolicy) throws NoSuchPasswordPolicyException
companyId
- the company IDdefaultPolicy
- the default policyNoSuchPasswordPolicyException
public static int countByC_DP(long companyId, boolean defaultPolicy)
companyId
- the company IDdefaultPolicy
- the default policypublic static PasswordPolicy findByC_N(long companyId, String name) throws NoSuchPasswordPolicyException
NoSuchPasswordPolicyException
if it could not be found.companyId
- the company IDname
- the nameNoSuchPasswordPolicyException
- if a matching password policy could not be foundpublic static PasswordPolicy fetchByC_N(long companyId, String name)
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 foundpublic static PasswordPolicy fetchByC_N(long companyId, String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching password policy could not be foundpublic static PasswordPolicy removeByC_N(long companyId, String name) throws NoSuchPasswordPolicyException
companyId
- the company IDname
- the nameNoSuchPasswordPolicyException
public static int countByC_N(long companyId, String name)
companyId
- the company IDname
- the namepublic static void cacheResult(PasswordPolicy passwordPolicy)
passwordPolicy
- the password policypublic static void cacheResult(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
passwordPolicyId
- the primary key of the password policyNoSuchPasswordPolicyException
- if a password policy with the primary key could not be foundpublic static PasswordPolicy updateImpl(PasswordPolicy passwordPolicy)
public static PasswordPolicy findByPrimaryKey(long passwordPolicyId) throws NoSuchPasswordPolicyException
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 foundpublic static PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
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 foundpublic static List<PasswordPolicy> findAll()
public static List<PasswordPolicy> 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 PasswordPolicyModelImpl
.
start
- the lower bound of the range of password policiesend
- the upper bound of the range of password policies (not inclusive)public static List<PasswordPolicy> findAll(int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)public static List<PasswordPolicy> findAll(int start, int end, OrderByComparator<PasswordPolicy> 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 PasswordPolicyModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static PasswordPolicyPersistence getPersistence()