com.liferay.portal.service.persistence
Class PasswordPolicyPersistenceImpl

java.lang.Object
  extended byorg.springframework.dao.support.DaoSupport
      extended byorg.springframework.jdbc.core.support.JdbcDaoSupport
          extended bycom.liferay.portal.service.persistence.BasePersistence
              extended bycom.liferay.portal.service.persistence.PasswordPolicyPersistenceImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, PasswordPolicyPersistence

public class PasswordPolicyPersistenceImpl
extends BasePersistence
implements PasswordPolicyPersistence

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
PasswordPolicyPersistenceImpl()
           
 
Method Summary
 int countAll()
           
 int countByC_DP(long companyId, boolean defaultPolicy)
           
 int countByC_N(long companyId, java.lang.String name)
           
 com.liferay.portal.model.PasswordPolicy create(long passwordPolicyId)
           
 com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy)
           
 com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId, java.lang.String name)
           
 com.liferay.portal.model.PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.PasswordPolicy findByC_DP(long companyId, boolean defaultPolicy)
           
 com.liferay.portal.model.PasswordPolicy findByC_N(long companyId, java.lang.String name)
           
 com.liferay.portal.model.PasswordPolicy findByPrimaryKey(long passwordPolicyId)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
protected  void initDao()
           
 com.liferay.portal.model.PasswordPolicy remove(long passwordPolicyId)
           
 com.liferay.portal.model.PasswordPolicy remove(com.liferay.portal.model.PasswordPolicy passwordPolicy)
           
 void removeAll()
           
 void removeByC_DP(long companyId, boolean defaultPolicy)
           
 void removeByC_N(long companyId, java.lang.String name)
           
 com.liferay.portal.model.PasswordPolicy update(com.liferay.portal.model.PasswordPolicy passwordPolicy)
           
 com.liferay.portal.model.PasswordPolicy update(com.liferay.portal.model.PasswordPolicy passwordPolicy, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.BasePersistence
closeSession, getDialect, getSessionFactory, openSession, openSession, setSessionFactory
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordPolicyPersistenceImpl

public PasswordPolicyPersistenceImpl()
Method Detail

create

public com.liferay.portal.model.PasswordPolicy create(long passwordPolicyId)
Specified by:
create in interface PasswordPolicyPersistence

remove

public com.liferay.portal.model.PasswordPolicy remove(long passwordPolicyId)
                                               throws com.liferay.portal.NoSuchPasswordPolicyException,
                                                      com.liferay.portal.SystemException
Specified by:
remove in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.NoSuchPasswordPolicyException
com.liferay.portal.SystemException

remove

public com.liferay.portal.model.PasswordPolicy remove(com.liferay.portal.model.PasswordPolicy passwordPolicy)
                                               throws com.liferay.portal.SystemException
Specified by:
remove in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portal.model.PasswordPolicy update(com.liferay.portal.model.PasswordPolicy passwordPolicy)
                                               throws com.liferay.portal.SystemException
Specified by:
update in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portal.model.PasswordPolicy update(com.liferay.portal.model.PasswordPolicy passwordPolicy,
                                                      boolean merge)
                                               throws com.liferay.portal.SystemException
Specified by:
update in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public com.liferay.portal.model.PasswordPolicy findByPrimaryKey(long passwordPolicyId)
                                                         throws com.liferay.portal.NoSuchPasswordPolicyException,
                                                                com.liferay.portal.SystemException
Specified by:
findByPrimaryKey in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.NoSuchPasswordPolicyException
com.liferay.portal.SystemException

fetchByPrimaryKey

public com.liferay.portal.model.PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
                                                          throws com.liferay.portal.SystemException
Specified by:
fetchByPrimaryKey in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

findByC_DP

public com.liferay.portal.model.PasswordPolicy findByC_DP(long companyId,
                                                          boolean defaultPolicy)
                                                   throws com.liferay.portal.NoSuchPasswordPolicyException,
                                                          com.liferay.portal.SystemException
Specified by:
findByC_DP in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.NoSuchPasswordPolicyException
com.liferay.portal.SystemException

fetchByC_DP

public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
                                                           boolean defaultPolicy)
                                                    throws com.liferay.portal.SystemException
Specified by:
fetchByC_DP in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

findByC_N

public com.liferay.portal.model.PasswordPolicy findByC_N(long companyId,
                                                         java.lang.String name)
                                                  throws com.liferay.portal.NoSuchPasswordPolicyException,
                                                         com.liferay.portal.SystemException
Specified by:
findByC_N in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.NoSuchPasswordPolicyException
com.liferay.portal.SystemException

fetchByC_N

public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
                                                          java.lang.String name)
                                                   throws com.liferay.portal.SystemException
Specified by:
fetchByC_N in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                    throws com.liferay.portal.SystemException
Specified by:
findWithDynamicQuery in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Specified by:
findWithDynamicQuery in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Specified by:
findAll in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end)
                       throws com.liferay.portal.SystemException
Specified by:
findAll in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws com.liferay.portal.SystemException
Specified by:
findAll in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

removeByC_DP

public void removeByC_DP(long companyId,
                         boolean defaultPolicy)
                  throws com.liferay.portal.NoSuchPasswordPolicyException,
                         com.liferay.portal.SystemException
Specified by:
removeByC_DP in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.NoSuchPasswordPolicyException
com.liferay.portal.SystemException

removeByC_N

public void removeByC_N(long companyId,
                        java.lang.String name)
                 throws com.liferay.portal.NoSuchPasswordPolicyException,
                        com.liferay.portal.SystemException
Specified by:
removeByC_N in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.NoSuchPasswordPolicyException
com.liferay.portal.SystemException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Specified by:
removeAll in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

countByC_DP

public int countByC_DP(long companyId,
                       boolean defaultPolicy)
                throws com.liferay.portal.SystemException
Specified by:
countByC_DP in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

countByC_N

public int countByC_N(long companyId,
                      java.lang.String name)
               throws com.liferay.portal.SystemException
Specified by:
countByC_N in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Specified by:
countAll in interface PasswordPolicyPersistence
Throws:
com.liferay.portal.SystemException

initDao

protected void initDao()