@ProviderType public interface VirtualHostPersistence extends BasePersistence<VirtualHost>, CTPersistence<VirtualHost>
Caching information and settings can be found in portal.properties
VirtualHostUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<VirtualHost> virtualHosts)
Caches the virtual hosts in the entity cache if it is enabled.
|
void |
cacheResult(VirtualHost virtualHost)
Caches the virtual host in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of virtual hosts.
|
int |
countByC_L_D(long companyId,
long layoutSetId,
boolean defaultVirtualHost)
Returns the number of virtual hosts where companyId = ? and layoutSetId = ? and defaultVirtualHost = ?.
|
int |
countByC_L(long companyId,
long layoutSetId)
Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of virtual hosts where companyId = ?.
|
int |
countByHostname(java.lang.String hostname)
Returns the number of virtual hosts where hostname = ?.
|
int |
countByNotL_H(long layoutSetId,
java.lang.String hostname)
Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.
|
int |
countByNotL_H(long layoutSetId,
java.lang.String[] hostnames)
Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = any ?.
|
VirtualHost |
create(long virtualHostId)
Creates a new virtual host with the primary key.
|
VirtualHost |
fetchByC_L_D(long companyId,
long layoutSetId,
boolean defaultVirtualHost)
Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returns
null if it could not be found. |
VirtualHost |
fetchByC_L_D(long companyId,
long layoutSetId,
boolean defaultVirtualHost,
boolean useFinderCache)
Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returns
null if it could not be found, optionally using the finder cache. |
VirtualHost |
fetchByC_L_First(long companyId,
long layoutSetId,
OrderByComparator<VirtualHost> orderByComparator)
Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.
|
VirtualHost |
fetchByC_L_Last(long companyId,
long layoutSetId,
OrderByComparator<VirtualHost> orderByComparator)
Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.
|
VirtualHost |
fetchByCompanyId_First(long companyId,
OrderByComparator<VirtualHost> orderByComparator)
Returns the first virtual host in the ordered set where companyId = ?.
|
VirtualHost |
fetchByCompanyId_Last(long companyId,
OrderByComparator<VirtualHost> orderByComparator)
Returns the last virtual host in the ordered set where companyId = ?.
|
VirtualHost |
fetchByHostname(java.lang.String hostname)
Returns the virtual host where hostname = ? or returns
null if it could not be found. |
VirtualHost |
fetchByHostname(java.lang.String hostname,
boolean useFinderCache)
Returns the virtual host where hostname = ? or returns
null if it could not be found, optionally using the finder cache. |
VirtualHost |
fetchByNotL_H_First(long layoutSetId,
java.lang.String hostname,
OrderByComparator<VirtualHost> orderByComparator)
Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
|
VirtualHost |
fetchByNotL_H_Last(long layoutSetId,
java.lang.String hostname,
OrderByComparator<VirtualHost> orderByComparator)
Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
|
VirtualHost |
fetchByPrimaryKey(long virtualHostId)
Returns the virtual host with the primary key or returns
null if it could not be found. |
java.util.List<VirtualHost> |
findAll()
Returns all the virtual hosts.
|
java.util.List<VirtualHost> |
findAll(int start,
int end)
Returns a range of all the virtual hosts.
|
java.util.List<VirtualHost> |
findAll(int start,
int end,
OrderByComparator<VirtualHost> orderByComparator)
Returns an ordered range of all the virtual hosts.
|
java.util.List<VirtualHost> |
findAll(int start,
int end,
OrderByComparator<VirtualHost> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the virtual hosts.
|
VirtualHost |
findByC_L_D(long companyId,
long layoutSetId,
boolean defaultVirtualHost)
Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or throws a
NoSuchVirtualHostException if it could not be found. |
VirtualHost |
findByC_L_First(long companyId,
long layoutSetId,
OrderByComparator<VirtualHost> orderByComparator)
Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.
|
VirtualHost |
findByC_L_Last(long companyId,
long layoutSetId,
OrderByComparator<VirtualHost> orderByComparator)
Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.
|
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 = ?.
|
java.util.List<VirtualHost> |
findByC_L(long companyId,
long layoutSetId)
Returns all the virtual hosts where companyId = ? and layoutSetId = ?.
|
java.util.List<VirtualHost> |
findByC_L(long companyId,
long layoutSetId,
int start,
int end)
Returns a range of all the virtual hosts where companyId = ? and layoutSetId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
VirtualHost |
findByCompanyId_First(long companyId,
OrderByComparator<VirtualHost> orderByComparator)
Returns the first virtual host in the ordered set where companyId = ?.
|
VirtualHost |
findByCompanyId_Last(long companyId,
OrderByComparator<VirtualHost> orderByComparator)
Returns the last virtual host in the ordered set where companyId = ?.
|
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 = ?.
|
java.util.List<VirtualHost> |
findByCompanyId(long companyId)
Returns all the virtual hosts where companyId = ?.
|
java.util.List<VirtualHost> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the virtual hosts where companyId = ?.
|
java.util.List<VirtualHost> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<VirtualHost> orderByComparator)
Returns an ordered range of all the virtual hosts where companyId = ?.
|
java.util.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 = ?.
|
VirtualHost |
findByHostname(java.lang.String hostname)
Returns the virtual host where hostname = ? or throws a
NoSuchVirtualHostException if it could not be found. |
VirtualHost |
findByNotL_H_First(long layoutSetId,
java.lang.String hostname,
OrderByComparator<VirtualHost> orderByComparator)
Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
|
VirtualHost |
findByNotL_H_Last(long layoutSetId,
java.lang.String hostname,
OrderByComparator<VirtualHost> orderByComparator)
Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
|
VirtualHost[] |
findByNotL_H_PrevAndNext(long virtualHostId,
long layoutSetId,
java.lang.String hostname,
OrderByComparator<VirtualHost> orderByComparator)
Returns the virtual hosts before and after the current virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.
|
java.util.List<VirtualHost> |
findByNotL_H(long layoutSetId,
java.lang.String hostname)
Returns all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
|
java.util.List<VirtualHost> |
findByNotL_H(long layoutSetId,
java.lang.String[] hostnames)
Returns all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.
|
java.util.List<VirtualHost> |
findByNotL_H(long layoutSetId,
java.lang.String[] hostnames,
int start,
int end)
Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.
|
java.util.List<VirtualHost> |
findByNotL_H(long layoutSetId,
java.lang.String[] hostnames,
int start,
int end,
OrderByComparator<VirtualHost> orderByComparator)
Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.
|
java.util.List<VirtualHost> |
findByNotL_H(long layoutSetId,
java.lang.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.
|
java.util.List<VirtualHost> |
findByNotL_H(long layoutSetId,
java.lang.String hostname,
int start,
int end)
Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
|
java.util.List<VirtualHost> |
findByNotL_H(long layoutSetId,
java.lang.String hostname,
int start,
int end,
OrderByComparator<VirtualHost> orderByComparator)
Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
|
java.util.List<VirtualHost> |
findByNotL_H(long layoutSetId,
java.lang.String hostname,
int start,
int end,
OrderByComparator<VirtualHost> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.
|
VirtualHost |
findByPrimaryKey(long virtualHostId)
Returns the virtual host with the primary key or throws a
NoSuchVirtualHostException if it could not be found. |
VirtualHost |
remove(long virtualHostId)
Removes the virtual host with the primary key from the database.
|
void |
removeAll()
Removes all the virtual hosts from the database.
|
VirtualHost |
removeByC_L_D(long companyId,
long layoutSetId,
boolean defaultVirtualHost)
Removes the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? from the database.
|
void |
removeByC_L(long companyId,
long layoutSetId)
Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the virtual hosts where companyId = ? from the database.
|
VirtualHost |
removeByHostname(java.lang.String hostname)
Removes the virtual host where hostname = ? from the database.
|
void |
removeByNotL_H(long layoutSetId,
java.lang.String hostname)
Removes all the virtual hosts where layoutSetId ≠ ? and hostname = ? from the database.
|
VirtualHost |
updateImpl(VirtualHost virtualHost) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
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, setDataSource, unregisterListener, update, update
java.util.List<VirtualHost> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<VirtualHost> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of virtual hostsend
- the upper bound of the range of virtual hosts (not inclusive)java.util.List<VirtualHost> findByCompanyId(long companyId, int start, int end, OrderByComparator<VirtualHost> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)java.util.List<VirtualHost> findByCompanyId(long companyId, int start, int end, OrderByComparator<VirtualHost> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheVirtualHost findByCompanyId_First(long companyId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByCompanyId_First(long companyId, OrderByComparator<VirtualHost> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching virtual host could not be foundVirtualHost findByCompanyId_Last(long companyId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByCompanyId_Last(long companyId, OrderByComparator<VirtualHost> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching virtual host could not be foundVirtualHost[] findByCompanyId_PrevAndNext(long virtualHostId, long companyId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
virtualHostId
- the primary key of the current virtual hostcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualHostException
- if a virtual host with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDVirtualHost findByHostname(java.lang.String hostname) throws NoSuchVirtualHostException
NoSuchVirtualHostException
if it could not be found.hostname
- the hostnameNoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByHostname(java.lang.String hostname)
null
if it could not be found. Uses the finder cache.hostname
- the hostnamenull
if a matching virtual host could not be foundVirtualHost fetchByHostname(java.lang.String hostname, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.hostname
- the hostnameuseFinderCache
- whether to use the finder cachenull
if a matching virtual host could not be foundVirtualHost removeByHostname(java.lang.String hostname) throws NoSuchVirtualHostException
hostname
- the hostnameNoSuchVirtualHostException
int countByHostname(java.lang.String hostname)
hostname
- the hostnamejava.util.List<VirtualHost> findByC_L(long companyId, long layoutSetId)
companyId
- the company IDlayoutSetId
- the layout set IDjava.util.List<VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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)java.util.List<VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end, OrderByComparator<VirtualHost> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)java.util.List<VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end, OrderByComparator<VirtualHost> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheVirtualHost findByC_L_First(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
companyId
- the company IDlayoutSetId
- the layout set IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByC_L_First(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator)
companyId
- the company IDlayoutSetId
- the layout set IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching virtual host could not be foundVirtualHost findByC_L_Last(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
companyId
- the company IDlayoutSetId
- the layout set IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByC_L_Last(long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator)
companyId
- the company IDlayoutSetId
- the layout set IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching virtual host could not be foundVirtualHost[] findByC_L_PrevAndNext(long virtualHostId, long companyId, long layoutSetId, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
virtualHostId
- the primary key of the current virtual hostcompanyId
- the company IDlayoutSetId
- the layout set IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualHostException
- if a virtual host with the primary key could not be foundvoid removeByC_L(long companyId, long layoutSetId)
companyId
- the company IDlayoutSetId
- the layout set IDint countByC_L(long companyId, long layoutSetId)
companyId
- the company IDlayoutSetId
- the layout set IDjava.util.List<VirtualHost> findByNotL_H(long layoutSetId, java.lang.String hostname)
layoutSetId
- the layout set IDhostname
- the hostnamejava.util.List<VirtualHost> findByNotL_H(long layoutSetId, java.lang.String hostname, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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)java.util.List<VirtualHost> findByNotL_H(long layoutSetId, java.lang.String hostname, int start, int end, OrderByComparator<VirtualHost> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)java.util.List<VirtualHost> findByNotL_H(long layoutSetId, java.lang.String hostname, int start, int end, OrderByComparator<VirtualHost> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheVirtualHost findByNotL_H_First(long layoutSetId, java.lang.String hostname, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
layoutSetId
- the layout set IDhostname
- the hostnameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByNotL_H_First(long layoutSetId, java.lang.String hostname, OrderByComparator<VirtualHost> orderByComparator)
layoutSetId
- the layout set IDhostname
- the hostnameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching virtual host could not be foundVirtualHost findByNotL_H_Last(long layoutSetId, java.lang.String hostname, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
layoutSetId
- the layout set IDhostname
- the hostnameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByNotL_H_Last(long layoutSetId, java.lang.String hostname, OrderByComparator<VirtualHost> orderByComparator)
layoutSetId
- the layout set IDhostname
- the hostnameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching virtual host could not be foundVirtualHost[] findByNotL_H_PrevAndNext(long virtualHostId, long layoutSetId, java.lang.String hostname, OrderByComparator<VirtualHost> orderByComparator) throws NoSuchVirtualHostException
virtualHostId
- the primary key of the current virtual hostlayoutSetId
- the layout set IDhostname
- the hostnameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualHostException
- if a virtual host with the primary key could not be foundjava.util.List<VirtualHost> findByNotL_H(long layoutSetId, java.lang.String[] hostnames)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
layoutSetId
- the layout set IDhostnames
- the hostnamesjava.util.List<VirtualHost> findByNotL_H(long layoutSetId, java.lang.String[] hostnames, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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)java.util.List<VirtualHost> findByNotL_H(long layoutSetId, java.lang.String[] hostnames, int start, int end, OrderByComparator<VirtualHost> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)java.util.List<VirtualHost> findByNotL_H(long layoutSetId, java.lang.String[] hostnames, int start, int end, OrderByComparator<VirtualHost> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeByNotL_H(long layoutSetId, java.lang.String hostname)
layoutSetId
- the layout set IDhostname
- the hostnameint countByNotL_H(long layoutSetId, java.lang.String hostname)
layoutSetId
- the layout set IDhostname
- the hostnameint countByNotL_H(long layoutSetId, java.lang.String[] hostnames)
layoutSetId
- the layout set IDhostnames
- the hostnamesVirtualHost findByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) throws NoSuchVirtualHostException
NoSuchVirtualHostException
if it could not be found.companyId
- the company IDlayoutSetId
- the layout set IDdefaultVirtualHost
- the default virtual hostNoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost)
null
if it could not be found. Uses the finder cache.companyId
- the company IDlayoutSetId
- the layout set IDdefaultVirtualHost
- the default virtual hostnull
if a matching virtual host could not be foundVirtualHost fetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDlayoutSetId
- the layout set IDdefaultVirtualHost
- the default virtual hostuseFinderCache
- whether to use the finder cachenull
if a matching virtual host could not be foundVirtualHost removeByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) throws NoSuchVirtualHostException
companyId
- the company IDlayoutSetId
- the layout set IDdefaultVirtualHost
- the default virtual hostNoSuchVirtualHostException
int countByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost)
companyId
- the company IDlayoutSetId
- the layout set IDdefaultVirtualHost
- the default virtual hostvoid cacheResult(VirtualHost virtualHost)
virtualHost
- the virtual hostvoid cacheResult(java.util.List<VirtualHost> virtualHosts)
virtualHosts
- the virtual hostsVirtualHost create(long virtualHostId)
virtualHostId
- the primary key for the new virtual hostVirtualHost remove(long virtualHostId) throws NoSuchVirtualHostException
virtualHostId
- the primary key of the virtual hostNoSuchVirtualHostException
- if a virtual host with the primary key could not be foundVirtualHost updateImpl(VirtualHost virtualHost)
VirtualHost findByPrimaryKey(long virtualHostId) throws NoSuchVirtualHostException
NoSuchVirtualHostException
if it could not be found.virtualHostId
- the primary key of the virtual hostNoSuchVirtualHostException
- if a virtual host with the primary key could not be foundVirtualHost fetchByPrimaryKey(long virtualHostId)
null
if it could not be found.virtualHostId
- the primary key of the virtual hostnull
if a virtual host with the primary key could not be foundjava.util.List<VirtualHost> findAll()
java.util.List<VirtualHost> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
start
- the lower bound of the range of virtual hostsend
- the upper bound of the range of virtual hosts (not inclusive)java.util.List<VirtualHost> findAll(int start, int end, OrderByComparator<VirtualHost> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)java.util.List<VirtualHost> findAll(int start, int end, OrderByComparator<VirtualHost> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from VirtualHostModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()