Class VirtualHostUtil
com.liferay.portal.service.persistence.impl.VirtualHostPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(VirtualHost virtualHost) Caches the virtual host in the entity cache if it is enabled.static voidcacheResult(List<VirtualHost> virtualHosts) Caches the virtual hosts in the entity cache if it is enabled.static voidstatic voidclearCache(VirtualHost virtualHost) static intcountAll()Returns the number of virtual hosts.static intcountByC_L(long companyId, long layoutSetId) Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.static intcountByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the number of virtual hosts where companyId = ? and layoutSetId = ? and defaultVirtualHost = ?.static intcountByCompanyId(long companyId) Returns the number of virtual hosts where companyId = ?.static intcountByHostname(String hostname) Returns the number of virtual hosts where hostname = ?.static intcountByNotL_H(long layoutSetId, String hostname) Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.static intcountByNotL_H(long layoutSetId, String[] hostnames) Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = any ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static VirtualHostcreate(long virtualHostId) Creates a new virtual host with the primary key.static VirtualHostfetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returnsnullif it could not be found.static VirtualHostfetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost, boolean useFinderCache) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returnsnullif it could not be found, optionally using the finder cache.static VirtualHostfetchByC_L_First(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.static VirtualHostfetchByC_L_Last(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.static VirtualHostfetchByCompanyId_First(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.static VirtualHostfetchByCompanyId_Last(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ?.static VirtualHostfetchByHostname(String hostname) Returns the virtual host where hostname = ? or returnsnullif it could not be found.static VirtualHostfetchByHostname(String hostname, boolean useFinderCache) Returns the virtual host where hostname = ? or returnsnullif it could not be found, optionally using the finder cache.static VirtualHostfetchByNotL_H_First(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.static VirtualHostfetchByNotL_H_Last(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.static VirtualHostfetchByPrimaryKey(long virtualHostId) Returns the virtual host with the primary key or returnsnullif it could not be found.static Map<Serializable,VirtualHost> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<VirtualHost>findAll()Returns all the virtual hosts.static List<VirtualHost>findAll(int start, int end) Returns a range of all the virtual hosts.static List<VirtualHost>findAll(int start, int end, OrderByComparator<VirtualHost> orderByComparator) Returns an ordered range of all the virtual hosts.static List<VirtualHost>findAll(int start, int end, OrderByComparator<VirtualHost> orderByComparator, boolean useFinderCache) Returns an ordered range of all the virtual hosts.static List<VirtualHost>findByC_L(long companyId, long layoutSetId) Returns all the virtual hosts where companyId = ? and layoutSetId = ?.static List<VirtualHost>findByC_L(long companyId, long layoutSetId, int start, int end) Returns a range of all the virtual hosts where companyId = ? and layoutSetId = ?.static 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 = ?.static 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 = ?.static VirtualHostfindByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or throws aNoSuchVirtualHostExceptionif it could not be found.static VirtualHostfindByC_L_First(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.static VirtualHostfindByC_L_Last(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.static VirtualHost[]findByC_L_PrevAndNext(long virtualHostId, long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ? and layoutSetId = ?.static List<VirtualHost>findByCompanyId(long companyId) Returns all the virtual hosts where companyId = ?.static List<VirtualHost>findByCompanyId(long companyId, int start, int end) Returns a range of all the virtual hosts where companyId = ?.static List<VirtualHost>findByCompanyId(long companyId, int start, int end, OrderByComparator<VirtualHost> orderByComparator) Returns an ordered range of all the virtual hosts where companyId = ?.static 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 = ?.static VirtualHostfindByCompanyId_First(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.static VirtualHostfindByCompanyId_Last(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ?.static VirtualHost[]findByCompanyId_PrevAndNext(long virtualHostId, long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ?.static VirtualHostfindByHostname(String hostname) Returns the virtual host where hostname = ? or throws aNoSuchVirtualHostExceptionif it could not be found.static List<VirtualHost>findByNotL_H(long layoutSetId, String hostname) Returns all the virtual hosts where layoutSetId ≠ ? and hostname = ?.static List<VirtualHost>findByNotL_H(long layoutSetId, String[] hostnames) Returns all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.static 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 ?.static 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 ?.static 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.static List<VirtualHost>findByNotL_H(long layoutSetId, String hostname, int start, int end) Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.static 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 = ?.static 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 = ?.static VirtualHostfindByNotL_H_First(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.static VirtualHostfindByNotL_H_Last(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.static VirtualHost[]findByNotL_H_PrevAndNext(long virtualHostId, long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the virtual hosts before and after the current virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.static VirtualHostfindByPrimaryKey(long virtualHostId) Returns the virtual host with the primary key or throws aNoSuchVirtualHostExceptionif it could not be found.static List<VirtualHost>findWithDynamicQuery(DynamicQuery dynamicQuery) static List<VirtualHost>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) static List<VirtualHost>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<VirtualHost> orderByComparator) static VirtualHostPersistencestatic VirtualHostremove(long virtualHostId) Removes the virtual host with the primary key from the database.static voidRemoves all the virtual hosts from the database.static voidremoveByC_L(long companyId, long layoutSetId) Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.static VirtualHostremoveByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Removes the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the virtual hosts where companyId = ? from the database.static VirtualHostremoveByHostname(String hostname) Removes the virtual host where hostname = ? from the database.static voidremoveByNotL_H(long layoutSetId, String hostname) Removes all the virtual hosts where layoutSetId ≠ ? and hostname = ? from the database.static voidsetPersistence(VirtualHostPersistence persistence) static VirtualHostupdate(VirtualHost virtualHost) static VirtualHostupdate(VirtualHost virtualHost, ServiceContext serviceContext) static VirtualHostupdateImpl(VirtualHost virtualHost)
-
Constructor Details
-
VirtualHostUtil
public VirtualHostUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<VirtualHost> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<VirtualHost> orderByComparator) -
update
-
update
-
findByCompanyId
Returns all the virtual hosts where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching virtual hosts
-
findByCompanyId
Returns a range of all the virtual hosts where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)- Returns:
- the range of matching virtual hosts
-
findByCompanyId
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching virtual hosts
-
findByCompanyId
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching virtual hosts
-
findByCompanyId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching virtual host
- Throws:
NoSuchVirtualHostException- if a matching virtual host could not be foundNoSuchVirtualHostException
-
fetchByCompanyId_First
public static VirtualHost fetchByCompanyId_First(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching virtual host, or
nullif a matching virtual host could not be found
-
findByCompanyId_Last
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching virtual host
- Throws:
NoSuchVirtualHostException- if a matching virtual host could not be foundNoSuchVirtualHostException
-
fetchByCompanyId_Last
public static VirtualHost fetchByCompanyId_Last(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching virtual host, or
nullif a matching virtual host could not be found
-
findByCompanyId_PrevAndNext
public static 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 hostcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next virtual host
- Throws:
NoSuchVirtualHostException- if a virtual host with the primary key could not be foundNoSuchVirtualHostException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the virtual hosts where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static 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
Returns the virtual host where hostname = ? or throws aNoSuchVirtualHostExceptionif it could not be found.- Parameters:
hostname- the hostname- Returns:
- the matching virtual host
- Throws:
NoSuchVirtualHostException- if a matching virtual host could not be foundNoSuchVirtualHostException
-
fetchByHostname
Returns the virtual host where hostname = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
hostname- the hostname- Returns:
- the matching virtual host, or
nullif a matching virtual host could not be found
-
fetchByHostname
Returns the virtual host where hostname = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
hostname- the hostnameuseFinderCache- whether to use the finder cache- Returns:
- the matching virtual host, or
nullif a matching virtual host could not be found
-
removeByHostname
Removes the virtual host where hostname = ? from the database.- Parameters:
hostname- the hostname- Returns:
- the virtual host that was removed
- Throws:
NoSuchVirtualHostException
-
countByHostname
Returns the number of virtual hosts where hostname = ?.- Parameters:
hostname- the hostname- Returns:
- the number of matching virtual hosts
-
findByC_L
Returns all the virtual hosts where companyId = ? and layoutSetId = ?.- Parameters:
companyId- the company IDlayoutSetId- the layout set ID- Returns:
- the matching virtual hosts
-
findByC_L
Returns a range of all the virtual hosts where companyId = ? and layoutSetId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
companyId- the company IDlayoutSetId- the layout set IDstart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)- Returns:
- the range of matching virtual hosts
-
findByC_L
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
companyId- the company IDlayoutSetId- the layout set IDstart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching virtual hosts
-
findByC_L
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
companyId- the company IDlayoutSetId- the layout set IDstart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching virtual hosts
-
findByC_L_First
public static 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 IDlayoutSetId- the layout set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching virtual host
- Throws:
NoSuchVirtualHostException- if a matching virtual host could not be foundNoSuchVirtualHostException
-
fetchByC_L_First
public static 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 IDlayoutSetId- the layout set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching virtual host, or
nullif a matching virtual host could not be found
-
findByC_L_Last
public static 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 IDlayoutSetId- the layout set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching virtual host
- Throws:
NoSuchVirtualHostException- if a matching virtual host could not be foundNoSuchVirtualHostException
-
fetchByC_L_Last
public static 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 IDlayoutSetId- the layout set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching virtual host, or
nullif a matching virtual host could not be found
-
findByC_L_PrevAndNext
public static 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 hostcompanyId- the company IDlayoutSetId- the layout set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next virtual host
- Throws:
NoSuchVirtualHostException- if a virtual host with the primary key could not be foundNoSuchVirtualHostException
-
removeByC_L
public static void removeByC_L(long companyId, long layoutSetId) Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.- Parameters:
companyId- the company IDlayoutSetId- the layout set ID
-
countByC_L
public static int countByC_L(long companyId, long layoutSetId) Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.- Parameters:
companyId- the company IDlayoutSetId- the layout set ID- Returns:
- the number of matching virtual hosts
-
findByNotL_H
Returns all the virtual hosts where layoutSetId ≠ ? and hostname = ?.- Parameters:
layoutSetId- the layout set IDhostname- the hostname- Returns:
- the matching virtual hosts
-
findByNotL_H
Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
layoutSetId- the layout set IDhostname- the hostnamestart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)- Returns:
- the range of matching virtual hosts
-
findByNotL_H
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
layoutSetId- the layout set IDhostname- the hostnamestart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching virtual hosts
-
findByNotL_H
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
layoutSetId- the layout set IDhostname- the hostnamestart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching virtual hosts
-
findByNotL_H_First
public static 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 IDhostname- the hostnameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching virtual host
- Throws:
NoSuchVirtualHostException- if a matching virtual host could not be foundNoSuchVirtualHostException
-
fetchByNotL_H_First
public static 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 IDhostname- the hostnameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching virtual host, or
nullif a matching virtual host could not be found
-
findByNotL_H_Last
public static 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 IDhostname- the hostnameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching virtual host
- Throws:
NoSuchVirtualHostException- if a matching virtual host could not be foundNoSuchVirtualHostException
-
fetchByNotL_H_Last
public static 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 IDhostname- the hostnameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching virtual host, or
nullif a matching virtual host could not be found
-
findByNotL_H_PrevAndNext
public static 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 hostlayoutSetId- the layout set IDhostname- the hostnameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next virtual host
- Throws:
NoSuchVirtualHostException- if a virtual host with the primary key could not be foundNoSuchVirtualHostException
-
findByNotL_H
Returns all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
layoutSetId- the layout set IDhostnames- the hostnames- Returns:
- the matching virtual hosts
-
findByNotL_H
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
layoutSetId- the layout set IDhostnames- the hostnamesstart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)- Returns:
- the range of matching virtual hosts
-
findByNotL_H
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
layoutSetId- the layout set IDhostnames- the hostnamesstart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching virtual hosts
-
findByNotL_H
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
layoutSetId- the layout set IDhostnames- the hostnamesstart- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching virtual hosts
-
removeByNotL_H
Removes all the virtual hosts where layoutSetId ≠ ? and hostname = ? from the database.- Parameters:
layoutSetId- the layout set IDhostname- the hostname
-
countByNotL_H
Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.- Parameters:
layoutSetId- the layout set IDhostname- the hostname- Returns:
- the number of matching virtual hosts
-
countByNotL_H
Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = any ?.- Parameters:
layoutSetId- the layout set IDhostnames- the hostnames- Returns:
- the number of matching virtual hosts
-
findByC_L_D
public static VirtualHost findByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) throws NoSuchVirtualHostException Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or throws aNoSuchVirtualHostExceptionif it could not be found.- Parameters:
companyId- the company IDlayoutSetId- the layout set IDdefaultVirtualHost- the default virtual host- Returns:
- the matching virtual host
- Throws:
NoSuchVirtualHostException- if a matching virtual host could not be foundNoSuchVirtualHostException
-
fetchByC_L_D
public static VirtualHost fetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDlayoutSetId- the layout set IDdefaultVirtualHost- the default virtual host- Returns:
- the matching virtual host, or
nullif a matching virtual host could not be found
-
fetchByC_L_D
public static VirtualHost fetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost, boolean useFinderCache) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDlayoutSetId- the layout set IDdefaultVirtualHost- the default virtual hostuseFinderCache- whether to use the finder cache- Returns:
- the matching virtual host, or
nullif a matching virtual host could not be found
-
removeByC_L_D
public static 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 IDlayoutSetId- the layout set IDdefaultVirtualHost- the default virtual host- Returns:
- the virtual host that was removed
- Throws:
NoSuchVirtualHostException
-
countByC_L_D
public static 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 IDlayoutSetId- the layout set IDdefaultVirtualHost- the default virtual host- Returns:
- the number of matching virtual hosts
-
cacheResult
Caches the virtual host in the entity cache if it is enabled.- Parameters:
virtualHost- the virtual host
-
cacheResult
Caches the virtual hosts in the entity cache if it is enabled.- Parameters:
virtualHosts- the virtual hosts
-
create
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
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 foundNoSuchVirtualHostException
-
updateImpl
-
findByPrimaryKey
Returns the virtual host with the primary key or throws aNoSuchVirtualHostExceptionif 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 foundNoSuchVirtualHostException
-
fetchByPrimaryKey
Returns the virtual host with the primary key or returnsnullif it could not be found.- Parameters:
virtualHostId- the primary key of the virtual host- Returns:
- the virtual host, or
nullif a virtual host with the primary key could not be found
-
findAll
Returns all the virtual hosts.- Returns:
- the virtual hosts
-
findAll
Returns a range of all the virtual hosts.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
start- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)- Returns:
- the range of virtual hosts
-
findAll
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
start- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of virtual hosts
-
findAll
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Parameters:
start- the lower bound of the range of virtual hostsend- the upper bound of the range of virtual hosts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of virtual hosts
-
removeAll
public static void removeAll()Removes all the virtual hosts from the database. -
countAll
public static int countAll()Returns the number of virtual hosts.- Returns:
- the number of virtual hosts
-
getPersistence
-
setPersistence
-