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 TypeMethodDescriptionvoidInitializes the virtual host persistence.voidcacheResult(com.liferay.portal.kernel.model.VirtualHost virtualHost) Caches the virtual host in the entity cache if it is enabled.voidcacheResult(List<com.liferay.portal.kernel.model.VirtualHost> virtualHosts) Caches the virtual hosts in the entity cache if it is enabled.protected voidcacheUniqueFindersCache(VirtualHostModelImpl virtualHostModelImpl) voidClears the cache for all virtual hosts.voidclearCache(com.liferay.portal.kernel.model.VirtualHost virtualHost) Clears the cache for the virtual host.voidclearCache(List<com.liferay.portal.kernel.model.VirtualHost> virtualHosts) voidclearCache(Set<Serializable> primaryKeys) intcountAll()Returns the number of virtual hosts.intcountByC_L(long companyId, long layoutSetId) Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.intcountByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the number of virtual hosts where companyId = ? and layoutSetId = ? and defaultVirtualHost = ?.intcountByCompanyId(long companyId) Returns the number of virtual hosts where companyId = ?.intcountByHostname(String hostname) Returns the number of virtual hosts where hostname = ?.intcountByNotL_H(long layoutSetId, String hostname) Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = ?.intcountByNotL_H(long layoutSetId, String[] hostnames) Returns the number of virtual hosts where layoutSetId ≠ ? and hostname = any ?.com.liferay.portal.kernel.model.VirtualHostcreate(long virtualHostId) Creates a new virtual host with the primary key.voiddestroy()com.liferay.portal.kernel.model.VirtualHostfetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.VirtualHostfetchByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost, boolean useFinderCache) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.VirtualHostfetchByC_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.VirtualHostfetchByC_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.VirtualHostfetchByCompanyId_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.VirtualHostfetchByCompanyId_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.VirtualHostfetchByHostname(String hostname) Returns the virtual host where hostname = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.VirtualHostfetchByHostname(String hostname, boolean useFinderCache) Returns the virtual host where hostname = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.VirtualHostfetchByNotL_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.VirtualHostfetchByNotL_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.VirtualHostfetchByPrimaryKey(long virtualHostId) Returns the virtual host with the primary key or returnsnullif it could not be found.com.liferay.portal.kernel.model.VirtualHostfetchByPrimaryKey(Serializable primaryKey) Returns the virtual host with the primary key or returnsnullif 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.VirtualHostfindByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Returns the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? or throws aNoSuchVirtualHostExceptionif it could not be found.com.liferay.portal.kernel.model.VirtualHostfindByC_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.VirtualHostfindByC_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.VirtualHostfindByCompanyId_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.VirtualHostfindByCompanyId_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.VirtualHostfindByHostname(String hostname) Returns the virtual host where hostname = ? or throws aNoSuchVirtualHostExceptionif 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.VirtualHostfindByNotL_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.VirtualHostfindByNotL_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.VirtualHostfindByPrimaryKey(long virtualHostId) Returns the virtual host with the primary key or throws aNoSuchVirtualHostExceptionif it could not be found.com.liferay.portal.kernel.model.VirtualHostfindByPrimaryKey(Serializable primaryKey) Returns the virtual host with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelExceptionif it could not be found.protected com.liferay.portal.kernel.model.VirtualHostgetByC_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.VirtualHostgetByCompanyId_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.VirtualHostgetByNotL_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.EntityCacheprotected com.liferay.portal.kernel.dao.orm.FinderCacheprotected Stringprotected Stringcom.liferay.portal.kernel.model.VirtualHostremove(long virtualHostId) Removes the virtual host with the primary key from the database.com.liferay.portal.kernel.model.VirtualHostremove(Serializable primaryKey) Removes the virtual host with the primary key from the database.voidRemoves all the virtual hosts from the database.voidremoveByC_L(long companyId, long layoutSetId) Removes all the virtual hosts where companyId = ? and layoutSetId = ? from the database.com.liferay.portal.kernel.model.VirtualHostremoveByC_L_D(long companyId, long layoutSetId, boolean defaultVirtualHost) Removes the virtual host where companyId = ? and layoutSetId = ? and defaultVirtualHost = ? from the database.voidremoveByCompanyId(long companyId) Removes all the virtual hosts where companyId = ? from the database.com.liferay.portal.kernel.model.VirtualHostremoveByHostname(String hostname) Removes the virtual host where hostname = ? from the database.voidremoveByNotL_H(long layoutSetId, String hostname) Removes all the virtual hosts where layoutSetId ≠ ? and hostname = ? from the database.protected com.liferay.portal.kernel.model.VirtualHostremoveImpl(com.liferay.portal.kernel.model.VirtualHost virtualHost) com.liferay.portal.kernel.model.VirtualHostupdateImpl(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, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
findByCompanyIdin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByCompanyIdin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByCompanyIdin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByCompanyIdin 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_Firstin 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_Firstin 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
nullif 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_Lastin 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_Lastin 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
nullif 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_PrevAndNextin 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:
removeByCompanyIdin 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:
countByCompanyIdin 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 aNoSuchVirtualHostExceptionif it could not be found.- Specified by:
findByHostnamein 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 returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByHostnamein interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence- Parameters:
hostname- the hostname- Returns:
- the matching virtual host, or
nullif 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 returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByHostnamein interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence- Parameters:
hostname- the hostnameuseFinderCache- whether to use the finder cache- Returns:
- the matching virtual host, or
nullif 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:
removeByHostnamein 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:
countByHostnamein 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_Lin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByC_Lin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByC_Lin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByC_Lin 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_Firstin 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_Firstin 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
nullif 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_Lastin 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_Lastin 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
nullif 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_PrevAndNextin 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_Lin 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_Lin 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_Hin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByNotL_Hin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByNotL_Hin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByNotL_Hin 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_Firstin 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_Firstin 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
nullif 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_Lastin 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_Lastin 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
nullif 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_PrevAndNextin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByNotL_Hin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByNotL_Hin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByNotL_Hin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findByNotL_Hin 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_Hin 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_Hin 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_Hin 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 aNoSuchVirtualHostExceptionif it could not be found.- Specified by:
findByC_L_Din 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 returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByC_L_Din 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
nullif 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 returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByC_L_Din 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
nullif 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_Din 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_Din 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:
cacheResultin interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence- Overrides:
cacheResultin 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:
cacheResultin interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence- Parameters:
virtualHosts- the virtual hosts
-
clearCache
public void clearCache()Clears the cache for all virtual hosts.The
EntityCacheandFinderCacheare both cleared by this method.- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>- Overrides:
clearCachein 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
EntityCacheandFinderCacheare both cleared by this method.- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
clearCache
- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
clearCache
- Specified by:
clearCachein 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:
createin 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:
removein 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:
removein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>- Overrides:
removein 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:
removeImplin 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:
updateImplin interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence- Overrides:
updateImplin 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.NoSuchModelExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>- Overrides:
findByPrimaryKeyin 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 aNoSuchVirtualHostExceptionif it could not be found.- Specified by:
findByPrimaryKeyin 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 returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>- Overrides:
fetchByPrimaryKeyin 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
nullif 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 returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence- Parameters:
virtualHostId- the primary key of the virtual host- Returns:
- the virtual host, or
nullif 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:
fetchByPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.VirtualHost>- Overrides:
fetchByPrimaryKeysin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
findAll
Returns all the virtual hosts.- Specified by:
findAllin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findAllin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findAllin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromVirtualHostModelImpl.- Specified by:
findAllin 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:
removeAllin interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence
-
countAll
public int countAll()Returns the number of virtual hosts.- Specified by:
countAllin interfacecom.liferay.portal.kernel.service.persistence.VirtualHostPersistence- Returns:
- the number of virtual hosts
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
getSelectSQL
- Overrides:
getSelectSQLin 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:
getCTColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin 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:
getFinderCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost>
-