Interface VirtualHostPersistence

All Superinterfaces:
BasePersistence<VirtualHost>, CTPersistence<VirtualHost>

@ProviderType public interface VirtualHostPersistence extends BasePersistence<VirtualHost>, CTPersistence<VirtualHost>
The persistence interface for the virtual host service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Method Details

    • findByCompanyId

      List<VirtualHost> findByCompanyId(long companyId)
      Returns all the virtual hosts where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching virtual hosts
    • findByCompanyId

      List<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.

      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

      List<VirtualHost> findByCompanyId(long companyId, int start, int end, OrderByComparator<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.

      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

      List<VirtualHost> findByCompanyId(long companyId, int start, int end, OrderByComparator<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.

      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

      VirtualHost findByCompanyId_First(long companyId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
      Returns the first virtual host in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching virtual host
      Throws:
      NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByCompanyId_First

      VirtualHost fetchByCompanyId_First(long companyId, OrderByComparator<VirtualHost> orderByComparator)
      Returns the first virtual host in the ordered set where companyId = ?.
      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

      VirtualHost findByCompanyId_Last(long companyId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
      Returns the last virtual host in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching virtual host
      Throws:
      NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByCompanyId_Last

      VirtualHost fetchByCompanyId_Last(long companyId, OrderByComparator<VirtualHost> orderByComparator)
      Returns the last virtual host in the ordered set where companyId = ?.
      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

      VirtualHost[] findByCompanyId_PrevAndNext(long virtualHostId, long companyId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
      Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ?.
      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:
      NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • removeByCompanyId

      void removeByCompanyId(long companyId)
      Removes all the virtual hosts where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      int countByCompanyId(long companyId)
      Returns the number of virtual hosts where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching virtual hosts
    • findByHostname

      VirtualHost findByHostname(String hostname) throws NoSuchVirtualHostException
      Returns the virtual host where hostname = ? or throws a NoSuchVirtualHostException if it could not be found.
      Parameters:
      hostname - the hostname
      Returns:
      the matching virtual host
      Throws:
      NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByHostname

      VirtualHost fetchByHostname(String hostname)
      Returns the virtual host where hostname = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      hostname - the hostname
      Returns:
      the matching virtual host, or null if a matching virtual host could not be found
    • fetchByHostname

      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.
      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

      VirtualHost removeByHostname(String hostname) throws NoSuchVirtualHostException
      Removes the virtual host where hostname = ? from the database.
      Parameters:
      hostname - the hostname
      Returns:
      the virtual host that was removed
      Throws:
      NoSuchVirtualHostException
    • countByHostname

      int countByHostname(String hostname)
      Returns the number of virtual hosts where hostname = ?.
      Parameters:
      hostname - the hostname
      Returns:
      the number of matching virtual hosts
    • findByC_L

      List<VirtualHost> findByC_L(long companyId, long layoutSetId)
      Returns all the virtual hosts where companyId = ? and layoutSetId = ?.
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      Returns:
      the matching virtual hosts
    • findByC_L

      List<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.

      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

      List<VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end, OrderByComparator<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.

      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

      List<VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end, OrderByComparator<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.

      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

      VirtualHost findByC_L_First(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
      Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      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:
      NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByC_L_First

      VirtualHost fetchByC_L_First(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator)
      Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      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

      VirtualHost findByC_L_Last(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
      Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      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:
      NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByC_L_Last

      VirtualHost fetchByC_L_Last(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator)
      Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      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

      VirtualHost[] findByC_L_PrevAndNext(long virtualHostId, long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
      Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ? and layoutSetId = ?.
      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:
      NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • removeByC_L

      void removeByC_L(long companyId, long layoutSetId)
      Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
    • countByC_L

      int countByC_L(long companyId, long layoutSetId)
      Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      Returns:
      the number of matching virtual hosts
    • findByNotL_H

      List<VirtualHost> findByNotL_H(long layoutSetId, String hostname)
      Returns all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      Returns:
      the matching virtual hosts
    • findByNotL_H

      List<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.

      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

      List<VirtualHost> findByNotL_H(long layoutSetId, String hostname, int start, int end, OrderByComparator<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.

      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

      List<VirtualHost> findByNotL_H(long layoutSetId, String hostname, int start, int end, OrderByComparator<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.

      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

      VirtualHost findByNotL_H_First(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
      Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      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:
      NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByNotL_H_First

      VirtualHost fetchByNotL_H_First(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator)
      Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      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

      VirtualHost findByNotL_H_Last(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
      Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      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:
      NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByNotL_H_Last

      VirtualHost fetchByNotL_H_Last(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator)
      Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      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

      VirtualHost[] findByNotL_H_PrevAndNext(long virtualHostId, long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
      Returns the virtual hosts before and after the current virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
      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:
      NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • findByNotL_H

      List<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.

      Parameters:
      layoutSetId - the layout set ID
      hostnames - the hostnames
      Returns:
      the matching virtual hosts
    • findByNotL_H

      List<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.

      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

      List<VirtualHost> findByNotL_H(long layoutSetId, String[] hostnames, int start, int end, OrderByComparator<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.

      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

      List<VirtualHost> findByNotL_H(long layoutSetId, String[] hostnames, int start, int end, OrderByComparator<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.

      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

      void removeByNotL_H(long layoutSetId, String hostname)
      Removes all the virtual hosts where layoutSetId ≠ ? and hostname = ? from the database.
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
    • countByNotL_H

      int countByNotL_H(long layoutSetId, String hostname)
      Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.
      Parameters:
      layoutSetId - the layout set ID
      hostname - the hostname
      Returns:
      the number of matching virtual hosts
    • countByNotL_H

      int countByNotL_H(long layoutSetId, String[] hostnames)
      Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = any ?.
      Parameters:
      layoutSetId - the layout set ID
      hostnames - the hostnames
      Returns:
      the number of matching virtual hosts
    • findByC_L_D

      VirtualHost findByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) throws NoSuchVirtualHostException
      Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or throws a NoSuchVirtualHostException if it could not be found.
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      defaultVirtualHost - the default virtual host
      Returns:
      the matching virtual host
      Throws:
      NoSuchVirtualHostException - if a matching virtual host could not be found
    • fetchByC_L_D

      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.
      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

      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.
      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

      VirtualHost removeByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) throws NoSuchVirtualHostException
      Removes the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? from the database.
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      defaultVirtualHost - the default virtual host
      Returns:
      the virtual host that was removed
      Throws:
      NoSuchVirtualHostException
    • countByC_L_D

      int countByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost)
      Returns the number of virtual hosts where companyId = ? and layoutSetId = ? and defaultVirtualHost = ?.
      Parameters:
      companyId - the company ID
      layoutSetId - the layout set ID
      defaultVirtualHost - the default virtual host
      Returns:
      the number of matching virtual hosts
    • cacheResult

      void cacheResult(VirtualHost virtualHost)
      Caches the virtual host in the entity cache if it is enabled.
      Parameters:
      virtualHost - the virtual host
    • cacheResult

      void cacheResult(List<VirtualHost> virtualHosts)
      Caches the virtual hosts in the entity cache if it is enabled.
      Parameters:
      virtualHosts - the virtual hosts
    • create

      VirtualHost create(long virtualHostId)
      Creates a new virtual host with the primary key. Does not add the virtual host to the database.
      Parameters:
      virtualHostId - the primary key for the new virtual host
      Returns:
      the new virtual host
    • remove

      VirtualHost remove(long virtualHostId) throws NoSuchVirtualHostException
      Removes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      virtualHostId - the primary key of the virtual host
      Returns:
      the virtual host that was removed
      Throws:
      NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • updateImpl

      VirtualHost updateImpl(VirtualHost virtualHost)
    • findByPrimaryKey

      VirtualHost findByPrimaryKey(long virtualHostId) throws NoSuchVirtualHostException
      Returns the virtual host with the primary key or throws a NoSuchVirtualHostException if it could not be found.
      Parameters:
      virtualHostId - the primary key of the virtual host
      Returns:
      the virtual host
      Throws:
      NoSuchVirtualHostException - if a virtual host with the primary key could not be found
    • fetchByPrimaryKey

      VirtualHost fetchByPrimaryKey(long virtualHostId)
      Returns the virtual host with the primary key or returns null if it could not be found.
      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
    • findAll

      List<VirtualHost> findAll()
      Returns all the virtual hosts.
      Returns:
      the virtual hosts
    • findAll

      List<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.

      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

      List<VirtualHost> findAll(int start, int end, OrderByComparator<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.

      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

      List<VirtualHost> findAll(int start, int end, OrderByComparator<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.

      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

      void removeAll()
      Removes all the virtual hosts from the database.
    • countAll

      int countAll()
      Returns the number of virtual hosts.
      Returns:
      the number of virtual hosts