Class VirtualHostPersistenceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory
,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
,com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsFields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Initializes the virtual host persistence.void
cacheResult
(com.liferay.portal.kernel.model.VirtualHost virtualHost) Caches the virtual host in the entity cache if it is enabled.void
cacheResult
(List<com.liferay.portal.kernel.model.VirtualHost> virtualHosts) Caches the virtual hosts in the entity cache if it is enabled.protected void
cacheUniqueFindersCache
(VirtualHostModelImpl virtualHostModelImpl) void
Clears the cache for all virtual hosts.void
clearCache
(com.liferay.portal.kernel.model.VirtualHost virtualHost) Clears the cache for the virtual host.void
clearCache
(List<com.liferay.portal.kernel.model.VirtualHost> virtualHosts) void
clearCache
(Set<Serializable> primaryKeys) 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 ?.com.liferay.portal.kernel.model.VirtualHost
create
(long virtualHostId) Creates a new virtual host with the primary key.void
destroy()
com.liferay.portal.kernel.model.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.com.liferay.portal.kernel.model.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.com.liferay.portal.kernel.model.VirtualHost
fetchByC_L_First
(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.com.liferay.portal.kernel.model.VirtualHost
fetchByC_L_Last
(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.com.liferay.portal.kernel.model.VirtualHost
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.com.liferay.portal.kernel.model.VirtualHost
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ?.com.liferay.portal.kernel.model.VirtualHost
fetchByHostname
(String hostname) Returns the virtual host where hostname = ? or returnsnull
if it could not be found.com.liferay.portal.kernel.model.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.com.liferay.portal.kernel.model.VirtualHost
fetchByNotL_H_First
(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.com.liferay.portal.kernel.model.VirtualHost
fetchByNotL_H_Last
(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.com.liferay.portal.kernel.model.VirtualHost
fetchByPrimaryKey
(long virtualHostId) Returns the virtual host with the primary key or returnsnull
if it could not be found.com.liferay.portal.kernel.model.VirtualHost
fetchByPrimaryKey
(Serializable primaryKey) Returns the virtual host with the primary key or returnsnull
if it could not be found.Map<Serializable,
com.liferay.portal.kernel.model.VirtualHost> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) List<com.liferay.portal.kernel.model.VirtualHost>
findAll()
Returns all the virtual hosts.List<com.liferay.portal.kernel.model.VirtualHost>
findAll
(int start, int end) Returns a range of all the virtual hosts.List<com.liferay.portal.kernel.model.VirtualHost>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns an ordered range of all the virtual hosts.List<com.liferay.portal.kernel.model.VirtualHost>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache) Returns an ordered range of all the virtual hosts.List<com.liferay.portal.kernel.model.VirtualHost>
findByC_L
(long companyId, long layoutSetId) Returns all the virtual hosts where companyId = ? and layoutSetId = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByC_L
(long companyId, long layoutSetId, int start, int end) Returns a range of all the virtual hosts where companyId = ? and layoutSetId = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByC_L
(long companyId, long layoutSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns an ordered range of all the virtual hosts where companyId = ? and layoutSetId = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByC_L
(long companyId, long layoutSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache) Returns an ordered range of all the virtual hosts where companyId = ? and layoutSetId = ?.com.liferay.portal.kernel.model.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.com.liferay.portal.kernel.model.VirtualHost
findByC_L_First
(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.com.liferay.portal.kernel.model.VirtualHost
findByC_L_Last
(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.com.liferay.portal.kernel.model.VirtualHost[]
findByC_L_PrevAndNext
(long virtualHostId, long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ? and layoutSetId = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByCompanyId
(long companyId) Returns all the virtual hosts where companyId = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the virtual hosts where companyId = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns an ordered range of all the virtual hosts where companyId = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache) Returns an ordered range of all the virtual hosts where companyId = ?.com.liferay.portal.kernel.model.VirtualHost
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.com.liferay.portal.kernel.model.VirtualHost
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ?.com.liferay.portal.kernel.model.VirtualHost[]
findByCompanyId_PrevAndNext
(long virtualHostId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ?.com.liferay.portal.kernel.model.VirtualHost
findByHostname
(String hostname) Returns the virtual host where hostname = ? or throws aNoSuchVirtualHostException
if it could not be found.List<com.liferay.portal.kernel.model.VirtualHost>
findByNotL_H
(long layoutSetId, String hostname) Returns all the virtual hosts where layoutSetId ≠ ? and hostname = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByNotL_H
(long layoutSetId, String[] hostnames) Returns all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByNotL_H
(long layoutSetId, String[] hostnames, int start, int end) Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByNotL_H
(long layoutSetId, String[] hostnames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = any ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByNotL_H
(long layoutSetId, String[] hostnames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache) Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?, optionally using the finder cache.List<com.liferay.portal.kernel.model.VirtualHost>
findByNotL_H
(long layoutSetId, String hostname, int start, int end) Returns a range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByNotL_H
(long layoutSetId, String hostname, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.List<com.liferay.portal.kernel.model.VirtualHost>
findByNotL_H
(long layoutSetId, String hostname, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean useFinderCache) Returns an ordered range of all the virtual hosts where layoutSetId ≠ ? and hostname = ?.com.liferay.portal.kernel.model.VirtualHost
findByNotL_H_First
(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.com.liferay.portal.kernel.model.VirtualHost
findByNotL_H_Last
(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.com.liferay.portal.kernel.model.VirtualHost[]
findByNotL_H_PrevAndNext
(long virtualHostId, long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the virtual hosts before and after the current virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.com.liferay.portal.kernel.model.VirtualHost
findByPrimaryKey
(long virtualHostId) Returns the virtual host with the primary key or throws aNoSuchVirtualHostException
if it could not be found.com.liferay.portal.kernel.model.VirtualHost
findByPrimaryKey
(Serializable primaryKey) Returns the virtual host with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelException
if it could not be found.protected com.liferay.portal.kernel.model.VirtualHost
getByC_L_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.VirtualHost
getByCompanyId_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.VirtualHost
getByNotL_H_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous) getCTColumnNames
(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.dao.orm.EntityCache
protected com.liferay.portal.kernel.dao.orm.FinderCache
protected String
protected String
com.liferay.portal.kernel.model.VirtualHost
remove
(long virtualHostId) Removes the virtual host with the primary key from the database.com.liferay.portal.kernel.model.VirtualHost
remove
(Serializable primaryKey) 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.com.liferay.portal.kernel.model.VirtualHost
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.com.liferay.portal.kernel.model.VirtualHost
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.protected com.liferay.portal.kernel.model.VirtualHost
removeImpl
(com.liferay.portal.kernel.model.VirtualHost virtualHost) com.liferay.portal.kernel.model.VirtualHost
updateImpl
(com.liferay.portal.kernel.model.VirtualHost virtualHost) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
-
Constructor Details
-
VirtualHostPersistenceImpl
public VirtualHostPersistenceImpl()
-
-
Method Details
-
findByCompanyId
Returns all the virtual hosts where companyId = ?.- Specified by:
findByCompanyId
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company ID- Returns:
- the matching virtual hosts
-
findByCompanyId
public List<com.liferay.portal.kernel.model.VirtualHost> findByCompanyId(long companyId, int start, int end) 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
.- Specified by:
findByCompanyId
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findByCompanyId
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findByCompanyId
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the first virtual host in the ordered set where companyId = ?.- Specified by:
findByCompanyId_First
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching virtual host
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a matching virtual host could not be found
-
fetchByCompanyId_First
public com.liferay.portal.kernel.model.VirtualHost fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_First
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the last virtual host in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Last
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching virtual host
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a matching virtual host could not be found
-
fetchByCompanyId_Last
public com.liferay.portal.kernel.model.VirtualHost fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Last
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost[] findByCompanyId_PrevAndNext(long virtualHostId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ?.- Specified by:
findByCompanyId_PrevAndNext
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a virtual host with the primary key could not be found
-
getByCompanyId_PrevAndNext
protected com.liferay.portal.kernel.model.VirtualHost getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous) -
removeByCompanyId
public void removeByCompanyId(long companyId) Removes all the virtual hosts where companyId = ? from the database.- Specified by:
removeByCompanyId
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company ID
-
countByCompanyId
public int countByCompanyId(long companyId) Returns the number of virtual hosts where companyId = ?.- Specified by:
countByCompanyId
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company ID- Returns:
- the number of matching virtual hosts
-
findByHostname
public com.liferay.portal.kernel.model.VirtualHost findByHostname(String hostname) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the virtual host where hostname = ? or throws aNoSuchVirtualHostException
if it could not be found.- Specified by:
findByHostname
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
hostname
- the hostname- Returns:
- the matching virtual host
- Throws:
com.liferay.portal.kernel.exception.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.- Specified by:
fetchByHostname
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
hostname
- the hostname- Returns:
- the matching virtual host, or
null
if a matching virtual host could not be found
-
fetchByHostname
public com.liferay.portal.kernel.model.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.- Specified by:
fetchByHostname
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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
public com.liferay.portal.kernel.model.VirtualHost removeByHostname(String hostname) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Removes the virtual host where hostname = ? from the database.- Specified by:
removeByHostname
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
hostname
- the hostname- Returns:
- the virtual host that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
-
countByHostname
Returns the number of virtual hosts where hostname = ?.- Specified by:
countByHostname
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
hostname
- the hostname- Returns:
- the number of matching virtual hosts
-
findByC_L
public List<com.liferay.portal.kernel.model.VirtualHost> findByC_L(long companyId, long layoutSetId) Returns all the virtual hosts where companyId = ? and layoutSetId = ?.- Specified by:
findByC_L
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDlayoutSetId
- the layout set ID- Returns:
- the matching virtual hosts
-
findByC_L
public List<com.liferay.portal.kernel.model.VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end) 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
.- Specified by:
findByC_L
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findByC_L
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findByC_L(long companyId, long layoutSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findByC_L
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost findByC_L_First(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.- Specified by:
findByC_L_First
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDlayoutSetId
- the layout set IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching virtual host
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a matching virtual host could not be found
-
fetchByC_L_First
public com.liferay.portal.kernel.model.VirtualHost fetchByC_L_First(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where companyId = ? and layoutSetId = ?.- Specified by:
fetchByC_L_First
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost findByC_L_Last(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.- Specified by:
findByC_L_Last
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDlayoutSetId
- the layout set IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching virtual host
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a matching virtual host could not be found
-
fetchByC_L_Last
public com.liferay.portal.kernel.model.VirtualHost fetchByC_L_Last(long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where companyId = ? and layoutSetId = ?.- Specified by:
fetchByC_L_Last
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost[] findByC_L_PrevAndNext(long virtualHostId, long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the virtual hosts before and after the current virtual host in the ordered set where companyId = ? and layoutSetId = ?.- Specified by:
findByC_L_PrevAndNext
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a virtual host with the primary key could not be found
-
getByC_L_PrevAndNext
protected com.liferay.portal.kernel.model.VirtualHost getByC_L_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long companyId, long layoutSetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous) -
removeByC_L
public void removeByC_L(long companyId, long layoutSetId) Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.- Specified by:
removeByC_L
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDlayoutSetId
- the layout set ID
-
countByC_L
public int countByC_L(long companyId, long layoutSetId) Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.- Specified by:
countByC_L
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDlayoutSetId
- the layout set ID- Returns:
- the number of matching virtual hosts
-
findByNotL_H
public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String hostname) Returns all the virtual hosts where layoutSetId ≠ ? and hostname = ?.- Specified by:
findByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
layoutSetId
- the layout set IDhostname
- the hostname- Returns:
- the matching virtual hosts
-
findByNotL_H
public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String hostname, int start, int end) 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
.- Specified by:
findByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String hostname, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String hostname, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost findByNotL_H_First(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.- Specified by:
findByNotL_H_First
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
layoutSetId
- the layout set IDhostname
- the hostnameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching virtual host
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a matching virtual host could not be found
-
fetchByNotL_H_First
public com.liferay.portal.kernel.model.VirtualHost fetchByNotL_H_First(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the first virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.- Specified by:
fetchByNotL_H_First
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost findByNotL_H_Last(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.- Specified by:
findByNotL_H_Last
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
layoutSetId
- the layout set IDhostname
- the hostnameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching virtual host
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a matching virtual host could not be found
-
fetchByNotL_H_Last
public com.liferay.portal.kernel.model.VirtualHost fetchByNotL_H_Last(long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) Returns the last virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.- Specified by:
fetchByNotL_H_Last
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost[] findByNotL_H_PrevAndNext(long virtualHostId, long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the virtual hosts before and after the current virtual host in the ordered set where layoutSetId ≠ ? and hostname = ?.- Specified by:
findByNotL_H_PrevAndNext
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a virtual host with the primary key could not be found
-
getByNotL_H_PrevAndNext
protected com.liferay.portal.kernel.model.VirtualHost getByNotL_H_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.VirtualHost virtualHost, long layoutSetId, String hostname, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.VirtualHost> orderByComparator, boolean previous) -
findByNotL_H
public List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String[] hostnames) 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
.- Specified by:
findByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
layoutSetId
- the layout set IDhostnames
- the hostnames- Returns:
- the matching virtual hosts
-
findByNotL_H
public List<com.liferay.portal.kernel.model.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
.- Specified by:
findByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String[] hostnames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findByNotL_H(long layoutSetId, String[] hostnames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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.- Specified by:
removeByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
layoutSetId
- the layout set IDhostname
- the hostname
-
countByNotL_H
Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.- Specified by:
countByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 ?.- Specified by:
countByNotL_H
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
layoutSetId
- the layout set IDhostnames
- the hostnames- Returns:
- the number of matching virtual hosts
-
findByC_L_D
public com.liferay.portal.kernel.model.VirtualHost findByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or throws aNoSuchVirtualHostException
if it could not be found.- Specified by:
findByC_L_D
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDlayoutSetId
- the layout set IDdefaultVirtualHost
- the default virtual host- Returns:
- the matching virtual host
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a matching virtual host could not be found
-
fetchByC_L_D
public com.liferay.portal.kernel.model.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.- Specified by:
fetchByC_L_D
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.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.- Specified by:
fetchByC_L_D
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 com.liferay.portal.kernel.model.VirtualHost removeByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Removes the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? from the database.- Specified by:
removeByC_L_D
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDlayoutSetId
- the layout set IDdefaultVirtualHost
- the default virtual host- Returns:
- the virtual host that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
-
countByC_L_D
public int countByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the number of virtual hosts where companyId = ? and layoutSetId = ? and defaultVirtualHost = ?.- Specified by:
countByC_L_D
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
companyId
- the company IDlayoutSetId
- the layout set IDdefaultVirtualHost
- the default virtual host- Returns:
- the number of matching virtual hosts
-
cacheResult
public void cacheResult(com.liferay.portal.kernel.model.VirtualHost virtualHost) Caches the virtual host in the entity cache if it is enabled.- Specified by:
cacheResult
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Overrides:
cacheResult
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
- Parameters:
virtualHost
- the virtual host
-
cacheResult
Caches the virtual hosts in the entity cache if it is enabled.- Specified by:
cacheResult
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
virtualHosts
- the virtual hosts
-
clearCache
public void clearCache()Clears the cache for all virtual hosts.The
EntityCache
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
clearCache
public void clearCache(com.liferay.portal.kernel.model.VirtualHost virtualHost) Clears the cache for the virtual host.The
EntityCache
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
clearCache
- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
clearCache
- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
-
cacheUniqueFindersCache
-
create
public com.liferay.portal.kernel.model.VirtualHost create(long virtualHostId) Creates a new virtual host with the primary key. Does not add the virtual host to the database.- Specified by:
create
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
virtualHostId
- the primary key for the new virtual host- Returns:
- the new virtual host
-
remove
public com.liferay.portal.kernel.model.VirtualHost remove(long virtualHostId) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Removes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
remove
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
virtualHostId
- the primary key of the virtual host- Returns:
- the virtual host that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a virtual host with the primary key could not be found
-
remove
public com.liferay.portal.kernel.model.VirtualHost remove(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Removes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
remove
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
- Overrides:
remove
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
- Parameters:
primaryKey
- the primary key of the virtual host- Returns:
- the virtual host that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a virtual host with the primary key could not be found
-
removeImpl
protected com.liferay.portal.kernel.model.VirtualHost removeImpl(com.liferay.portal.kernel.model.VirtualHost virtualHost) - Overrides:
removeImpl
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
updateImpl
public com.liferay.portal.kernel.model.VirtualHost updateImpl(com.liferay.portal.kernel.model.VirtualHost virtualHost) - Specified by:
updateImpl
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Overrides:
updateImpl
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
findByPrimaryKey
public com.liferay.portal.kernel.model.VirtualHost findByPrimaryKey(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the virtual host with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelException
if it could not be found.- Specified by:
findByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
- Overrides:
findByPrimaryKey
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
- Parameters:
primaryKey
- the primary key of the virtual host- Returns:
- the virtual host
- Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
- if a virtual host with the primary key could not be found
-
findByPrimaryKey
public com.liferay.portal.kernel.model.VirtualHost findByPrimaryKey(long virtualHostId) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException Returns the virtual host with the primary key or throws aNoSuchVirtualHostException
if it could not be found.- Specified by:
findByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Parameters:
virtualHostId
- the primary key of the virtual host- Returns:
- the virtual host
- Throws:
com.liferay.portal.kernel.exception.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.- Specified by:
fetchByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
- Overrides:
fetchByPrimaryKey
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
- Parameters:
primaryKey
- 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
-
fetchByPrimaryKey
public com.liferay.portal.kernel.model.VirtualHost fetchByPrimaryKey(long virtualHostId) Returns the virtual host with the primary key or returnsnull
if it could not be found.- Specified by:
fetchByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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
-
fetchByPrimaryKeys
public Map<Serializable,com.liferay.portal.kernel.model.VirtualHost> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - Specified by:
fetchByPrimaryKeys
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>
- Overrides:
fetchByPrimaryKeys
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
findAll
Returns all the virtual hosts.- Specified by:
findAll
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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
.- Specified by:
findAll
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findAll
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 List<com.liferay.portal.kernel.model.VirtualHost> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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
.- Specified by:
findAll
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- 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 void removeAll()Removes all the virtual hosts from the database.- Specified by:
removeAll
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
-
countAll
public int countAll()Returns the number of virtual hosts.- Specified by:
countAll
in interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
- Returns:
- the number of virtual hosts
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
getPKDBName
- Overrides:
getPKDBName
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
getSelectSQL
- Overrides:
getSelectSQL
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNames
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
-
getMappingTableNames
- Specified by:
getMappingTableNames
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
-
getTableColumnsMap
- Specified by:
getTableColumnsMap
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
- Overrides:
getTableColumnsMap
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
getTableName
- Specified by:
getTableName
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNames
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the virtual host persistence. -
destroy
public void destroy() -
getFinderCache
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()- Overrides:
getFinderCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-