Class VirtualHostLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,CTService<VirtualHost>
,PersistedModelLocalService
,ServiceWrapper<VirtualHostLocalService>
,VirtualHostLocalService
VirtualHostLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualHostLocalServiceWrapper
(VirtualHostLocalService virtualHostLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddVirtualHost
(VirtualHost virtualHost) Adds the virtual host to the database.createPersistedModel
(Serializable primaryKeyObj) createVirtualHost
(long virtualHostId) Creates a new virtual host with the primary key.deletePersistedModel
(PersistedModel persistedModel) deleteVirtualHost
(long virtualHostId) Deletes the virtual host with the primary key from the database.deleteVirtualHost
(VirtualHost virtualHost) Deletes the virtual host from the database.<T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchVirtualHost
(long virtualHostId) fetchVirtualHost
(long companyId, long layoutSetId) Deprecated.fetchVirtualHost
(String hostname) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getVirtualHost
(long virtualHostId) Returns the virtual host with the primary key.getVirtualHost
(long companyId, long layoutSetId) Deprecated.As of Mueller (7.2.x), replaced bygetVirtualHosts(long, long)
getVirtualHost
(String hostname) getVirtualHosts
(int start, int end) Returns a range of all the virtual hosts.getVirtualHosts
(long companyId) getVirtualHosts
(long companyId, long layoutSetId) int
Returns the number of virtual hosts.long
getVirtualHostsCount
(long excludedLayoutSetId, String[] virtualHostNames) void
setWrappedService
(VirtualHostLocalService virtualHostLocalService) updateVirtualHost
(long companyId, long layoutSetId, String hostname) Deprecated.As of Mueller (7.2.x), replaced byupdateVirtualHosts(long, long, TreeMap)
updateVirtualHost
(VirtualHost virtualHost) Updates the virtual host in the database or adds it if it does not yet exist.updateVirtualHosts
(long companyId, long layoutSetId, TreeMap<String, String> hostnames) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<VirtualHost>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
VirtualHostLocalServiceWrapper
public VirtualHostLocalServiceWrapper() -
VirtualHostLocalServiceWrapper
-
-
Method Details
-
addVirtualHost
Adds the virtual host to the database. Also notifies the appropriate model listeners.Important: Inspect VirtualHostLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addVirtualHost
in interfaceVirtualHostLocalService
- Parameters:
virtualHost
- the virtual host- Returns:
- the virtual host that was added
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfaceVirtualHostLocalService
- Throws:
PortalException
PortalException
-
createVirtualHost
Creates a new virtual host with the primary key. Does not add the virtual host to the database.- Specified by:
createVirtualHost
in interfaceVirtualHostLocalService
- Parameters:
virtualHostId
- the primary key for the new virtual host- Returns:
- the new virtual host
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfaceVirtualHostLocalService
- Throws:
PortalException
PortalException
-
deleteVirtualHost
Deletes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect VirtualHostLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteVirtualHost
in interfaceVirtualHostLocalService
- Parameters:
virtualHostId
- the primary key of the virtual host- Returns:
- the virtual host that was removed
- Throws:
PortalException
- if a virtual host with the primary key could not be foundPortalException
-
deleteVirtualHost
Deletes the virtual host from the database. Also notifies the appropriate model listeners.Important: Inspect VirtualHostLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteVirtualHost
in interfaceVirtualHostLocalService
- Parameters:
virtualHost
- the virtual host- Returns:
- the virtual host that was removed
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfaceVirtualHostLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfaceVirtualHostLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceVirtualHostLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceVirtualHostLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.VirtualHostModelImpl
.- Specified by:
dynamicQuery
in interfaceVirtualHostLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.VirtualHostModelImpl
.- Specified by:
dynamicQuery
in interfaceVirtualHostLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceVirtualHostLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceVirtualHostLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchVirtualHost
- Specified by:
fetchVirtualHost
in interfaceVirtualHostLocalService
-
fetchVirtualHost
Deprecated.As of Mueller (7.2.x), replaced bygetVirtualHosts(long, long)
- Specified by:
fetchVirtualHost
in interfaceVirtualHostLocalService
-
fetchVirtualHost
- Specified by:
fetchVirtualHost
in interfaceVirtualHostLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceVirtualHostLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceVirtualHostLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceVirtualHostLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfaceVirtualHostLocalService
- Throws:
PortalException
PortalException
-
getVirtualHost
Returns the virtual host with the primary key.- Specified by:
getVirtualHost
in interfaceVirtualHostLocalService
- Parameters:
virtualHostId
- the primary key of the virtual host- Returns:
- the virtual host
- Throws:
PortalException
- if a virtual host with the primary key could not be foundPortalException
-
getVirtualHost
@Deprecated public VirtualHost getVirtualHost(long companyId, long layoutSetId) throws PortalException Deprecated.As of Mueller (7.2.x), replaced bygetVirtualHosts(long, long)
- Specified by:
getVirtualHost
in interfaceVirtualHostLocalService
- Throws:
PortalException
-
getVirtualHost
- Specified by:
getVirtualHost
in interfaceVirtualHostLocalService
- Throws:
PortalException
-
getVirtualHosts
Returns a range of all the virtual hosts.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.VirtualHostModelImpl
.- Specified by:
getVirtualHosts
in interfaceVirtualHostLocalService
- 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
-
getVirtualHosts
- Specified by:
getVirtualHosts
in interfaceVirtualHostLocalService
-
getVirtualHosts
- Specified by:
getVirtualHosts
in interfaceVirtualHostLocalService
-
getVirtualHostsCount
public int getVirtualHostsCount()Returns the number of virtual hosts.- Specified by:
getVirtualHostsCount
in interfaceVirtualHostLocalService
- Returns:
- the number of virtual hosts
-
getVirtualHostsCount
- Specified by:
getVirtualHostsCount
in interfaceVirtualHostLocalService
-
updateVirtualHost
Deprecated.As of Mueller (7.2.x), replaced byupdateVirtualHosts(long, long, TreeMap)
- Specified by:
updateVirtualHost
in interfaceVirtualHostLocalService
-
updateVirtualHost
Updates the virtual host in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect VirtualHostLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateVirtualHost
in interfaceVirtualHostLocalService
- Parameters:
virtualHost
- the virtual host- Returns:
- the virtual host that was updated
-
updateVirtualHosts
public List<VirtualHost> updateVirtualHosts(long companyId, long layoutSetId, TreeMap<String, String> hostnames) - Specified by:
updateVirtualHosts
in interfaceVirtualHostLocalService
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<VirtualHost>
- Specified by:
getCTPersistence
in interfaceVirtualHostLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<VirtualHost>
- Specified by:
getModelClass
in interfaceVirtualHostLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<VirtualHost>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<VirtualHost>
- Specified by:
updateWithUnsafeFunction
in interfaceVirtualHostLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<VirtualHostLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<VirtualHostLocalService>
-
getVirtualHosts(long, long)