public class SourceUtil
extends java.lang.Object
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
SourcePersistence
Constructor and Description |
---|
SourceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<Source> sources)
Caches the sources in the entity cache if it is enabled.
|
static void |
cacheResult(Source source)
Caches the source in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(Source source) |
static int |
countAll()
Returns the number of sources.
|
static int |
countByCompanyId(long companyId)
Returns the number of sources where companyId = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of sources where groupId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of sources where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of sources where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of sources where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static Source |
create(long sourceId)
Creates a new source with the primary key.
|
static Source |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where companyId = ?.
|
static Source |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where companyId = ?.
|
static Source |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where groupId = ?.
|
static Source |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where groupId = ?.
|
static Source |
fetchByPrimaryKey(long sourceId)
Returns the source with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,Source> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static Source |
fetchByUuid_C_First(java.lang.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 Source |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where uuid = ? and companyId = ?.
|
static Source |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where uuid = ?.
|
static Source |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the source where uuid = ? and groupId = ? or returns
null if it could not be found. |
static Source |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the source where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static Source |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where uuid = ?.
|
static int |
filterCountByGroupId(long groupId)
Returns the number of sources that the user has permission to view where groupId = ?.
|
static Source[] |
filterFindByGroupId_PrevAndNext(long sourceId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the sources before and after the current source in the ordered set of sources that the user has permission to view where groupId = ?.
|
static java.util.List<Source> |
filterFindByGroupId(long groupId)
Returns all the sources that the user has permission to view where groupId = ?.
|
static java.util.List<Source> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the sources that the user has permission to view where groupId = ?.
|
static java.util.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 = ?.
|
static java.util.List<Source> |
findAll()
Returns all the sources.
|
static java.util.List<Source> |
findAll(int start,
int end)
Returns a range of all the sources.
|
static java.util.List<Source> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns an ordered range of all the sources.
|
static java.util.List<Source> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sources.
|
static Source |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where companyId = ?.
|
static Source |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where companyId = ?.
|
static Source[] |
findByCompanyId_PrevAndNext(long sourceId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the sources before and after the current source in the ordered set where companyId = ?.
|
static java.util.List<Source> |
findByCompanyId(long companyId)
Returns all the sources where companyId = ?.
|
static java.util.List<Source> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the sources where companyId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static Source |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where groupId = ?.
|
static Source |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where groupId = ?.
|
static Source[] |
findByGroupId_PrevAndNext(long sourceId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the sources before and after the current source in the ordered set where groupId = ?.
|
static java.util.List<Source> |
findByGroupId(long groupId)
Returns all the sources where groupId = ?.
|
static java.util.List<Source> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the sources where groupId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static Source |
findByPrimaryKey(long sourceId)
Returns the source with the primary key or throws a
NoSuchSourceException if it could not be found. |
static Source |
findByUuid_C_First(java.lang.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 Source |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where uuid = ? and companyId = ?.
|
static Source[] |
findByUuid_C_PrevAndNext(long sourceId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the sources before and after the current source in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<Source> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the sources where uuid = ? and companyId = ?.
|
static java.util.List<Source> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the sources where uuid = ? and companyId = ?.
|
static java.util.List<Source> |
findByUuid_C(java.lang.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 = ?.
|
static java.util.List<Source> |
findByUuid_C(java.lang.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 Source |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where uuid = ?.
|
static Source |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the source where uuid = ? and groupId = ? or throws a
NoSuchSourceException if it could not be found. |
static Source |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where uuid = ?.
|
static Source[] |
findByUuid_PrevAndNext(long sourceId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the sources before and after the current source in the ordered set where uuid = ?.
|
static java.util.List<Source> |
findByUuid(java.lang.String uuid)
Returns all the sources where uuid = ?.
|
static java.util.List<Source> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the sources where uuid = ?.
|
static java.util.List<Source> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns an ordered range of all the sources where uuid = ?.
|
static java.util.List<Source> |
findByUuid(java.lang.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 = ?.
|
static java.util.List<Source> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<Source> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Source> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) |
static SourcePersistence |
getPersistence() |
static Source |
remove(long sourceId)
Removes the source with the primary key from the database.
|
static void |
removeAll()
Removes all the sources from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the sources where companyId = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the sources where groupId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the sources where uuid = ? and companyId = ? from the database.
|
static Source |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the source where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the sources where uuid = ? from the database.
|
static Source |
update(Source source) |
static Source |
update(Source source,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Source |
updateImpl(Source source) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Source source)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,Source> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<Source> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<Source> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<Source> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Source update(Source source)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static Source update(Source source, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<Source> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<Source> findByUuid(java.lang.String uuid, 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 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 SourceModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of sourcesend
- the upper bound of the range of sources (not inclusive)public static java.util.List<Source> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> 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 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 SourceModelImpl
.
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 (optionally null
)public static java.util.List<Source> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
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 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 SourceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static Source findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a matching source could not be foundpublic static Source fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching source could not be foundpublic static Source findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a matching source could not be foundpublic static Source fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching source could not be foundpublic static Source[] findByUuid_PrevAndNext(long sourceId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
sourceId
- the primary key of the current sourceuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a source with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static Source findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchSourceException
NoSuchSourceException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchSourceException
- if a matching source could not be foundpublic static Source fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching source could not be foundpublic static Source fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching source could not be foundpublic static Source removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchSourceException
uuid
- the uuidgroupId
- the group IDNoSuchSourceException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<Source> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Source> findByUuid_C(java.lang.String uuid, long companyId, 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 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 SourceModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of sourcesend
- the upper bound of the range of sources (not inclusive)public static java.util.List<Source> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> 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 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 SourceModelImpl
.
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 (optionally null
)public static java.util.List<Source> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
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 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 SourceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static Source findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a matching source could not be foundpublic static Source fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching source could not be foundpublic static Source findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a matching source could not be foundpublic static Source fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching source could not be foundpublic static Source[] findByUuid_C_PrevAndNext(long sourceId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
sourceId
- the primary key of the current sourceuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a source with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Source> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<Source> findByGroupId(long groupId, 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 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 SourceModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of sourcesend
- the upper bound of the range of sources (not inclusive)public static java.util.List<Source> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> 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 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 SourceModelImpl
.
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 (optionally null
)public static java.util.List<Source> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
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 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 SourceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static Source findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a matching source could not be foundpublic static Source fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching source could not be foundpublic static Source findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a matching source could not be foundpublic static Source fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching source could not be foundpublic static Source[] findByGroupId_PrevAndNext(long sourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
sourceId
- the primary key of the current sourcegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a source with the primary key could not be foundpublic static java.util.List<Source> filterFindByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<Source> filterFindByGroupId(long groupId, 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 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 SourceModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of sourcesend
- the upper bound of the range of sources (not inclusive)public static java.util.List<Source> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> 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 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 SourceModelImpl
.
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 (optionally null
)public static Source[] filterFindByGroupId_PrevAndNext(long sourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
sourceId
- the primary key of the current sourcegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a source with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static int filterCountByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<Source> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<Source> findByCompanyId(long companyId, 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 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 SourceModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of sourcesend
- the upper bound of the range of sources (not inclusive)public static java.util.List<Source> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> 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 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 SourceModelImpl
.
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 (optionally null
)public static java.util.List<Source> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
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 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 SourceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static Source findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a matching source could not be foundpublic static Source fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching source could not be foundpublic static Source findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a matching source could not be foundpublic static Source fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching source could not be foundpublic static Source[] findByCompanyId_PrevAndNext(long sourceId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
sourceId
- the primary key of the current sourcecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSourceException
- if a source with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static void cacheResult(Source source)
source
- the sourcepublic static void cacheResult(java.util.List<Source> sources)
sources
- the sourcespublic static Source create(long sourceId)
sourceId
- the primary key for the new sourcepublic static Source remove(long sourceId) throws NoSuchSourceException
sourceId
- the primary key of the sourceNoSuchSourceException
- if a source with the primary key could not be foundpublic static Source findByPrimaryKey(long sourceId) throws NoSuchSourceException
NoSuchSourceException
if it could not be found.sourceId
- the primary key of the sourceNoSuchSourceException
- if a source with the primary key could not be foundpublic static Source fetchByPrimaryKey(long sourceId)
null
if it could not be found.sourceId
- the primary key of the sourcenull
if a source with the primary key could not be foundpublic static java.util.List<Source> findAll()
public static java.util.List<Source> findAll(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 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 SourceModelImpl
.
start
- the lower bound of the range of sourcesend
- the upper bound of the range of sources (not inclusive)public static java.util.List<Source> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> 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 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 SourceModelImpl
.
start
- 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 (optionally null
)public static java.util.List<Source> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
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 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 SourceModelImpl
.
start
- 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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static SourcePersistence getPersistence()