Class VirtualHostPersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
com.liferay.portal.service.persistence.impl.VirtualHostPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>, com.liferay.portal.kernel.service.persistence.VirtualHostPersistence

public class VirtualHostPersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost> implements com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
The persistence implementation for the virtual host 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 virtual host persistence.
    void
    cacheResult(com.liferay.portal.kernel.model.VirtualHost virtualHost)
    Caches the virtual host in the entity cache if it is enabled.
    void
    cacheResult(List<com.liferay.portal.kernel.model.VirtualHost> virtualHosts)
    Caches the virtual hosts in the entity cache if it is enabled.
    protected void
     
    void
    Clears the cache for all virtual hosts.
    void
    clearCache(com.liferay.portal.kernel.model.VirtualHost virtualHost)
    Clears the cache for the virtual host.
    void
    clearCache(List<com.liferay.portal.kernel.model.VirtualHost> virtualHosts)
     
    void
    clearCache(Set<Serializable> primaryKeys)
     
    int
    Returns the number of virtual hosts.
    int
    countByC_L(long companyId, long layoutSetId)
    Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.
    int
    countByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost)
    Returns the number of virtual hosts where companyId = ? and layoutSetId = ? and defaultVirtualHost = ?.
    int
    countByCompanyId(long companyId)
    Returns the number of virtual hosts where companyId = ?.
    int
    Returns the number of virtual hosts where hostname = ?.
    int
    countByNotL_H(long layoutSetId, String hostname)
    Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.
    int
    countByNotL_H(long layoutSetId, String[] hostnames)
    Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = any ?.
    com.liferay.portal.kernel.model.VirtualHost
    create(long virtualHostId)
    Creates a new virtual host with the primary key.
    void
     
    com.liferay.portal.kernel.model.VirtualHost
    fetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost)
    Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returns null if it could not be found.
    com.liferay.portal.kernel.model.VirtualHost
    fetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost, boolean useFinderCache)
    Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.portal.kernel.model.VirtualHost
    fetchByC_L_First(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.
    com.liferay.portal.kernel.model.VirtualHost
    fetchByC_L_Last(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.
    com.liferay.portal.kernel.model.VirtualHost
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the first virtual host in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.VirtualHost
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the last virtual host in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.VirtualHost
    Returns the virtual host where hostname = ? or returns null if it could not be found.
    com.liferay.portal.kernel.model.VirtualHost
    fetchByHostname(String hostname, boolean useFinderCache)
    Returns the virtual host where hostname = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.portal.kernel.model.VirtualHost
    fetchByNotL_H_First(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
    com.liferay.portal.kernel.model.VirtualHost
    fetchByNotL_H_Last(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
    com.liferay.portal.kernel.model.VirtualHost
    fetchByPrimaryKey(long virtualHostId)
    Returns the virtual host with the primary key or returns null if it could not be found.
    com.liferay.portal.kernel.model.VirtualHost
    Returns the virtual host with the primary key or returns null if it could not be found.
    Map<Serializable,com.liferay.portal.kernel.model.VirtualHost>
     
    List<com.liferay.portal.kernel.model.VirtualHost>
    Returns all the virtual hosts.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findAll(int start, int end)
    Returns a range of all the virtual hosts.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns an ordered range of all the virtual hosts.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the virtual hosts.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByC_L(long companyId, long layoutSetId)
    Returns all the virtual hosts where companyId = ? and layoutSetId = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByC_L(long companyId, long layoutSetId, int start, int end)
    Returns a range of all the virtual hosts where companyId = ? and layoutSetId = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByC_L(long companyId, long layoutSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns an ordered range of all the virtual hosts where companyId = ? and layoutSetId = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByC_L(long companyId, long layoutSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the virtual hosts where companyId = ? and layoutSetId = ?.
    com.liferay.portal.kernel.model.VirtualHost
    findByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost)
    Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or throws a NoSuchVirtualHostException if it could not be found.
    com.liferay.portal.kernel.model.VirtualHost
    findByC_L_First(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.
    com.liferay.portal.kernel.model.VirtualHost
    findByC_L_Last(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.
    com.liferay.portal.kernel.model.VirtualHost[]
    findByC_L_PrevAndNext(long virtualHostId, long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ? and layoutSetId = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByCompanyId(long companyId)
    Returns all the virtual hosts where companyId = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the virtual hosts where companyId = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns an ordered range of all the virtual hosts where companyId = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the virtual hosts where companyId = ?.
    com.liferay.portal.kernel.model.VirtualHost
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the first virtual host in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.VirtualHost
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the last virtual host in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.VirtualHost[]
    findByCompanyId_PrevAndNext(long virtualHostId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.VirtualHost
    Returns the virtual host where hostname = ? or throws a NoSuchVirtualHostException if it could not be found.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByNotL_H(long layoutSetId, String hostname)
    Returns all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByNotL_H(long layoutSetId, String[] hostnames)
    Returns all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByNotL_H(long layoutSetId, String[] hostnames, int start, int end)
    Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByNotL_H(long layoutSetId, String[] hostnames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByNotL_H(long layoutSetId, String[] hostnames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?, optionally using the finder cache.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByNotL_H(long layoutSetId, String hostname, int start, int end)
    Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByNotL_H(long layoutSetId, String hostname, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
    List<com.liferay.portal.kernel.model.VirtualHost>
    findByNotL_H(long layoutSetId, String hostname, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
    com.liferay.portal.kernel.model.VirtualHost
    findByNotL_H_First(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
    com.liferay.portal.kernel.model.VirtualHost
    findByNotL_H_Last(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
    com.liferay.portal.kernel.model.VirtualHost[]
    findByNotL_H_PrevAndNext(long virtualHostId, long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
    Returns the virtual hosts before and after the current virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
    com.liferay.portal.kernel.model.VirtualHost
    findByPrimaryKey(long virtualHostId)
    Returns the virtual host with the primary key or throws a NoSuchVirtualHostException if it could not be found.
    com.liferay.portal.kernel.model.VirtualHost
    Returns the virtual host with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
    protected com.liferay.portal.kernel.model.VirtualHost
    getByC_L_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous)
     
    protected com.liferay.portal.kernel.model.VirtualHost
    getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous)
     
    protected com.liferay.portal.kernel.model.VirtualHost
    getByNotL_H_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous)
     
    getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
     
    protected String
     
    protected String
     
     
     
     
    com.liferay.portal.kernel.model.VirtualHost
    remove(long virtualHostId)
    Removes the virtual host with the primary key from the database.
    com.liferay.portal.kernel.model.VirtualHost
    remove(Serializable primaryKey)
    Removes the virtual host with the primary key from the database.
    void
    Removes all the virtual hosts from the database.
    void
    removeByC_L(long companyId, long layoutSetId)
    Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.
    com.liferay.portal.kernel.model.VirtualHost
    removeByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost)
    Removes the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the virtual hosts where companyId = ? from the database.
    com.liferay.portal.kernel.model.VirtualHost
    Removes the virtual host where hostname = ? from the database.
    void
    removeByNotL_H(long layoutSetId, String hostname)
    Removes all the virtual hosts where layoutSetId ≠ ? and hostname = ? from the database.
    protected com.liferay.portal.kernel.model.VirtualHost
    removeImpl(com.liferay.portal.kernel.model.VirtualHost virtualHost)
     
    com.liferay.portal.kernel.model.VirtualHost
    updateImpl(com.liferay.portal.kernel.model.VirtualHost virtualHost)
     

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

    appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, 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

    closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • 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

    • VirtualHostPersistenceImpl

      public VirtualHostPersistenceImpl()
  • Method Details

    • findByCompanyId

      public List<com.liferay.portal.kernel.model.VirtualHost> findByCompanyId(long companyId)
      Returns all the virtual hosts where companyId = ?.
      Specified by:
      findByCompanyId in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      Returns:
      the matching virtual hosts
    • findByCompanyId

      public List<com.liferay.portal.kernel.model.VirtualHost> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the virtual hosts 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, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByCompanyId in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      Returns:
      the range of matching virtual hosts
    • findByCompanyId

      public List<com.liferay.portal.kernel.model.VirtualHost> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns an ordered range of all the virtual hosts 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, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByCompanyId in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching virtual hosts
    • findByCompanyId

      public List<com.liferay.portal.kernel.model.VirtualHost> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the virtual hosts 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, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByCompanyId in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (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 virtual hosts
    • findByCompanyId_First

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

      public com.liferay.portal.kernel.model.VirtualHost fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns the first virtual host in the ordered set where companyId = ?.
      Specified by:
      fetchByCompanyId_First in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching virtual host, or null if a matching virtual host could not be found
    • findByCompanyId_Last

      public com.liferay.portal.kernel.model.VirtualHost findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the last virtual host in the ordered set where companyId = ?.
      Specified by:
      findByCompanyId_Last in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByCompanyId_Last

      public com.liferay.portal.kernel.model.VirtualHost fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns the last virtual host in the ordered set where companyId = ?.
      Specified by:
      fetchByCompanyId_Last in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching virtual host, or null if a matching virtual host could not be found
    • findByCompanyId_PrevAndNext

      public com.liferay.portal.kernel.model.VirtualHost[] findByCompanyId_PrevAndNext(long virtualHostId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ?.
      Specified by:
      findByCompanyId_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      virtualHostId - the primary key of the current virtual host
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • getByCompanyId_PrevAndNext

      protected com.liferay.portal.kernel.model.VirtualHost getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous)
    • removeByCompanyId

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

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

      public com.liferay.portal.kernel.model.VirtualHost findByHostname(String hostname) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the virtual host where hostname = ? or throws a NoSuchVirtualHostException if it could not be found.
      Specified by:
      findByHostname in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      hostname - the hostname
      Returns:
      the matching virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByHostname

      public com.liferay.portal.kernel.model.VirtualHost fetchByHostname(String hostname)
      Returns the virtual host where hostname = ? or returns null if it could not be found. Uses the finder cache.
      Specified by:
      fetchByHostname in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      hostname - the hostname
      Returns:
      the matching virtual host, or null if a matching virtual host could not be found
    • fetchByHostname

      public com.liferay.portal.kernel.model.VirtualHost fetchByHostname(String hostname, boolean useFinderCache)
      Returns the virtual host where hostname = ? or returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByHostname in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      hostname - the hostname
      useFinderCache - whether to use the finder cache
      Returns:
      the matching virtual host, or null if a matching virtual host could not be found
    • removeByHostname

      public com.liferay.portal.kernel.model.VirtualHost removeByHostname(String hostname) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Removes the virtual host where hostname = ? from the database.
      Specified by:
      removeByHostname in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      hostname - the hostname
      Returns:
      the virtual host that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException
    • countByHostname

      public int countByHostname(String hostname)
      Returns the number of virtual hosts where hostname = ?.
      Specified by:
      countByHostname in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      hostname - the hostname
      Returns:
      the number of matching virtual hosts
    • findByC_L

      public List<com.liferay.portal.kernel.model.VirtualHost> findByC_L(long companyId, long layoutSetId)
      Returns all the virtual hosts where companyId = ? and layoutSetId = ?.
      Specified by:
      findByC_L in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      Returns:
      the matching virtual hosts
    • findByC_L

      public List<com.liferay.portal.kernel.model.VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end)
      Returns a range of all the virtual hosts where companyId = ? and layoutSetId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByC_L in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      Returns:
      the range of matching virtual hosts
    • findByC_L

      public List<com.liferay.portal.kernel.model.VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns an ordered range of all the virtual hosts where companyId = ? and layoutSetId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByC_L in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching virtual hosts
    • findByC_L

      public List<com.liferay.portal.kernel.model.VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the virtual hosts where companyId = ? and layoutSetId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByC_L in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (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 virtual hosts
    • findByC_L_First

      public com.liferay.portal.kernel.model.VirtualHost findByC_L_First(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      Specified by:
      findByC_L_First in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByC_L_First

      public com.liferay.portal.kernel.model.VirtualHost fetchByC_L_First(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      Specified by:
      fetchByC_L_First in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching virtual host, or null if a matching virtual host could not be found
    • findByC_L_Last

      public com.liferay.portal.kernel.model.VirtualHost findByC_L_Last(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      Specified by:
      findByC_L_Last in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByC_L_Last

      public com.liferay.portal.kernel.model.VirtualHost fetchByC_L_Last(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      Specified by:
      fetchByC_L_Last in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching virtual host, or null if a matching virtual host could not be found
    • findByC_L_PrevAndNext

      public com.liferay.portal.kernel.model.VirtualHost[] findByC_L_PrevAndNext(long virtualHostId, long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      Specified by:
      findByC_L_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      virtualHostId - the primary key of the current virtual host
      companyId - the company ID
      layoutSetId - the layout set ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • getByC_L_PrevAndNext

      protected com.liferay.portal.kernel.model.VirtualHost getByC_L_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous)
    • removeByC_L

      public void removeByC_L(long companyId, long layoutSetId)
      Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.
      Specified by:
      removeByC_L in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
    • countByC_L

      public int countByC_L(long companyId, long layoutSetId)
      Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.
      Specified by:
      countByC_L in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      Returns:
      the number of matching virtual hosts
    • findByNotL_H

      public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String hostname)
      Returns all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
      Specified by:
      findByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      Returns:
      the matching virtual hosts
    • findByNotL_H

      public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String hostname, int start, int end)
      Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      Returns:
      the range of matching virtual hosts
    • findByNotL_H

      public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String hostname, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching virtual hosts
    • findByNotL_H

      public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String hostname, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (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 virtual hosts
    • findByNotL_H_First

      public com.liferay.portal.kernel.model.VirtualHost findByNotL_H_First(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      Specified by:
      findByNotL_H_First in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByNotL_H_First

      public com.liferay.portal.kernel.model.VirtualHost fetchByNotL_H_First(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      Specified by:
      fetchByNotL_H_First in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching virtual host, or null if a matching virtual host could not be found
    • findByNotL_H_Last

      public com.liferay.portal.kernel.model.VirtualHost findByNotL_H_Last(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      Specified by:
      findByNotL_H_Last in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByNotL_H_Last

      public com.liferay.portal.kernel.model.VirtualHost fetchByNotL_H_Last(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      Specified by:
      fetchByNotL_H_Last in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching virtual host, or null if a matching virtual host could not be found
    • findByNotL_H_PrevAndNext

      public com.liferay.portal.kernel.model.VirtualHost[] findByNotL_H_PrevAndNext(long virtualHostId, long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the virtual hosts before and after the current virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      Specified by:
      findByNotL_H_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      virtualHostId - the primary key of the current virtual host
      layoutSetId - the layout set ID
      hostname - the hostname
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • getByNotL_H_PrevAndNext

      protected com.liferay.portal.kernel.model.VirtualHost getByNotL_H_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous)
    • findByNotL_H

      public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String[] hostnames)
      Returns all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostnames - the hostnames
      Returns:
      the matching virtual hosts
    • findByNotL_H

      public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String[] hostnames, int start, int end)
      Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostnames - the hostnames
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      Returns:
      the range of matching virtual hosts
    • findByNotL_H

      public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String[] hostnames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostnames - the hostnames
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching virtual hosts
    • findByNotL_H

      public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String[] hostnames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?, optionally using the finder cache.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostnames - the hostnames
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (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 virtual hosts
    • removeByNotL_H

      public void removeByNotL_H(long layoutSetId, String hostname)
      Removes all the virtual hosts where layoutSetId ≠ ? and hostname = ? from the database.
      Specified by:
      removeByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
    • countByNotL_H

      public int countByNotL_H(long layoutSetId, String hostname)
      Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.
      Specified by:
      countByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      Returns:
      the number of matching virtual hosts
    • countByNotL_H

      public int countByNotL_H(long layoutSetId, String[] hostnames)
      Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = any ?.
      Specified by:
      countByNotL_H in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      layoutSetId - the layout set ID
      hostnames - the hostnames
      Returns:
      the number of matching virtual hosts
    • findByC_L_D

      public com.liferay.portal.kernel.model.VirtualHost findByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or throws a NoSuchVirtualHostException if it could not be found.
      Specified by:
      findByC_L_D in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      defaultVirtualHost - the default virtual host
      Returns:
      the matching virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByC_L_D

      public com.liferay.portal.kernel.model.VirtualHost fetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost)
      Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returns null if it could not be found. Uses the finder cache.
      Specified by:
      fetchByC_L_D in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      defaultVirtualHost - the default virtual host
      Returns:
      the matching virtual host, or null if a matching virtual host could not be found
    • fetchByC_L_D

      public com.liferay.portal.kernel.model.VirtualHost fetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost, boolean useFinderCache)
      Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByC_L_D in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      defaultVirtualHost - the default virtual host
      useFinderCache - whether to use the finder cache
      Returns:
      the matching virtual host, or null if a matching virtual host could not be found
    • removeByC_L_D

      public com.liferay.portal.kernel.model.VirtualHost removeByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Removes the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? from the database.
      Specified by:
      removeByC_L_D in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      defaultVirtualHost - the default virtual host
      Returns:
      the virtual host that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException
    • countByC_L_D

      public int countByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost)
      Returns the number of virtual hosts where companyId = ? and layoutSetId = ? and defaultVirtualHost = ?.
      Specified by:
      countByC_L_D in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      defaultVirtualHost - the default virtual host
      Returns:
      the number of matching virtual hosts
    • cacheResult

      public void cacheResult(com.liferay.portal.kernel.model.VirtualHost virtualHost)
      Caches the virtual host in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Overrides:
      cacheResult in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
      Parameters:
      virtualHost - the virtual host
    • cacheResult

      public void cacheResult(List<com.liferay.portal.kernel.model.VirtualHost> virtualHosts)
      Caches the virtual hosts in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      virtualHosts - the virtual hosts
    • clearCache

      public void clearCache()
      Clears the cache for all virtual hosts.

      The EntityCache and FinderCache are both cleared by this method.

      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
    • clearCache

      public void clearCache(com.liferay.portal.kernel.model.VirtualHost virtualHost)
      Clears the cache for the virtual host.

      The EntityCache and FinderCache are both cleared by this method.

      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
    • clearCache

      public void clearCache(List<com.liferay.portal.kernel.model.VirtualHost> virtualHosts)
      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
    • clearCache

      public void clearCache(Set<Serializable> primaryKeys)
      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
    • cacheUniqueFindersCache

      protected void cacheUniqueFindersCache(VirtualHostModelImpl virtualHostModelImpl)
    • create

      public com.liferay.portal.kernel.model.VirtualHost create(long virtualHostId)
      Creates a new virtual host with the primary key. Does not add the virtual host to the database.
      Specified by:
      create in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      virtualHostId - the primary key for the new virtual host
      Returns:
      the new virtual host
    • remove

      public com.liferay.portal.kernel.model.VirtualHost remove(long virtualHostId) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Removes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      virtualHostId - the primary key of the virtual host
      Returns:
      the virtual host that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • remove

      public com.liferay.portal.kernel.model.VirtualHost remove(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Removes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
      Overrides:
      remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
      Parameters:
      primaryKey - the primary key of the virtual host
      Returns:
      the virtual host that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • removeImpl

      protected com.liferay.portal.kernel.model.VirtualHost removeImpl(com.liferay.portal.kernel.model.VirtualHost virtualHost)
      Overrides:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
    • updateImpl

      public com.liferay.portal.kernel.model.VirtualHost updateImpl(com.liferay.portal.kernel.model.VirtualHost virtualHost)
      Specified by:
      updateImpl in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.VirtualHost findByPrimaryKey(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the virtual host with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
      Overrides:
      findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
      Parameters:
      primaryKey - the primary key of the virtual host
      Returns:
      the virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.VirtualHost findByPrimaryKey(long virtualHostId) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
      Returns the virtual host with the primary key or throws a NoSuchVirtualHostException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      virtualHostId - the primary key of the virtual host
      Returns:
      the virtual host
      Throws:
      com.liferay.portal.kernel.exception.NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.VirtualHost fetchByPrimaryKey(Serializable primaryKey)
      Returns the virtual host with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
      Overrides:
      fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
      Parameters:
      primaryKey - the primary key of the virtual host
      Returns:
      the virtual host, or null if a virtual host with the primary key could not be found
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.VirtualHost fetchByPrimaryKey(long virtualHostId)
      Returns the virtual host with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      virtualHostId - the primary key of the virtual host
      Returns:
      the virtual host, or null if a virtual host with the primary key could not be found
    • fetchByPrimaryKeys

      public Map<Serializable,com.liferay.portal.kernel.model.VirtualHost> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      Specified by:
      fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
      Overrides:
      fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
    • findAll

      public List<com.liferay.portal.kernel.model.VirtualHost> findAll()
      Returns all the virtual hosts.
      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Returns:
      the virtual hosts
    • findAll

      public List<com.liferay.portal.kernel.model.VirtualHost> findAll(int start, int end)
      Returns a range of all the virtual hosts.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      Returns:
      the range of virtual hosts
    • findAll

      public List<com.liferay.portal.kernel.model.VirtualHost> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator)
      Returns an ordered range of all the virtual hosts.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of virtual hosts
    • findAll

      public List<com.liferay.portal.kernel.model.VirtualHost> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the virtual hosts.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl.

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Parameters:
      start - the lower bound of the range of virtual hosts
      end - the upper bound of the range of virtual hosts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of virtual hosts
    • removeAll

      public void removeAll()
      Removes all the virtual hosts from the database.
      Specified by:
      removeAll in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
    • countAll

      public int countAll()
      Returns the number of virtual hosts.
      Specified by:
      countAll in interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
      Returns:
      the number of virtual hosts
    • 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.VirtualHost>
    • getPKDBName

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

      protected String getSelectSQL()
      Overrides:
      getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
    • getCTColumnNames

      public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
      Specified by:
      getCTColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
    • getMappingTableNames

      public List<String> getMappingTableNames()
      Specified by:
      getMappingTableNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
    • getTableColumnsMap

      public Map<String,Integer> getTableColumnsMap()
      Specified by:
      getTableColumnsMap in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
      Overrides:
      getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
    • getTableName

      public String getTableName()
      Specified by:
      getTableName in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
    • getUniqueIndexColumnNames

      public List<String[]> getUniqueIndexColumnNames()
      Specified by:
      getUniqueIndexColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Initializes the virtual host 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.VirtualHost>