@ProviderType public interface SourcePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<Source>
Caching information and settings can be found in portal.properties
SourceUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<Source> sources)
Caches the sources in the entity cache if it is enabled.
|
void |
cacheResult(Source source)
Caches the source in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of sources.
|
int |
countByCompanyId(long companyId)
Returns the number of sources where companyId = ?.
|
int |
countByGroupId(long groupId)
Returns the number of sources where groupId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of sources where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of sources where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of sources where uuid = ?.
|
Source |
create(long sourceId)
Creates a new source with the primary key.
|
Source |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where companyId = ?.
|
Source |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where companyId = ?.
|
Source |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where groupId = ?.
|
Source |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where groupId = ?.
|
Source |
fetchByPrimaryKey(long sourceId)
Returns the source with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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. |
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 = ?.
|
int |
filterCountByGroupId(long groupId)
Returns the number of sources that the user has permission to view where groupId = ?.
|
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 = ?.
|
java.util.List<Source> |
filterFindByGroupId(long groupId)
Returns all the sources that the user has permission to view where groupId = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<Source> |
findAll()
Returns all the sources.
|
java.util.List<Source> |
findAll(int start,
int end)
Returns a range of all the sources.
|
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.
|
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.
|
Source |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where companyId = ?.
|
Source |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where companyId = ?.
|
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 = ?.
|
java.util.List<Source> |
findByCompanyId(long companyId)
Returns all the sources where companyId = ?.
|
java.util.List<Source> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the sources where companyId = ?.
|
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 = ?.
|
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 = ?.
|
Source |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the first source in the ordered set where groupId = ?.
|
Source |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
Returns the last source in the ordered set where groupId = ?.
|
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 = ?.
|
java.util.List<Source> |
findByGroupId(long groupId)
Returns all the sources where groupId = ?.
|
java.util.List<Source> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the sources where groupId = ?.
|
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 = ?.
|
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 = ?.
|
Source |
findByPrimaryKey(long sourceId)
Returns the source with the primary key or throws a
NoSuchSourceException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<Source> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the sources where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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 = ?.
|
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 = ?.
|
java.util.List<Source> |
findByUuid(java.lang.String uuid)
Returns all the sources where uuid = ?.
|
java.util.List<Source> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the sources where uuid = ?.
|
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 = ?.
|
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 = ?.
|
Source |
remove(long sourceId)
Removes the source with the primary key from the database.
|
void |
removeAll()
Removes all the sources from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the sources where companyId = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the sources where groupId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the sources where uuid = ? and companyId = ? from the database.
|
Source |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the source where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the sources where uuid = ? from the database.
|
Source |
updateImpl(Source source) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<Source> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 cacheSource 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 foundSource 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 foundSource 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 foundSource 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 foundSource[] 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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidSource 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 foundSource 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 foundSource 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 foundSource removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchSourceException
uuid
- the uuidgroupId
- the group IDNoSuchSourceException
int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDjava.util.List<Source> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 cacheSource 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 foundSource 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 foundSource 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 foundSource 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 foundSource[] 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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<Source> findByGroupId(long groupId)
groupId
- the group IDjava.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)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
)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 cacheSource 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 foundSource 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 foundSource 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 foundSource 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 foundSource[] 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 foundjava.util.List<Source> filterFindByGroupId(long groupId)
groupId
- the group IDjava.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)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
)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 foundvoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDint filterCountByGroupId(long groupId)
groupId
- the group IDjava.util.List<Source> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheSource 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 foundSource 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 foundSource 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 foundSource 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 foundSource[] 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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDvoid cacheResult(Source source)
source
- the sourcevoid cacheResult(java.util.List<Source> sources)
sources
- the sourcesSource create(long sourceId)
sourceId
- the primary key for the new sourceSource remove(long sourceId) throws NoSuchSourceException
sourceId
- the primary key of the sourceNoSuchSourceException
- if a source with the primary key could not be foundSource 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 foundSource 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 foundjava.util.List<Source> findAll()
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)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
)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 cachevoid removeAll()
int countAll()