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.intcountByC_L(long companyId, long layoutSetId) Returns the number of virtual hosts where companyId = ? and layoutSetId = ?.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_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.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.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.VirtualHostfetchByPrimaryKey(long virtualHostId) Returns the virtual host with the primary key or returnsnullif it could not be found.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_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 = ?.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.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.VirtualHostfindByPrimaryKey(long virtualHostId) Returns the virtual host with the primary key or throws aNoSuchVirtualHostExceptionif it could not be found.getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelperprotected 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.voidremoveByC_L(long companyId, long layoutSetId) Removes all the virtual hosts where companyId = ? and layoutSetId = ? 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, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, 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
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.VirtualHostPersistence
fetchByHostname, findByC_L, findByC_L, findByC_L, findByCompanyId, findByCompanyId, findByCompanyId
-
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
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
-
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
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, 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
-
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
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
-
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
-
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,com.liferay.portal.kernel.exception.NoSuchVirtualHostException>
-
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,com.liferay.portal.kernel.exception.NoSuchVirtualHostException>
-
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
-
getCTPersistenceHelper
protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper getCTPersistenceHelper()- Overrides:
getCTPersistenceHelperin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost,com.liferay.portal.kernel.exception.NoSuchVirtualHostException>
-
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
-
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,com.liferay.portal.kernel.exception.NoSuchVirtualHostException>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost,com.liferay.portal.kernel.exception.NoSuchVirtualHostException>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost,com.liferay.portal.kernel.exception.NoSuchVirtualHostException>
-
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,com.liferay.portal.kernel.exception.NoSuchVirtualHostException>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.VirtualHost>- Overrides:
getTableNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.VirtualHost,com.liferay.portal.kernel.exception.NoSuchVirtualHostException>
-
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,com.liferay.portal.kernel.exception.NoSuchVirtualHostException>
-