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 void
cacheResult
(VirtualHost virtualHost) Caches the virtual host in the entity cache if it is enabled.static void
cacheResult
(List<VirtualHost> virtualHosts) Caches the virtual hosts in the entity cache if it is enabled.static void
static void
clearCache
(VirtualHost virtualHost) static int
countAll()
Returns the number of virtual hosts.static int
countByC_L
(long companyId, long layoutSetId) Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.static int
countByC_L_D
(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the number of virtual hosts where companyId = ? and layoutSetId = ? and defaultVirtualHost = ?.static int
countByCompanyId
(long companyId) Returns the number of virtual hosts where companyId = ?.static int
countByHostname
(String hostname) Returns the number of virtual hosts where hostname = ?.static int
countByNotL_H
(long layoutSetId, String hostname) Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.static int
countByNotL_H
(long layoutSetId, String[] hostnames) Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = any ?.static long
countWithDynamicQuery
(DynamicQuery dynamicQuery) static VirtualHost
create
(long virtualHostId) Creates a new virtual host with the primary key.static VirtualHost
fetchByC_L_D
(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returnsnull
if it could not be found.static VirtualHost
fetchByC_L_D
(long companyId, long layoutSetId, boolean defaultVirtualHost, boolean useFinderCache) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.static VirtualHost
fetchByCompanyId_First
(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.static VirtualHost
fetchByCompanyId_Last
(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ?.static VirtualHost
fetchByHostname
(String hostname) Returns the virtual host where hostname = ? or returnsnull
if it could not be found.static VirtualHost
fetchByHostname
(String hostname, boolean useFinderCache) Returns the virtual host where hostname = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.static VirtualHost
fetchByPrimaryKey
(long virtualHostId) Returns the virtual host with the primary key or returnsnull
if 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 VirtualHost
findByC_L_D
(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or throws aNoSuchVirtualHostException
if it could not be found.static VirtualHost
findByC_L_First
(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.static VirtualHost
findByC_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 VirtualHost
findByCompanyId_First
(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.static VirtualHost
findByCompanyId_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 VirtualHost
findByHostname
(String hostname) Returns the virtual host where hostname = ? or throws aNoSuchVirtualHostException
if 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 VirtualHost
findByNotL_H_First
(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.static VirtualHost
findByNotL_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 VirtualHost
findByPrimaryKey
(long virtualHostId) Returns the virtual host with the primary key or throws aNoSuchVirtualHostException
if 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 VirtualHostPersistence
static VirtualHost
remove
(long virtualHostId) Removes the virtual host with the primary key from the database.static void
Removes all the virtual hosts from the database.static void
removeByC_L
(long companyId, long layoutSetId) Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.static VirtualHost
removeByC_L_D
(long companyId, long layoutSetId, boolean defaultVirtualHost) Removes the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the virtual hosts where companyId = ? from the database.static VirtualHost
removeByHostname
(String hostname) Removes the virtual host where hostname = ? from the database.static void
removeByNotL_H
(long layoutSetId, String hostname) Removes all the virtual hosts where layoutSetId ≠ ? and hostname = ? from the database.static void
setPersistence
(VirtualHostPersistence persistence) static VirtualHost
update
(VirtualHost virtualHost) static VirtualHost
update
(VirtualHost virtualHost, ServiceContext serviceContext) static VirtualHost
updateImpl
(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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
null
if 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
null
if 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 aNoSuchVirtualHostException
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 foundNoSuchVirtualHostException
-
fetchByHostname
Returns the virtual host where hostname = ? or returnsnull
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
Returns the virtual host where hostname = ? or returnsnull
if 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
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
null
if 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
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
null
if 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
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 aNoSuchVirtualHostException
if 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 returnsnull
if 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
null
if 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 returnsnull
if 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
null
if 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 aNoSuchVirtualHostException
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 foundNoSuchVirtualHostException
-
fetchByPrimaryKey
Returns the virtual host with the primary key or returnsnull
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
-