Interface VirtualHostPersistence
- All Superinterfaces:
BasePersistence<VirtualHost>
,CTPersistence<VirtualHost>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(VirtualHost virtualHost) Caches the virtual host in the entity cache if it is enabled.void
cacheResult
(List<VirtualHost> virtualHosts) Caches the virtual hosts in the entity cache if it is enabled.int
countAll()
Returns the number of virtual hosts.int
countByC_L
(long companyId, long layoutSetId) Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.int
countByC_L_D
(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the number of virtual hosts where companyId = ? and layoutSetId = ? and defaultVirtualHost = ?.int
countByCompanyId
(long companyId) Returns the number of virtual hosts where companyId = ?.int
countByHostname
(String hostname) Returns the number of virtual hosts where hostname = ?.int
countByNotL_H
(long layoutSetId, String hostname) Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.int
countByNotL_H
(long layoutSetId, String[] hostnames) Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = any ?.create
(long virtualHostId) Creates a new virtual host with the primary key.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.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.fetchByC_L_First
(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.fetchByC_L_Last
(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.fetchByCompanyId_First
(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ?.fetchByHostname
(String hostname) Returns the virtual host where hostname = ? or returnsnull
if it could not be found.fetchByHostname
(String hostname, boolean useFinderCache) Returns the virtual host where hostname = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByNotL_H_First
(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.fetchByNotL_H_Last
(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.fetchByPrimaryKey
(long virtualHostId) Returns the virtual host with the primary key or returnsnull
if it could not be found.findAll()
Returns all the virtual hosts.findAll
(int start, int end) Returns a range of all the virtual hosts.findAll
(int start, int end, OrderByComparator<VirtualHost> orderByComparator) Returns an ordered range of all the virtual hosts.findAll
(int start, int end, OrderByComparator<VirtualHost> orderByComparator, boolean useFinderCache) Returns an ordered range of all the virtual hosts.findByC_L
(long companyId, long layoutSetId) Returns all the virtual hosts where companyId = ? and layoutSetId = ?.findByC_L
(long companyId, long layoutSetId, int start, int end) Returns a range of all the virtual hosts where companyId = ? and layoutSetId = ?.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 = ?.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 = ?.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.findByC_L_First
(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.findByC_L_Last
(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.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 = ?.findByCompanyId
(long companyId) Returns all the virtual hosts where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the virtual hosts where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<VirtualHost> orderByComparator) Returns an ordered range of all the virtual hosts where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<VirtualHost> orderByComparator, boolean useFinderCache) Returns an ordered range of all the virtual hosts where companyId = ?.findByCompanyId_First
(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ?.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 = ?.findByHostname
(String hostname) Returns the virtual host where hostname = ? or throws aNoSuchVirtualHostException
if it could not be found.findByNotL_H
(long layoutSetId, String hostname) Returns all the virtual hosts where layoutSetId ≠ ? and hostname = ?.findByNotL_H
(long layoutSetId, String[] hostnames) Returns all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.findByNotL_H
(long layoutSetId, String[] hostnames, int start, int end) Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.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 ?.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.findByNotL_H
(long layoutSetId, String hostname, int start, int end) Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.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 = ?.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 = ?.findByNotL_H_First
(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.findByNotL_H_Last
(long layoutSetId, String hostname, OrderByComparator<VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.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 = ?.findByPrimaryKey
(long virtualHostId) Returns the virtual host with the primary key or throws aNoSuchVirtualHostException
if it could not be found.remove
(long virtualHostId) Removes the virtual host with the primary key from the database.void
Removes all the virtual hosts from the database.void
removeByC_L
(long companyId, long layoutSetId) Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.removeByC_L_D
(long companyId, long layoutSetId, boolean defaultVirtualHost) Removes the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? from the database.void
removeByCompanyId
(long companyId) Removes all the virtual hosts where companyId = ? from the database.removeByHostname
(String hostname) Removes the virtual host where hostname = ? from the database.void
removeByNotL_H
(long layoutSetId, String hostname) Removes all the virtual hosts where layoutSetId ≠ ? and hostname = ? from the database.updateImpl
(VirtualHost virtualHost) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
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
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
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
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 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 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
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 found
-
fetchByCompanyId_Last
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
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 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
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 found
-
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
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
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
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 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 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
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 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 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
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 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 IDlayoutSetId
- 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 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
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
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
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 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 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
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 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 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
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 found
-
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
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
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
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
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 found
-
fetchByC_L_D
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
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
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
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 found
-
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 found
-
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
List<VirtualHost> 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
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
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
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
-