@ProviderType public interface CTCollectionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTCollection>
Caching information and settings can be found in portal.properties
CTCollectionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CTCollection ctCollection)
Caches the ct collection in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CTCollection> ctCollections)
Caches the ct collections in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of ct collections.
|
int |
countByC_S(long companyId,
int status)
Returns the number of ct collections where companyId = ? and status = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of ct collections where companyId = ?.
|
CTCollection |
create(long ctCollectionId)
Creates a new ct collection with the primary key.
|
CTCollection |
fetchByC_S_First(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ? and status = ?.
|
CTCollection |
fetchByC_S_Last(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ? and status = ?.
|
CTCollection |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ?.
|
CTCollection |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ?.
|
CTCollection |
fetchByPrimaryKey(long ctCollectionId)
Returns the ct collection with the primary key or returns
null if it could not be found. |
java.util.List<CTCollection> |
findAll()
Returns all the ct collections.
|
java.util.List<CTCollection> |
findAll(int start,
int end)
Returns a range of all the ct collections.
|
java.util.List<CTCollection> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections.
|
java.util.List<CTCollection> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct collections.
|
CTCollection |
findByC_S_First(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ? and status = ?.
|
CTCollection |
findByC_S_Last(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ? and status = ?.
|
CTCollection[] |
findByC_S_PrevAndNext(long ctCollectionId,
long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the ct collections before and after the current ct collection in the ordered set where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int status)
Returns all the ct collections where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int status,
int start,
int end)
Returns a range of all the ct collections where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct collections where companyId = ? and status = ?.
|
CTCollection |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ?.
|
CTCollection |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ?.
|
CTCollection[] |
findByCompanyId_PrevAndNext(long ctCollectionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the ct collections before and after the current ct collection in the ordered set where companyId = ?.
|
java.util.List<CTCollection> |
findByCompanyId(long companyId)
Returns all the ct collections where companyId = ?.
|
java.util.List<CTCollection> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct collections where companyId = ?.
|
java.util.List<CTCollection> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections where companyId = ?.
|
java.util.List<CTCollection> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct collections where companyId = ?.
|
CTCollection |
findByPrimaryKey(long ctCollectionId)
Returns the ct collection with the primary key or throws a
NoSuchCollectionException if it could not be found. |
CTCollection |
remove(long ctCollectionId)
Removes the ct collection with the primary key from the database.
|
void |
removeAll()
Removes all the ct collections from the database.
|
void |
removeByC_S(long companyId,
int status)
Removes all the ct collections where companyId = ? and status = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the ct collections where companyId = ? from the database.
|
CTCollection |
updateImpl(CTCollection ctCollection) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CTCollection> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTCollection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCTCollection findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection[] findByCompanyId_PrevAndNext(long ctCollectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
ctCollectionId
- the primary key of the current ct collectioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a ct collection with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CTCollection> findByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusjava.util.List<CTCollection> findByC_S(long companyId, int status, 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 CTCollectionModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTCollection> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCTCollection findByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection findByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection[] findByC_S_PrevAndNext(long ctCollectionId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
ctCollectionId
- the primary key of the current ct collectioncompanyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a ct collection with the primary key could not be foundvoid removeByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusint countByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusvoid cacheResult(CTCollection ctCollection)
ctCollection
- the ct collectionvoid cacheResult(java.util.List<CTCollection> ctCollections)
ctCollections
- the ct collectionsCTCollection create(long ctCollectionId)
ctCollectionId
- the primary key for the new ct collectionCTCollection remove(long ctCollectionId) throws NoSuchCollectionException
ctCollectionId
- the primary key of the ct collectionNoSuchCollectionException
- if a ct collection with the primary key could not be foundCTCollection updateImpl(CTCollection ctCollection)
CTCollection findByPrimaryKey(long ctCollectionId) throws NoSuchCollectionException
NoSuchCollectionException
if it could not be found.ctCollectionId
- the primary key of the ct collectionNoSuchCollectionException
- if a ct collection with the primary key could not be foundCTCollection fetchByPrimaryKey(long ctCollectionId)
null
if it could not be found.ctCollectionId
- the primary key of the ct collectionnull
if a ct collection with the primary key could not be foundjava.util.List<CTCollection> findAll()
java.util.List<CTCollection> 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 CTCollectionModelImpl
.
start
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
start
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
start
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()