Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Class PasswordPolicyPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<PasswordPolicy>
      extended by com.liferay.portal.service.persistence.PasswordPolicyPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<PasswordPolicy>, PasswordPolicyPersistence

public class PasswordPolicyPersistenceImpl
extends BasePersistenceImpl<PasswordPolicy>
implements PasswordPolicyPersistence

The persistence implementation for the password policy service.

Caching information and settings can be found in portal.properties

See Also:
PasswordPolicyPersistence, PasswordPolicyUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_DP
           
static FinderPath FINDER_PATH_COUNT_BY_C_N
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_FETCH_BY_C_DP
           
static FinderPath FINDER_PATH_FETCH_BY_C_N
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
PasswordPolicyPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the password policy persistence.
 void cacheResult(List<PasswordPolicy> passwordPolicies)
          Caches the password policies in the entity cache if it is enabled.
 void cacheResult(PasswordPolicy passwordPolicy)
          Caches the password policy in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(PasswordPolicy passwordPolicy)
           
 void clearCache()
          Clears the cache for all password policies.
 void clearCache(List<PasswordPolicy> passwordPolicies)
          Clears the cache for a List instances of this model.
 void clearCache(PasswordPolicy passwordPolicy)
          Clears the cache for the password policy.
protected  void clearUniqueFindersCache(PasswordPolicy passwordPolicy)
           
 int countAll()
          Returns the number of password policies.
 int countByC_DP(long companyId, boolean defaultPolicy)
          Returns the number of password policies where companyId = ? and defaultPolicy = ?.
 int countByC_N(long companyId, String name)
          Returns the number of password policies where companyId = ? and name = ?.
 int countByCompanyId(long companyId)
          Returns the number of password policies where companyId = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of password policies where uuid = ? and companyId = ?.
 int countByUuid(String uuid)
          Returns the number of password policies where uuid = ?.
 PasswordPolicy create(long passwordPolicyId)
          Creates a new password policy with the primary key.
 void destroy()
           
 PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy)
          Returns the password policy where companyId = ? and defaultPolicy = ? or returns null if it could not be found.
 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.
 PasswordPolicy fetchByC_N(long companyId, String name)
          Returns the password policy where companyId = ? and name = ? or returns null if it could not be found.
 PasswordPolicy fetchByC_N(long companyId, 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.
 PasswordPolicy fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where companyId = ?.
 PasswordPolicy fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where companyId = ?.
 PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
          Returns the password policy with the primary key or returns null if it could not be found.
 PasswordPolicy fetchByPrimaryKey(Serializable primaryKey)
          Returns the password policy with the primary key or returns null if it could not be found.
 PasswordPolicy fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
 PasswordPolicy fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where uuid = ? and companyId = ?.
 PasswordPolicy fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where uuid = ?.
 PasswordPolicy fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where uuid = ?.
 int filterCountByCompanyId(long companyId)
          Returns the number of password policies that the user has permission to view where companyId = ?.
 int filterCountByUuid_C(String uuid, long companyId)
          Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.
 int filterCountByUuid(String uuid)
          Returns the number of password policies that the user has permission to view where uuid = ?.
 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 = ?.
 List<PasswordPolicy> filterFindByCompanyId(long companyId)
          Returns all the password policies that the user has permission to view where companyId = ?.
 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 = ?.
 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 = ?.
 PasswordPolicy[] filterFindByUuid_C_PrevAndNext(long passwordPolicyId, 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 = ?.
 List<PasswordPolicy> filterFindByUuid_C(String uuid, long companyId)
          Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?.
 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 = ?.
 List<PasswordPolicy> filterFindByUuid_C(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 = ?.
 PasswordPolicy[] filterFindByUuid_PrevAndNext(long passwordPolicyId, 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 = ?.
 List<PasswordPolicy> filterFindByUuid(String uuid)
          Returns all the password policies that the user has permission to view where uuid = ?.
 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 = ?.
 List<PasswordPolicy> filterFindByUuid(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 = ?.
protected  PasswordPolicy filterGetByCompanyId_PrevAndNext(Session session, PasswordPolicy passwordPolicy, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  PasswordPolicy filterGetByUuid_C_PrevAndNext(Session session, PasswordPolicy passwordPolicy, String uuid, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  PasswordPolicy filterGetByUuid_PrevAndNext(Session session, PasswordPolicy passwordPolicy, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 List<PasswordPolicy> findAll()
          Returns all the password policies.
 List<PasswordPolicy> findAll(int start, int end)
          Returns a range of all the password policies.
 List<PasswordPolicy> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies.
 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.
 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.
 PasswordPolicy findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where companyId = ?.
 PasswordPolicy findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where companyId = ?.
 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 = ?.
 List<PasswordPolicy> findByCompanyId(long companyId)
          Returns all the password policies where companyId = ?.
 List<PasswordPolicy> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the password policies where companyId = ?.
 List<PasswordPolicy> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies where companyId = ?.
 PasswordPolicy findByPrimaryKey(long passwordPolicyId)
          Returns the password policy with the primary key or throws a NoSuchPasswordPolicyException if it could not be found.
 PasswordPolicy findByPrimaryKey(Serializable primaryKey)
          Returns the password policy with the primary key or throws a NoSuchModelException if it could not be found.
 PasswordPolicy findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
 PasswordPolicy findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where uuid = ? and companyId = ?.
 PasswordPolicy[] findByUuid_C_PrevAndNext(long passwordPolicyId, 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 = ?.
 List<PasswordPolicy> findByUuid_C(String uuid, long companyId)
          Returns all the password policies where uuid = ? and companyId = ?.
 List<PasswordPolicy> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the password policies where uuid = ? and companyId = ?.
 List<PasswordPolicy> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies where uuid = ? and companyId = ?.
 PasswordPolicy findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where uuid = ?.
 PasswordPolicy findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where uuid = ?.
 PasswordPolicy[] findByUuid_PrevAndNext(long passwordPolicyId, String uuid, OrderByComparator orderByComparator)
          Returns the password policies before and after the current password policy in the ordered set where uuid = ?.
 List<PasswordPolicy> findByUuid(String uuid)
          Returns all the password policies where uuid = ?.
 List<PasswordPolicy> findByUuid(String uuid, int start, int end)
          Returns a range of all the password policies where uuid = ?.
 List<PasswordPolicy> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies where uuid = ?.
protected  Set<String> getBadColumnNames()
           
protected  PasswordPolicy getByCompanyId_PrevAndNext(Session session, PasswordPolicy passwordPolicy, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  PasswordPolicy getByUuid_C_PrevAndNext(Session session, PasswordPolicy passwordPolicy, String uuid, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  PasswordPolicy getByUuid_PrevAndNext(Session session, PasswordPolicy passwordPolicy, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 PasswordPolicy remove(long passwordPolicyId)
          Removes the password policy with the primary key from the database.
 PasswordPolicy remove(Serializable primaryKey)
          Removes the password policy with the primary key from the database.
 void removeAll()
          Removes all the password policies from the database.
 PasswordPolicy removeByC_DP(long companyId, boolean defaultPolicy)
          Removes the password policy where companyId = ? and defaultPolicy = ? from the database.
 PasswordPolicy removeByC_N(long companyId, String name)
          Removes the password policy where companyId = ? and name = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the password policies where companyId = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the password policies where uuid = ? and companyId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the password policies where uuid = ? from the database.
protected  PasswordPolicy removeImpl(PasswordPolicy passwordPolicy)
          Removes the model instance from the database.
protected  PasswordPolicy toUnwrappedModel(PasswordPolicy passwordPolicy)
           
 PasswordPolicy updateImpl(PasswordPolicy passwordPolicy)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FETCH_BY_C_DP

public static final FinderPath FINDER_PATH_FETCH_BY_C_DP

FINDER_PATH_COUNT_BY_C_DP

public static final FinderPath FINDER_PATH_COUNT_BY_C_DP

FINDER_PATH_FETCH_BY_C_N

public static final FinderPath FINDER_PATH_FETCH_BY_C_N

FINDER_PATH_COUNT_BY_C_N

public static final FinderPath FINDER_PATH_COUNT_BY_C_N
Constructor Detail

PasswordPolicyPersistenceImpl

public PasswordPolicyPersistenceImpl()
Method Detail

findByUuid

public List<PasswordPolicy> findByUuid(String uuid)
                                throws SystemException
Returns all the password policies where uuid = ?.

Specified by:
findByUuid in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
Returns:
the matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid

public List<PasswordPolicy> findByUuid(String uuid,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the password policies where uuid = ?.

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.

Specified by:
findByUuid in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid

public List<PasswordPolicy> findByUuid(String uuid,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the password policies where uuid = ?.

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.

Specified by:
findByUuid in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid_First

public PasswordPolicy findByUuid_First(String uuid,
                                       OrderByComparator orderByComparator)
                                throws NoSuchPasswordPolicyException,
                                       SystemException
Returns the first password policy in the ordered set where uuid = ?.

Specified by:
findByUuid_First in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByUuid_First

public PasswordPolicy fetchByUuid_First(String uuid,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first password policy in the ordered set where uuid = ?.

Specified by:
fetchByUuid_First in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

public PasswordPolicy findByUuid_Last(String uuid,
                                      OrderByComparator orderByComparator)
                               throws NoSuchPasswordPolicyException,
                                      SystemException
Returns the last password policy in the ordered set where uuid = ?.

Specified by:
findByUuid_Last in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

public PasswordPolicy fetchByUuid_Last(String uuid,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last password policy in the ordered set where uuid = ?.

Specified by:
fetchByUuid_Last in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public PasswordPolicy[] findByUuid_PrevAndNext(long passwordPolicyId,
                                               String uuid,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchPasswordPolicyException,
                                               SystemException
Returns the password policies before and after the current password policy in the ordered set where uuid = ?.

Specified by:
findByUuid_PrevAndNext in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key of the current password policy
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

getByUuid_PrevAndNext

protected PasswordPolicy getByUuid_PrevAndNext(Session session,
                                               PasswordPolicy passwordPolicy,
                                               String uuid,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

filterFindByUuid

public List<PasswordPolicy> filterFindByUuid(String uuid)
                                      throws SystemException
Returns all the password policies that the user has permission to view where uuid = ?.

Specified by:
filterFindByUuid in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
Returns:
the matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid

public List<PasswordPolicy> filterFindByUuid(String uuid,
                                             int start,
                                             int end)
                                      throws SystemException
Returns a range of all the password policies that the user has permission to view where uuid = ?.

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.

Specified by:
filterFindByUuid in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid

public List<PasswordPolicy> filterFindByUuid(String uuid,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the password policies that the user has permissions to view where uuid = ?.

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.

Specified by:
filterFindByUuid in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid_PrevAndNext

public PasswordPolicy[] filterFindByUuid_PrevAndNext(long passwordPolicyId,
                                                     String uuid,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchPasswordPolicyException,
                                                     SystemException
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 = ?.

Specified by:
filterFindByUuid_PrevAndNext in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key of the current password policy
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

filterGetByUuid_PrevAndNext

protected PasswordPolicy filterGetByUuid_PrevAndNext(Session session,
                                                     PasswordPolicy passwordPolicy,
                                                     String uuid,
                                                     OrderByComparator orderByComparator,
                                                     boolean previous)

removeByUuid

public void removeByUuid(String uuid)
                  throws SystemException
Removes all the password policies where uuid = ? from the database.

Specified by:
removeByUuid in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

public int countByUuid(String uuid)
                throws SystemException
Returns the number of password policies where uuid = ?.

Specified by:
countByUuid in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

filterCountByUuid

public int filterCountByUuid(String uuid)
                      throws SystemException
Returns the number of password policies that the user has permission to view where uuid = ?.

Specified by:
filterCountByUuid in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<PasswordPolicy> findByUuid_C(String uuid,
                                         long companyId)
                                  throws SystemException
Returns all the password policies where uuid = ? and companyId = ?.

Specified by:
findByUuid_C in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<PasswordPolicy> findByUuid_C(String uuid,
                                         long companyId,
                                         int start,
                                         int end)
                                  throws SystemException
Returns a range of all the password policies where uuid = ? and companyId = ?.

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.

Specified by:
findByUuid_C in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<PasswordPolicy> findByUuid_C(String uuid,
                                         long companyId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the password policies where uuid = ? and companyId = ?.

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.

Specified by:
findByUuid_C in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid_C_First

public PasswordPolicy findByUuid_C_First(String uuid,
                                         long companyId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchPasswordPolicyException,
                                         SystemException
Returns the first password policy in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_First in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByUuid_C_First

public PasswordPolicy fetchByUuid_C_First(String uuid,
                                          long companyId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns the first password policy in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_First in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_Last

public PasswordPolicy findByUuid_C_Last(String uuid,
                                        long companyId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchPasswordPolicyException,
                                        SystemException
Returns the last password policy in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_Last in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByUuid_C_Last

public PasswordPolicy fetchByUuid_C_Last(String uuid,
                                         long companyId,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns the last password policy in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_Last in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_PrevAndNext

public PasswordPolicy[] findByUuid_C_PrevAndNext(long passwordPolicyId,
                                                 String uuid,
                                                 long companyId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchPasswordPolicyException,
                                                 SystemException
Returns the password policies before and after the current password policy in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_PrevAndNext in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key of the current password policy
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

getByUuid_C_PrevAndNext

protected PasswordPolicy getByUuid_C_PrevAndNext(Session session,
                                                 PasswordPolicy passwordPolicy,
                                                 String uuid,
                                                 long companyId,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

filterFindByUuid_C

public List<PasswordPolicy> filterFindByUuid_C(String uuid,
                                               long companyId)
                                        throws SystemException
Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?.

Specified by:
filterFindByUuid_C in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid_C

public List<PasswordPolicy> filterFindByUuid_C(String uuid,
                                               long companyId,
                                               int start,
                                               int end)
                                        throws SystemException
Returns a range of all the password policies that the user has permission to view where uuid = ? and companyId = ?.

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.

Specified by:
filterFindByUuid_C in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid_C

public List<PasswordPolicy> filterFindByUuid_C(String uuid,
                                               long companyId,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the password policies that the user has permissions to view where uuid = ? and companyId = ?.

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.

Specified by:
filterFindByUuid_C in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid_C_PrevAndNext

public PasswordPolicy[] filterFindByUuid_C_PrevAndNext(long passwordPolicyId,
                                                       String uuid,
                                                       long companyId,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchPasswordPolicyException,
                                                       SystemException
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 = ?.

Specified by:
filterFindByUuid_C_PrevAndNext in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key of the current password policy
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

filterGetByUuid_C_PrevAndNext

protected PasswordPolicy filterGetByUuid_C_PrevAndNext(Session session,
                                                       PasswordPolicy passwordPolicy,
                                                       String uuid,
                                                       long companyId,
                                                       OrderByComparator orderByComparator,
                                                       boolean previous)

removeByUuid_C

public void removeByUuid_C(String uuid,
                           long companyId)
                    throws SystemException
Removes all the password policies where uuid = ? and companyId = ? from the database.

Specified by:
removeByUuid_C in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

public int countByUuid_C(String uuid,
                         long companyId)
                  throws SystemException
Returns the number of password policies where uuid = ? and companyId = ?.

Specified by:
countByUuid_C in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

filterCountByUuid_C

public int filterCountByUuid_C(String uuid,
                               long companyId)
                        throws SystemException
Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.

Specified by:
filterCountByUuid_C in interface PasswordPolicyPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<PasswordPolicy> findByCompanyId(long companyId)
                                     throws SystemException
Returns all the password policies where companyId = ?.

Specified by:
findByCompanyId in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
Returns:
the matching password policies
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<PasswordPolicy> findByCompanyId(long companyId,
                                            int start,
                                            int end)
                                     throws SystemException
Returns a range of all the password policies where companyId = ?.

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.

Specified by:
findByCompanyId in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of matching password policies
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<PasswordPolicy> findByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the password policies where companyId = ?.

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.

Specified by:
findByCompanyId in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public PasswordPolicy findByCompanyId_First(long companyId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchPasswordPolicyException,
                                            SystemException
Returns the first password policy in the ordered set where companyId = ?.

Specified by:
findByCompanyId_First in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

public PasswordPolicy fetchByCompanyId_First(long companyId,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first password policy in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_First in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

public PasswordPolicy findByCompanyId_Last(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchPasswordPolicyException,
                                           SystemException
Returns the last password policy in the ordered set where companyId = ?.

Specified by:
findByCompanyId_Last in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

public PasswordPolicy fetchByCompanyId_Last(long companyId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last password policy in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_Last in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public PasswordPolicy[] findByCompanyId_PrevAndNext(long passwordPolicyId,
                                                    long companyId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchPasswordPolicyException,
                                                    SystemException
Returns the password policies before and after the current password policy in the ordered set where companyId = ?.

Specified by:
findByCompanyId_PrevAndNext in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key of the current password policy
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected PasswordPolicy getByCompanyId_PrevAndNext(Session session,
                                                    PasswordPolicy passwordPolicy,
                                                    long companyId,
                                                    OrderByComparator orderByComparator,
                                                    boolean previous)

filterFindByCompanyId

public List<PasswordPolicy> filterFindByCompanyId(long companyId)
                                           throws SystemException
Returns all the password policies that the user has permission to view where companyId = ?.

Specified by:
filterFindByCompanyId in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
Returns:
the matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByCompanyId

public List<PasswordPolicy> filterFindByCompanyId(long companyId,
                                                  int start,
                                                  int end)
                                           throws SystemException
Returns a range of all the password policies that the user has permission to view where companyId = ?.

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.

Specified by:
filterFindByCompanyId in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByCompanyId

public List<PasswordPolicy> filterFindByCompanyId(long companyId,
                                                  int start,
                                                  int end,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Returns an ordered range of all the password policies that the user has permissions to view where companyId = ?.

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.

Specified by:
filterFindByCompanyId in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByCompanyId_PrevAndNext

public PasswordPolicy[] filterFindByCompanyId_PrevAndNext(long passwordPolicyId,
                                                          long companyId,
                                                          OrderByComparator orderByComparator)
                                                   throws NoSuchPasswordPolicyException,
                                                          SystemException
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 = ?.

Specified by:
filterFindByCompanyId_PrevAndNext in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key of the current password policy
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

filterGetByCompanyId_PrevAndNext

protected PasswordPolicy filterGetByCompanyId_PrevAndNext(Session session,
                                                          PasswordPolicy passwordPolicy,
                                                          long companyId,
                                                          OrderByComparator orderByComparator,
                                                          boolean previous)

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the password policies where companyId = ? from the database.

Specified by:
removeByCompanyId in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws SystemException
Returns the number of password policies where companyId = ?.

Specified by:
countByCompanyId in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

filterCountByCompanyId

public int filterCountByCompanyId(long companyId)
                           throws SystemException
Returns the number of password policies that the user has permission to view where companyId = ?.

Specified by:
filterCountByCompanyId in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByC_DP

public PasswordPolicy findByC_DP(long companyId,
                                 boolean defaultPolicy)
                          throws NoSuchPasswordPolicyException,
                                 SystemException
Returns the password policy where companyId = ? and defaultPolicy = ? or throws a NoSuchPasswordPolicyException if it could not be found.

Specified by:
findByC_DP in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
defaultPolicy - the default policy
Returns:
the matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByC_DP

public PasswordPolicy fetchByC_DP(long companyId,
                                  boolean defaultPolicy)
                           throws SystemException
Returns the password policy where companyId = ? and defaultPolicy = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_DP in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
defaultPolicy - the default policy
Returns:
the matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_DP

public PasswordPolicy fetchByC_DP(long companyId,
                                  boolean defaultPolicy,
                                  boolean retrieveFromCache)
                           throws SystemException
Returns the password policy where companyId = ? and defaultPolicy = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_DP in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
defaultPolicy - the default policy
retrieveFromCache - whether to use the finder cache
Returns:
the matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

removeByC_DP

public PasswordPolicy removeByC_DP(long companyId,
                                   boolean defaultPolicy)
                            throws NoSuchPasswordPolicyException,
                                   SystemException
Removes the password policy where companyId = ? and defaultPolicy = ? from the database.

Specified by:
removeByC_DP in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
defaultPolicy - the default policy
Returns:
the password policy that was removed
Throws:
SystemException - if a system exception occurred
NoSuchPasswordPolicyException

countByC_DP

public int countByC_DP(long companyId,
                       boolean defaultPolicy)
                throws SystemException
Returns the number of password policies where companyId = ? and defaultPolicy = ?.

Specified by:
countByC_DP in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
defaultPolicy - the default policy
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

findByC_N

public PasswordPolicy findByC_N(long companyId,
                                String name)
                         throws NoSuchPasswordPolicyException,
                                SystemException
Returns the password policy where companyId = ? and name = ? or throws a NoSuchPasswordPolicyException if it could not be found.

Specified by:
findByC_N in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByC_N

public PasswordPolicy fetchByC_N(long companyId,
                                 String name)
                          throws SystemException
Returns the password policy where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_N in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_N

public PasswordPolicy fetchByC_N(long companyId,
                                 String name,
                                 boolean retrieveFromCache)
                          throws SystemException
Returns the password policy where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_N in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

removeByC_N

public PasswordPolicy removeByC_N(long companyId,
                                  String name)
                           throws NoSuchPasswordPolicyException,
                                  SystemException
Removes the password policy where companyId = ? and name = ? from the database.

Specified by:
removeByC_N in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the password policy that was removed
Throws:
SystemException - if a system exception occurred
NoSuchPasswordPolicyException

countByC_N

public int countByC_N(long companyId,
                      String name)
               throws SystemException
Returns the number of password policies where companyId = ? and name = ?.

Specified by:
countByC_N in interface PasswordPolicyPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

cacheResult

public void cacheResult(PasswordPolicy passwordPolicy)
Caches the password policy in the entity cache if it is enabled.

Specified by:
cacheResult in interface PasswordPolicyPersistence
Parameters:
passwordPolicy - the password policy

cacheResult

public void cacheResult(List<PasswordPolicy> passwordPolicies)
Caches the password policies in the entity cache if it is enabled.

Specified by:
cacheResult in interface PasswordPolicyPersistence
Parameters:
passwordPolicies - the password policies

clearCache

public void clearCache()
Clears the cache for all password policies.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<PasswordPolicy>
Overrides:
clearCache in class BasePersistenceImpl<PasswordPolicy>

clearCache

public void clearCache(PasswordPolicy passwordPolicy)
Clears the cache for the password policy.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<PasswordPolicy>
Overrides:
clearCache in class BasePersistenceImpl<PasswordPolicy>
Parameters:
passwordPolicy - the instance of this model to clear the cache for

clearCache

public void clearCache(List<PasswordPolicy> passwordPolicies)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<PasswordPolicy>
Overrides:
clearCache in class BasePersistenceImpl<PasswordPolicy>
Parameters:
passwordPolicies - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(PasswordPolicy passwordPolicy)

clearUniqueFindersCache

protected void clearUniqueFindersCache(PasswordPolicy passwordPolicy)

create

public PasswordPolicy create(long passwordPolicyId)
Creates a new password policy with the primary key. Does not add the password policy to the database.

Specified by:
create in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key for the new password policy
Returns:
the new password policy

remove

public PasswordPolicy remove(long passwordPolicyId)
                      throws NoSuchPasswordPolicyException,
                             SystemException
Removes the password policy with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key of the password policy
Returns:
the password policy that was removed
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

remove

public PasswordPolicy remove(Serializable primaryKey)
                      throws NoSuchPasswordPolicyException,
                             SystemException
Removes the password policy with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<PasswordPolicy>
Overrides:
remove in class BasePersistenceImpl<PasswordPolicy>
Parameters:
primaryKey - the primary key of the password policy
Returns:
the password policy that was removed
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected PasswordPolicy removeImpl(PasswordPolicy passwordPolicy)
                             throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<PasswordPolicy>
Parameters:
passwordPolicy - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public PasswordPolicy updateImpl(PasswordPolicy passwordPolicy)
                          throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface PasswordPolicyPersistence
Overrides:
updateImpl in class BasePersistenceImpl<PasswordPolicy>
Parameters:
passwordPolicy - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected PasswordPolicy toUnwrappedModel(PasswordPolicy passwordPolicy)

findByPrimaryKey

public PasswordPolicy findByPrimaryKey(Serializable primaryKey)
                                throws NoSuchPasswordPolicyException,
                                       SystemException
Returns the password policy with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<PasswordPolicy>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<PasswordPolicy>
Parameters:
primaryKey - the primary key of the password policy
Returns:
the password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public PasswordPolicy findByPrimaryKey(long passwordPolicyId)
                                throws NoSuchPasswordPolicyException,
                                       SystemException
Returns the password policy with the primary key or throws a NoSuchPasswordPolicyException if it could not be found.

Specified by:
findByPrimaryKey in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key of the password policy
Returns:
the password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public PasswordPolicy fetchByPrimaryKey(Serializable primaryKey)
                                 throws SystemException
Returns the password policy with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<PasswordPolicy>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<PasswordPolicy>
Parameters:
primaryKey - the primary key of the password policy
Returns:
the password policy, or null if a password policy with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
                                 throws SystemException
Returns the password policy with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface PasswordPolicyPersistence
Parameters:
passwordPolicyId - the primary key of the password policy
Returns:
the password policy, or null if a password policy with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<PasswordPolicy> findAll()
                             throws SystemException
Returns all the password policies.

Specified by:
findAll in interface PasswordPolicyPersistence
Returns:
the password policies
Throws:
SystemException - if a system exception occurred

findAll

public List<PasswordPolicy> findAll(int start,
                                    int end)
                             throws SystemException
Returns a range of all the password policies.

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.

Specified by:
findAll in interface PasswordPolicyPersistence
Parameters:
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of password policies
Throws:
SystemException - if a system exception occurred

findAll

public List<PasswordPolicy> findAll(int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns an ordered range of all the password policies.

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.

Specified by:
findAll in interface PasswordPolicyPersistence
Parameters:
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of password policies
Throws:
SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws SystemException
Removes all the password policies from the database.

Specified by:
removeAll in interface PasswordPolicyPersistence
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Returns the number of password policies.

Specified by:
countAll in interface PasswordPolicyPersistence
Returns:
the number of password policies
Throws:
SystemException - if a system exception occurred

getBadColumnNames

protected Set<String> getBadColumnNames()
Overrides:
getBadColumnNames in class BasePersistenceImpl<PasswordPolicy>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the password policy persistence.


destroy

public void destroy()

Liferay 6.2-ce-ga5