Class ClassNameLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,ClassNameLocalService
,PersistedModelLocalService
,ServiceWrapper<ClassNameLocalService>
ClassNameLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddClassName
(ClassName className) Adds the class name to the database.addClassName
(String value) void
createClassName
(long classNameId) Creates a new class name with the primary key.createPersistedModel
(Serializable primaryKeyObj) deleteClassName
(long classNameId) Deletes the class name with the primary key from the database.deleteClassName
(ClassName className) Deletes the class name from the database.deletePersistedModel
(PersistedModel persistedModel) <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.fetchByClassNameId
(long classNameId) fetchClassName
(long classNameId) fetchClassName
(String value) getClassName
(long classNameId) Returns the class name with the primary key.getClassName
(String value) long
getClassNameId
(Class<?> clazz) long
getClassNameId
(String value) Supplier<long[]>
getClassNameIdsSupplier
(String[] classNames) getClassNameIdSupplier
(String className) getClassNames
(int start, int end) Returns a range of all the class names.int
Returns the number of class names.Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) void
void
setWrappedService
(ClassNameLocalService classNameLocalService) updateClassName
(ClassName className) Updates the class name in the database or adds it if it does not yet exist.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
-
ClassNameLocalServiceWrapper
public ClassNameLocalServiceWrapper() -
ClassNameLocalServiceWrapper
-
-
Method Details
-
addClassName
Adds the class name to the database. Also notifies the appropriate model listeners.Important: Inspect ClassNameLocalServiceImpl 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:
addClassName
in interfaceClassNameLocalService
- Parameters:
className
- the class name- Returns:
- the class name that was added
-
addClassName
- Specified by:
addClassName
in interfaceClassNameLocalService
-
checkClassNames
public void checkClassNames()- Specified by:
checkClassNames
in interfaceClassNameLocalService
-
createClassName
Creates a new class name with the primary key. Does not add the class name to the database.- Specified by:
createClassName
in interfaceClassNameLocalService
- Parameters:
classNameId
- the primary key for the new class name- Returns:
- the new class name
-
createPersistedModel
- Specified by:
createPersistedModel
in interfaceClassNameLocalService
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
deleteClassName
Deletes the class name from the database. Also notifies the appropriate model listeners.Important: Inspect ClassNameLocalServiceImpl 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:
deleteClassName
in interfaceClassNameLocalService
- Parameters:
className
- the class name- Returns:
- the class name that was removed
-
deleteClassName
Deletes the class name with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect ClassNameLocalServiceImpl 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:
deleteClassName
in interfaceClassNameLocalService
- Parameters:
classNameId
- the primary key of the class name- Returns:
- the class name that was removed
- Throws:
PortalException
- if a class name with the primary key could not be foundPortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfaceClassNameLocalService
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceClassNameLocalService
- Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceClassNameLocalService
- Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceClassNameLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceClassNameLocalService
- 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.ClassNameModelImpl
.- Specified by:
dynamicQuery
in interfaceClassNameLocalService
- 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.ClassNameModelImpl
.- Specified by:
dynamicQuery
in interfaceClassNameLocalService
- 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 interfaceClassNameLocalService
- 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 interfaceClassNameLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchByClassNameId
- Specified by:
fetchByClassNameId
in interfaceClassNameLocalService
-
fetchClassName
- Specified by:
fetchClassName
in interfaceClassNameLocalService
-
fetchClassName
- Specified by:
fetchClassName
in interfaceClassNameLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceClassNameLocalService
-
getClassName
Returns the class name with the primary key.- Specified by:
getClassName
in interfaceClassNameLocalService
- Parameters:
classNameId
- the primary key of the class name- Returns:
- the class name
- Throws:
PortalException
- if a class name with the primary key could not be foundPortalException
-
getClassName
- Specified by:
getClassName
in interfaceClassNameLocalService
-
getClassNameId
- Specified by:
getClassNameId
in interfaceClassNameLocalService
-
getClassNameId
- Specified by:
getClassNameId
in interfaceClassNameLocalService
-
getClassNameIdsSupplier
- Specified by:
getClassNameIdsSupplier
in interfaceClassNameLocalService
-
getClassNameIdSupplier
- Specified by:
getClassNameIdSupplier
in interfaceClassNameLocalService
-
getClassNames
Returns a range of all the class names.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.ClassNameModelImpl
.- Specified by:
getClassNames
in interfaceClassNameLocalService
- Parameters:
start
- the lower bound of the range of class namesend
- the upper bound of the range of class names (not inclusive)- Returns:
- the range of class names
-
getClassNamesCount
public int getClassNamesCount()Returns the number of class names.- Specified by:
getClassNamesCount
in interfaceClassNameLocalService
- Returns:
- the number of class names
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceClassNameLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceClassNameLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfaceClassNameLocalService
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
getRegistryName
- Specified by:
getRegistryName
in interfaceClassNameLocalService
-
invalidate
public void invalidate()- Specified by:
invalidate
in interfaceClassNameLocalService
-
updateClassName
Updates the class name in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect ClassNameLocalServiceImpl 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:
updateClassName
in interfaceClassNameLocalService
- Parameters:
className
- the class name- Returns:
- the class name that was updated
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<ClassNameLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<ClassNameLocalService>
-