Class SourceUtil
com.liferay.portal.reports.engine.console.service.persistence.impl.SourcePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(Source source) static voidcacheResult(List<Source> sources) static voidstatic voidclearCache(Source source) static intcountByCompanyId(long companyId) Returns the number of sources where companyId = ?.static intcountByGroupId(long groupId) Returns the number of sources where groupId = ?.static intcountByUuid(String uuid) Returns the number of sources where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of sources where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of sources where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static Sourcecreate(long sourceId) Creates a new source with the primary key.static SourcefetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where companyId = ?.static SourcefetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where groupId = ?.static SourcefetchByPrimaryKey(long sourceId) Returns the source with the primary key or returnsnullif it could not be found.static Map<Serializable, Source> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static SourcefetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where uuid = ? and companyId = ?.static SourcefetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where uuid = ?.static SourcefetchByUUID_G(String uuid, long groupId) Returns the source where uuid = ? and groupId = ? or returnsnullif it could not be found.static SourcefetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the source where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static intfilterCountByGroupId(long groupId) Returns the number of sources that the user has permission to view where groupId = ?.filterFindByGroupId(long groupId) Returns all the sources that the user has permission to view where groupId = ?.filterFindByGroupId(long groupId, int start, int end) Returns a range of all the sources that the user has permission to view where groupId = ?.filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources that the user has permissions to view where groupId = ?.findByCompanyId(long companyId) Returns all the sources where companyId = ?.findByCompanyId(long companyId, int start, int end) Returns a range of all the sources where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sources where companyId = ?.static SourcefindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where companyId = ?.findByGroupId(long groupId) Returns all the sources where groupId = ?.findByGroupId(long groupId, int start, int end) Returns a range of all the sources where groupId = ?.findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources where groupId = ?.findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sources where groupId = ?.static SourcefindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where groupId = ?.static SourcefindByPrimaryKey(long sourceId) Returns the source with the primary key or throws aNoSuchSourceExceptionif it could not be found.findByUuid(String uuid) Returns all the sources where uuid = ?.findByUuid(String uuid, int start, int end) Returns a range of all the sources where uuid = ?.findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources where uuid = ?.findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sources where uuid = ?.findByUuid_C(String uuid, long companyId) Returns all the sources where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the sources where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sources where uuid = ? and companyId = ?.static SourcefindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where uuid = ? and companyId = ?.static SourcefindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where uuid = ?.static SourcefindByUUID_G(String uuid, long groupId) Returns the source where uuid = ? and groupId = ? or throws aNoSuchSourceExceptionif it could not be found.findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) static SourcePersistencestatic Sourceremove(long sourceId) Removes the source with the primary key from the database.static voidremoveByCompanyId(long companyId) Removes all the sources where companyId = ? from the database.static voidremoveByGroupId(long groupId) Removes all the sources where groupId = ? from the database.static voidremoveByUuid(String uuid) Removes all the sources where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the sources where uuid = ? and companyId = ? from the database.static SourceremoveByUUID_G(String uuid, long groupId) Removes the source where uuid = ? and groupId = ? from the database.static voidsetPersistence(SourcePersistence persistence) static Sourcestatic Sourcestatic SourceupdateImpl(Source source)
-
Constructor Details
-
SourceUtil
public SourceUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<Source> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<Source> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<Source> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static Source update(Source source, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
public static List<Source> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sources where uuid = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sources
-
findByUuid_First
public static Source findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException Returns the first source in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching source
-
fetchByUuid_First
public static Source fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching source, or
nullif a matching source could not be found
-
removeByUuid
Removes all the sources where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of sources where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching sources
-
findByUUID_G
Returns the source where uuid = ? and groupId = ? or throws aNoSuchSourceExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching source
-
fetchByUUID_G
Returns the source where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching source, or
nullif a matching source could not be found
-
removeByUUID_G
Removes the source where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the source that was removed
- Throws:
NoSuchSourceException
-
countByUUID_G
Returns the number of sources where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching sources
-
findByUuid_C
public static List<Source> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sources where uuid = ? and 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sources
-
findByUuid_C_First
public static Source findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException Returns the first source in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching source
-
fetchByUuid_C_First
public static Source fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching source, or
nullif a matching source could not be found
-
removeByUuid_C
Removes all the sources where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of sources where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching sources
-
findByGroupId
public static List<Source> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sources where groupId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sources
-
findByGroupId_First
public static Source findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException Returns the first source in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching source
-
fetchByGroupId_First
public static Source fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching source, or
nullif a matching source could not be found
-
filterFindByGroupId
public static List<Source> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources that the user has permissions to view where groupId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sources that the user has permission to view
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the sources where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of sources where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching sources
-
filterCountByGroupId
public static int filterCountByGroupId(long groupId) Returns the number of sources that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching sources that the user has permission to view
-
findByCompanyId
public static List<Source> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sources 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sources
-
findByCompanyId_First
public static Source findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException Returns the first source in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching source
-
fetchByCompanyId_First
public static Source fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns the first source in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching source, or
nullif a matching source could not be found
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the sources where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of sources where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching sources
-
create
Creates a new source with the primary key. Does not add the source to the database.- Parameters:
sourceId- the primary key for the new source- Returns:
- the new source
-
remove
Removes the source with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
sourceId- the primary key of the source- Returns:
- the source that was removed
-
updateImpl
-
findByPrimaryKey
Returns the source with the primary key or throws aNoSuchSourceExceptionif it could not be found.- Parameters:
sourceId- the primary key of the source- Returns:
- the source
-
fetchByPrimaryKey
Returns the source with the primary key or returnsnullif it could not be found.- Parameters:
sourceId- the primary key of the source- Returns:
- the source, or
nullif a source with the primary key could not be found
-
fetchByUUID_G
Returns the source where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching source, or
nullif a matching source could not be found
-
findByUuid
Returns all the sources where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching sources
-
findByUuid
Returns a range of all the sources where uuid = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)- Returns:
- the range of matching sources
-
findByUuid
public static List<Source> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources where uuid = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sources
-
findByUuid_C
Returns all the sources where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching sources
-
findByUuid_C
Returns a range of all the sources where uuid = ? and 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)- Returns:
- the range of matching sources
-
findByUuid_C
public static List<Source> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources where uuid = ? and 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sources
-
findByGroupId
Returns all the sources where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching sources
-
findByGroupId
Returns a range of all the sources where groupId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)- Returns:
- the range of matching sources
-
findByGroupId
public static List<Source> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources where groupId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sources
-
filterFindByGroupId
Returns all the sources that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching sources that the user has permission to view
-
filterFindByGroupId
Returns a range of all the sources that the user has permission to view where groupId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)- Returns:
- the range of matching sources that the user has permission to view
-
findByCompanyId
Returns all the sources where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching sources
-
findByCompanyId
Returns a range of all the sources 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)- Returns:
- the range of matching sources
-
findByCompanyId
public static List<Source> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) Returns an ordered range of all the sources 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.reports.engine.console.model.impl.SourceModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of sourcesend- the upper bound of the range of sources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sources
-
getPersistence
-
setPersistence
-