@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface VirtualHostLocalService extends BaseLocalService, CTService<VirtualHost>, PersistedModelLocalService
VirtualHostLocalServiceUtil
Modifier and Type | Method and Description |
---|---|
VirtualHost |
addVirtualHost(VirtualHost virtualHost)
Adds the virtual host to the database.
|
PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
VirtualHost |
createVirtualHost(long virtualHostId)
Creates a new virtual host with the primary key.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
VirtualHost |
deleteVirtualHost(long virtualHostId)
Deletes the virtual host with the primary key from the database.
|
VirtualHost |
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) |
DynamicQuery |
dynamicQuery() |
<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.
|
VirtualHost |
fetchVirtualHost(long virtualHostId) |
VirtualHost |
fetchVirtualHost(long companyId,
long layoutSetId)
Deprecated.
As of Mueller (7.2.x), replaced by
getVirtualHosts(long, long) |
VirtualHost |
fetchVirtualHost(String hostname) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
CTPersistence<VirtualHost> |
getCTPersistence() |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Class<VirtualHost> |
getModelClass() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
VirtualHost |
getVirtualHost(long virtualHostId)
Returns the virtual host with the primary key.
|
VirtualHost |
getVirtualHost(long companyId,
long layoutSetId)
Deprecated.
As of Mueller (7.2.x), replaced by
getVirtualHosts(long, long) |
VirtualHost |
getVirtualHost(String hostname) |
List<VirtualHost> |
getVirtualHosts(int start,
int end)
Returns a range of all the virtual hosts.
|
List<VirtualHost> |
getVirtualHosts(long companyId) |
List<VirtualHost> |
getVirtualHosts(long companyId,
long layoutSetId) |
int |
getVirtualHostsCount()
Returns the number of virtual hosts.
|
long |
getVirtualHostsCount(long excludedLayoutSetId,
String[] virtualHostNames) |
VirtualHost |
updateVirtualHost(long companyId,
long layoutSetId,
String hostname)
Deprecated.
As of Mueller (7.2.x), replaced by
updateVirtualHosts(long, long, TreeMap) |
VirtualHost |
updateVirtualHost(VirtualHost virtualHost)
Updates the virtual host in the database or adds it if it does not yet exist.
|
List<VirtualHost> |
updateVirtualHosts(long companyId,
long layoutSetId,
TreeMap<String,String> hostnames) |
<R,E extends Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<VirtualHost>,R,E> updateUnsafeFunction) |
fetchPersistedModel, getBasePersistence
@Indexable(type=REINDEX) VirtualHost addVirtualHost(VirtualHost virtualHost)
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.
virtualHost
- the virtual hostPersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
createPersistedModel
in interface PersistedModelLocalService
PortalException
@Transactional(enabled=false) VirtualHost createVirtualHost(long virtualHostId)
virtualHostId
- the primary key for the new virtual hostPersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
PortalException
@Indexable(type=DELETE) VirtualHost deleteVirtualHost(long virtualHostId) throws PortalException
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.
virtualHostId
- the primary key of the virtual hostPortalException
- if a virtual host with the primary key could not be found@Indexable(type=DELETE) VirtualHost deleteVirtualHost(VirtualHost virtualHost)
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.
virtualHost
- the virtual host@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface PersistedModelLocalService
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface PersistedModelLocalService
@Transactional(propagation=SUPPORTS, readOnly=true) DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.VirtualHostModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.VirtualHostModelImpl
.
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 (optionally null
)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) VirtualHost fetchVirtualHost(long virtualHostId)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) VirtualHost fetchVirtualHost(long companyId, long layoutSetId)
getVirtualHosts(long, long)
@Transactional(propagation=SUPPORTS, readOnly=true) VirtualHost fetchVirtualHost(String hostname)
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface PersistedModelLocalService
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) VirtualHost getVirtualHost(long virtualHostId) throws PortalException
virtualHostId
- the primary key of the virtual hostPortalException
- if a virtual host with the primary key could not be found@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) VirtualHost getVirtualHost(long companyId, long layoutSetId) throws PortalException
getVirtualHosts(long, long)
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) VirtualHost getVirtualHost(String hostname) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<VirtualHost> getVirtualHosts(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.VirtualHostModelImpl
.
start
- the lower bound of the range of virtual hostsend
- the upper bound of the range of virtual hosts (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) List<VirtualHost> getVirtualHosts(long companyId)
@Transactional(propagation=SUPPORTS, readOnly=true) List<VirtualHost> getVirtualHosts(long companyId, long layoutSetId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getVirtualHostsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) long getVirtualHostsCount(long excludedLayoutSetId, String[] virtualHostNames)
@Deprecated VirtualHost updateVirtualHost(long companyId, long layoutSetId, String hostname)
updateVirtualHosts(long, long, TreeMap)
@Indexable(type=REINDEX) VirtualHost updateVirtualHost(VirtualHost virtualHost)
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.
virtualHost
- the virtual hostList<VirtualHost> updateVirtualHosts(long companyId, long layoutSetId, TreeMap<String,String> hostnames)
@Transactional(enabled=false) CTPersistence<VirtualHost> getCTPersistence()
getCTPersistence
in interface CTService<VirtualHost>
@Transactional(enabled=false) Class<VirtualHost> getModelClass()
getModelClass
in interface CTService<VirtualHost>
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<VirtualHost>,R,E> updateUnsafeFunction) throws E extends Throwable
updateWithUnsafeFunction
in interface CTService<VirtualHost>
E extends Throwable