Class PasswordPolicyPersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException>
com.liferay.portal.service.persistence.impl.PasswordPolicyPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PasswordPolicy>, com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence

public class PasswordPolicyPersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException> implements com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
The persistence implementation for the password policy service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
{$generated.description}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes the password policy persistence.
    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
    Returns the number of password policies where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of password policies where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.PasswordPolicy
    create(long passwordPolicyId)
    Creates a new password policy with the primary key.
    void
     
    com.liferay.portal.kernel.model.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.
    com.liferay.portal.kernel.model.PasswordPolicy
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    Returns the first password policy in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.PasswordPolicy
    fetchByPrimaryKey(long passwordPolicyId)
    Returns the password policy with the primary key or returns null if it could not be found.
    com.liferay.portal.kernel.model.PasswordPolicy
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.PasswordPolicy
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    Returns the first 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
    Returns the number of password policies that the user has permission to view where uuid = ?.
    int
    filterCountByUuid_C(String uuid, long companyId)
    Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.
    List<com.liferay.portal.kernel.model.PasswordPolicy>
    filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    Returns an ordered range of all the password policies that the user has permissions to view where companyId = ?.
    List<com.liferay.portal.kernel.model.PasswordPolicy>
    filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    Returns an ordered range of all the password policies that the user has permissions to view where uuid = ?.
    List<com.liferay.portal.kernel.model.PasswordPolicy>
    filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    Returns an ordered range of all the password policies that the user has permissions to view where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.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.
    List<com.liferay.portal.kernel.model.PasswordPolicy>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the password policies where companyId = ?.
    com.liferay.portal.kernel.model.PasswordPolicy
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    Returns the first password policy in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.PasswordPolicy
    findByPrimaryKey(long passwordPolicyId)
    Returns the password policy with the primary key or throws a NoSuchPasswordPolicyException if it could not be found.
    List<com.liferay.portal.kernel.model.PasswordPolicy>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the password policies where uuid = ?.
    List<com.liferay.portal.kernel.model.PasswordPolicy>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the password policies where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.PasswordPolicy
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.PasswordPolicy
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
    Returns the first password policy in the ordered set where uuid = ?.
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
    protected String
     
    protected String
     
    protected Map<String,Integer>
     
    com.liferay.portal.kernel.model.PasswordPolicy
    remove(long passwordPolicyId)
    Removes the password policy with the primary key from the database.
    com.liferay.portal.kernel.model.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
    Removes all the password policies where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the password policies where uuid = ? and companyId = ? from the database.
    protected com.liferay.portal.kernel.model.PasswordPolicy
    removeImpl(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy)
     
    com.liferay.portal.kernel.model.PasswordPolicy
    updateImpl(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy)
     

    Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    appendOrderByComparator, appendOrderByComparator, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCTPersistenceHelper, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, getTableName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update

    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.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence

    fetchByC_N, filterFindByCompanyId, filterFindByCompanyId, filterFindByUuid, filterFindByUuid, filterFindByUuid_C, filterFindByUuid_C, findByCompanyId, findByCompanyId, findByCompanyId, findByUuid, findByUuid, findByUuid, findByUuid_C, findByUuid_C, findByUuid_C
  • Field Details

    • 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
  • Constructor Details

    • PasswordPolicyPersistenceImpl

      public PasswordPolicyPersistenceImpl()
  • Method Details

    • findByUuid

      public List<com.liferay.portal.kernel.model.PasswordPolicy> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator, boolean useFinderCache)
      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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      findByUuid in interface com.liferay.portal.kernel.service.persistence.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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching password policies
    • findByUuid_First

      public com.liferay.portal.kernel.model.PasswordPolicy findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException
      Returns the first password policy in the ordered set where uuid = ?.
      Specified by:
      findByUuid_First in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching password policy
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException - if a matching password policy could not be found
    • fetchByUuid_First

      public com.liferay.portal.kernel.model.PasswordPolicy fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
      Returns the first password policy in the ordered set where uuid = ?.
      Specified by:
      fetchByUuid_First in interface com.liferay.portal.kernel.service.persistence.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
    • filterFindByUuid

      public List<com.liferay.portal.kernel.model.PasswordPolicy> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
      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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      filterFindByUuid in interface com.liferay.portal.kernel.service.persistence.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
    • removeByUuid

      public void removeByUuid(String uuid)
      Removes all the password policies where uuid = ? from the database.
      Specified by:
      removeByUuid in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      uuid - the uuid
    • countByUuid

      public int countByUuid(String uuid)
      Returns the number of password policies where uuid = ?.
      Specified by:
      countByUuid in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching password policies
    • filterCountByUuid

      public int filterCountByUuid(String uuid)
      Returns the number of password policies that the user has permission to view where uuid = ?.
      Specified by:
      filterCountByUuid in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching password policies that the user has permission to view
    • findByUuid_C

      public List<com.liferay.portal.kernel.model.PasswordPolicy> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator, boolean useFinderCache)
      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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      findByUuid_C in interface com.liferay.portal.kernel.service.persistence.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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching password policies
    • findByUuid_C_First

      public com.liferay.portal.kernel.model.PasswordPolicy findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException
      Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C_First in interface com.liferay.portal.kernel.service.persistence.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:
      com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException - if a matching password policy could not be found
    • fetchByUuid_C_First

      public com.liferay.portal.kernel.model.PasswordPolicy fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
      Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      fetchByUuid_C_First in interface com.liferay.portal.kernel.service.persistence.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
    • filterFindByUuid_C

      public List<com.liferay.portal.kernel.model.PasswordPolicy> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
      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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      filterFindByUuid_C in interface com.liferay.portal.kernel.service.persistence.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
    • removeByUuid_C

      public void removeByUuid_C(String uuid, long companyId)
      Removes all the password policies where uuid = ? and companyId = ? from the database.
      Specified by:
      removeByUuid_C in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public int countByUuid_C(String uuid, long companyId)
      Returns the number of password policies where uuid = ? and companyId = ?.
      Specified by:
      countByUuid_C in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching password policies
    • filterCountByUuid_C

      public int filterCountByUuid_C(String uuid, long companyId)
      Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.
      Specified by:
      filterCountByUuid_C in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching password policies that the user has permission to view
    • findByCompanyId

      public List<com.liferay.portal.kernel.model.PasswordPolicy> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator, boolean useFinderCache)
      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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      findByCompanyId in interface com.liferay.portal.kernel.service.persistence.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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching password policies
    • findByCompanyId_First

      public com.liferay.portal.kernel.model.PasswordPolicy findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException
      Returns the first password policy in the ordered set where companyId = ?.
      Specified by:
      findByCompanyId_First in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching password policy
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException - if a matching password policy could not be found
    • fetchByCompanyId_First

      public com.liferay.portal.kernel.model.PasswordPolicy fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
      Returns the first password policy in the ordered set where companyId = ?.
      Specified by:
      fetchByCompanyId_First in interface com.liferay.portal.kernel.service.persistence.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
    • filterFindByCompanyId

      public List<com.liferay.portal.kernel.model.PasswordPolicy> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PasswordPolicy> orderByComparator)
      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 com.liferay.portal.kernel.dao.orm.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.

      Specified by:
      filterFindByCompanyId in interface com.liferay.portal.kernel.service.persistence.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
    • removeByCompanyId

      public void removeByCompanyId(long companyId)
      Removes all the password policies where companyId = ? from the database.
      Specified by:
      removeByCompanyId in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public int countByCompanyId(long companyId)
      Returns the number of password policies where companyId = ?.
      Specified by:
      countByCompanyId in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching password policies
    • filterCountByCompanyId

      public int filterCountByCompanyId(long companyId)
      Returns the number of password policies that the user has permission to view where companyId = ?.
      Specified by:
      filterCountByCompanyId in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching password policies that the user has permission to view
    • findByC_N

      public com.liferay.portal.kernel.model.PasswordPolicy findByC_N(long companyId, String name) throws com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException
      Returns the password policy where companyId = ? and name = ? or throws a NoSuchPasswordPolicyException if it could not be found.
      Specified by:
      findByC_N in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching password policy
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException - if a matching password policy could not be found
    • fetchByC_N

      public com.liferay.portal.kernel.model.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.
      Specified by:
      fetchByC_N in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      companyId - the company ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching password policy, or null if a matching password policy could not be found
    • removeByC_N

      public com.liferay.portal.kernel.model.PasswordPolicy removeByC_N(long companyId, String name) throws com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException
      Removes the password policy where companyId = ? and name = ? from the database.
      Specified by:
      removeByC_N in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the password policy that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException
    • countByC_N

      public int countByC_N(long companyId, String name)
      Returns the number of password policies where companyId = ? and name = ?.
      Specified by:
      countByC_N in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the number of matching password policies
    • create

      public com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      passwordPolicyId - the primary key for the new password policy
      Returns:
      the new password policy
    • remove

      public com.liferay.portal.kernel.model.PasswordPolicy remove(long passwordPolicyId) throws com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException
      Removes the password policy with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      passwordPolicyId - the primary key of the password policy
      Returns:
      the password policy that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
    • removeImpl

      protected com.liferay.portal.kernel.model.PasswordPolicy removeImpl(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy)
      Overrides:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException>
    • updateImpl

      public com.liferay.portal.kernel.model.PasswordPolicy updateImpl(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy)
      Specified by:
      updateImpl in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException>
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.PasswordPolicy findByPrimaryKey(long passwordPolicyId) throws com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException
      Returns the password policy with the primary key or throws a NoSuchPasswordPolicyException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.PasswordPolicyPersistence
      Parameters:
      passwordPolicyId - the primary key of the password policy
      Returns:
      the password policy
      Throws:
      com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
      Returns the password policy with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.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
    • getBadColumnNames

      public Set<String> getBadColumnNames()
      Specified by:
      getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PasswordPolicy>
      Overrides:
      getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException>
    • getEntityCache

      protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
      Overrides:
      getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException>
    • getPKDBName

      protected String getPKDBName()
      Overrides:
      getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException>
    • getSelectSQL

      protected String getSelectSQL()
      Overrides:
      getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException>
    • getTableColumnsMap

      protected Map<String,Integer> getTableColumnsMap()
      Overrides:
      getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Initializes the password policy persistence.
    • destroy

      public void destroy()
    • getFinderCache

      protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()
      Overrides:
      getFinderCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PasswordPolicy,com.liferay.portal.kernel.exception.NoSuchPasswordPolicyException>