public class CTCollectionUtil
extends java.lang.Object
com.liferay.change.tracking.service.persistence.impl.CTCollectionPersistenceImpl
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
CTCollectionPersistence
Constructor and Description |
---|
CTCollectionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CTCollection ctCollection)
Caches the ct collection in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CTCollection> ctCollections)
Caches the ct collections in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CTCollection ctCollection) |
static int |
countAll()
Returns the number of ct collections.
|
static int |
countByC_S(long companyId,
int status)
Returns the number of ct collections where companyId = ? and status = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of ct collections where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CTCollection |
create(long ctCollectionId)
Creates a new ct collection with the primary key.
|
static 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 = ?.
|
static 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 = ?.
|
static CTCollection |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ?.
|
static CTCollection |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ?.
|
static CTCollection |
fetchByPrimaryKey(long ctCollectionId)
Returns the ct collection with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CTCollection> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByC_S(long companyId,
int status)
Returns the number of ct collections that the user has permission to view where companyId = ? and status = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of ct collections that the user has permission to view where companyId = ?.
|
static CTCollection[] |
filterFindByC_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 of ct collections that the user has permission to view where companyId = ? and status = ?.
|
static java.util.List<CTCollection> |
filterFindByC_S(long companyId,
int status)
Returns all the ct collections that the user has permission to view where companyId = ? and status = ?.
|
static java.util.List<CTCollection> |
filterFindByC_S(long companyId,
int status,
int start,
int end)
Returns a range of all the ct collections that the user has permission to view where companyId = ? and status = ?.
|
static java.util.List<CTCollection> |
filterFindByC_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 that the user has permissions to view where companyId = ? and status = ?.
|
static CTCollection[] |
filterFindByCompanyId_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 of ct collections that the user has permission to view where companyId = ?.
|
static java.util.List<CTCollection> |
filterFindByCompanyId(long companyId)
Returns all the ct collections that the user has permission to view where companyId = ?.
|
static java.util.List<CTCollection> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct collections that the user has permission to view where companyId = ?.
|
static java.util.List<CTCollection> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections that the user has permissions to view where companyId = ?.
|
static java.util.List<CTCollection> |
findAll()
Returns all the ct collections.
|
static java.util.List<CTCollection> |
findAll(int start,
int end)
Returns a range of all the ct collections.
|
static 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.
|
static 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.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<CTCollection> |
findByC_S(long companyId,
int status)
Returns all the ct collections where companyId = ? and status = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static CTCollection |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ?.
|
static CTCollection |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ?.
|
static 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 = ?.
|
static java.util.List<CTCollection> |
findByCompanyId(long companyId)
Returns all the ct collections where companyId = ?.
|
static java.util.List<CTCollection> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct collections where companyId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static CTCollection |
findByPrimaryKey(long ctCollectionId)
Returns the ct collection with the primary key or throws a
NoSuchCollectionException if it could not be found. |
static java.util.List<CTCollection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CTCollection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CTCollection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) |
static CTCollectionPersistence |
getPersistence() |
static CTCollection |
remove(long ctCollectionId)
Removes the ct collection with the primary key from the database.
|
static void |
removeAll()
Removes all the ct collections from the database.
|
static void |
removeByC_S(long companyId,
int status)
Removes all the ct collections where companyId = ? and status = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the ct collections where companyId = ? from the database.
|
static CTCollection |
update(CTCollection ctCollection) |
static CTCollection |
update(CTCollection ctCollection,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CTCollection |
updateImpl(CTCollection ctCollection) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CTCollection ctCollection)
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,CTCollection> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CTCollection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CTCollection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CTCollection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CTCollection update(CTCollection ctCollection)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CTCollection update(CTCollection ctCollection, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CTCollection> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.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)public static 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
)public static 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 cachepublic static CTCollection 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 foundpublic static CTCollection 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 foundpublic static CTCollection 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 foundpublic static CTCollection 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 foundpublic static CTCollection[] 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 foundpublic static java.util.List<CTCollection> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CTCollection> filterFindByCompanyId(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)public static java.util.List<CTCollection> filterFindByCompanyId(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
)public static CTCollection[] filterFindByCompanyId_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 foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CTCollection> findByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static java.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)public static 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
)public static 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 cachepublic static CTCollection 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 foundpublic static CTCollection 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 foundpublic static CTCollection 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 foundpublic static CTCollection 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 foundpublic static CTCollection[] 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 foundpublic static java.util.List<CTCollection> filterFindByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static java.util.List<CTCollection> filterFindByC_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)public static java.util.List<CTCollection> filterFindByC_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
)public static CTCollection[] filterFindByC_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 foundpublic static void removeByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static int countByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static int filterCountByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static void cacheResult(CTCollection ctCollection)
ctCollection
- the ct collectionpublic static void cacheResult(java.util.List<CTCollection> ctCollections)
ctCollections
- the ct collectionspublic static CTCollection create(long ctCollectionId)
ctCollectionId
- the primary key for the new ct collectionpublic static CTCollection remove(long ctCollectionId) throws NoSuchCollectionException
ctCollectionId
- the primary key of the ct collectionNoSuchCollectionException
- if a ct collection with the primary key could not be foundpublic static CTCollection updateImpl(CTCollection ctCollection)
public static 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 foundpublic static CTCollection 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 foundpublic static java.util.List<CTCollection> findAll()
public static 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)public static 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
)public static 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 cachepublic static void removeAll()
public static int countAll()
public static CTCollectionPersistence getPersistence()