@ProviderType public interface VirtualHostPersistence extends BasePersistence<VirtualHost>
Caching information and settings can be found in portal.properties
VirtualHostPersistenceImpl
,
VirtualHostUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(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(long companyId,
long layoutSetId)
Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.
|
int |
countByHostname(String hostname)
Returns the number of virtual hosts where hostname = ?.
|
VirtualHost |
create(long virtualHostId)
Creates a new virtual host with the primary key.
|
VirtualHost |
fetchByC_L(long companyId,
long layoutSetId)
Returns the virtual host where companyId = ? and layoutSetId = ? or returns
null if it could not be found. |
VirtualHost |
fetchByC_L(long companyId,
long layoutSetId,
boolean retrieveFromCache)
Returns the virtual host where companyId = ? and layoutSetId = ? or returns
null if it could not be found, optionally using the finder cache. |
VirtualHost |
fetchByHostname(String hostname)
Returns the virtual host where hostname = ? or returns
null if it could not be found. |
VirtualHost |
fetchByHostname(String hostname,
boolean retrieveFromCache)
Returns the virtual host where hostname = ? or returns
null if it could not be found, optionally using the finder cache. |
VirtualHost |
fetchByPrimaryKey(long virtualHostId)
Returns the virtual host with the primary key or returns
null if it could not be found. |
Map<Serializable,VirtualHost> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
List<VirtualHost> |
findAll()
Returns all the virtual hosts.
|
List<VirtualHost> |
findAll(int start,
int end)
Returns a range of all the virtual hosts.
|
List<VirtualHost> |
findAll(int start,
int end,
OrderByComparator<VirtualHost> orderByComparator)
Returns an ordered range of all the virtual hosts.
|
List<VirtualHost> |
findAll(int start,
int end,
OrderByComparator<VirtualHost> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the virtual hosts.
|
VirtualHost |
findByC_L(long companyId,
long layoutSetId)
Returns the virtual host where companyId = ? and layoutSetId = ? or throws a
NoSuchVirtualHostException if it could not be found. |
VirtualHost |
findByHostname(String hostname)
Returns the virtual host where hostname = ? or throws a
NoSuchVirtualHostException if it could not be found. |
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(long companyId,
long layoutSetId)
Removes the virtual host where companyId = ? and layoutSetId = ? from the database.
|
VirtualHost |
removeByHostname(String hostname)
Removes the virtual host where hostname = ? from the database.
|
VirtualHost |
updateImpl(VirtualHost virtualHost) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
VirtualHost findByHostname(String hostname) throws NoSuchVirtualHostException
NoSuchVirtualHostException
if it could not be found.hostname
- the hostnameNoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByHostname(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(String hostname, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.hostname
- the hostnameretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching virtual host could not be foundVirtualHost removeByHostname(String hostname) throws NoSuchVirtualHostException
hostname
- the hostnameNoSuchVirtualHostException
int countByHostname(String hostname)
hostname
- the hostnameVirtualHost findByC_L(long companyId, long layoutSetId) throws NoSuchVirtualHostException
NoSuchVirtualHostException
if it could not be found.companyId
- the company IDlayoutSetId
- the layout set IDNoSuchVirtualHostException
- if a matching virtual host could not be foundVirtualHost fetchByC_L(long companyId, long layoutSetId)
null
if it could not be found. Uses the finder cache.companyId
- the company IDlayoutSetId
- the layout set IDnull
if a matching virtual host could not be foundVirtualHost fetchByC_L(long companyId, long layoutSetId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDlayoutSetId
- the layout set IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching virtual host could not be foundVirtualHost removeByC_L(long companyId, long layoutSetId) throws NoSuchVirtualHostException
companyId
- the company IDlayoutSetId
- the layout set IDNoSuchVirtualHostException
int countByC_L(long companyId, long layoutSetId)
companyId
- the company IDlayoutSetId
- the layout set IDvoid cacheResult(VirtualHost virtualHost)
virtualHost
- the virtual hostvoid cacheResult(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 foundMap<Serializable,VirtualHost> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<VirtualHost>
List<VirtualHost> findAll()
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from VirtualHostModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of virtual hostsend
- the upper bound of the range of virtual hosts (not inclusive)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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from VirtualHostModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)List<VirtualHost> findAll(int start, int end, OrderByComparator<VirtualHost> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from VirtualHostModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()