@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 |
addCTEntries(long pk,
java.util.List<CTEntry> ctEntries)
Adds an association between the ct collection and the ct entries.
|
void |
addCTEntries(long pk,
long[] ctEntryPKs)
Adds an association between the ct collection and the ct entries.
|
void |
addCTEntry(long pk,
CTEntry ctEntry)
Adds an association between the ct collection and the ct entry.
|
void |
addCTEntry(long pk,
long ctEntryPK)
Adds an association between the ct collection and the ct entry.
|
void |
addCTEntryAggregate(long pk,
CTEntryAggregate ctEntryAggregate)
Adds an association between the ct collection and the ct entry aggregate.
|
void |
addCTEntryAggregate(long pk,
long ctEntryAggregatePK)
Adds an association between the ct collection and the ct entry aggregate.
|
void |
addCTEntryAggregates(long pk,
java.util.List<CTEntryAggregate> ctEntryAggregates)
Adds an association between the ct collection and the ct entry aggregates.
|
void |
addCTEntryAggregates(long pk,
long[] ctEntryAggregatePKs)
Adds an association between the ct collection and the ct entry aggregates.
|
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.
|
void |
clearCTEntries(long pk)
Clears all associations between the ct collection and its ct entries.
|
void |
clearCTEntryAggregates(long pk)
Clears all associations between the ct collection and its ct entry aggregates.
|
boolean |
containsCTEntries(long pk)
Returns
true if the ct collection has any ct entries associated with it. |
boolean |
containsCTEntry(long pk,
long ctEntryPK)
Returns
true if the ct entry is associated with the ct collection. |
boolean |
containsCTEntryAggregate(long pk,
long ctEntryAggregatePK)
Returns
true if the ct entry aggregate is associated with the ct collection. |
boolean |
containsCTEntryAggregates(long pk)
Returns
true if the ct collection has any ct entry aggregates associated with it. |
int |
countAll()
Returns the number of ct collections.
|
int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of ct collections where companyId = ? and name = ?.
|
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_N(long companyId,
java.lang.String name)
Returns the ct collection where companyId = ? and name = ? or returns
null if it could not be found. |
CTCollection |
fetchByC_N(long companyId,
java.lang.String name,
boolean retrieveFromCache)
Returns the ct collection where companyId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
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 retrieveFromCache)
Returns an ordered range of all the ct collections.
|
CTCollection |
findByC_N(long companyId,
java.lang.String name)
Returns the ct collection where companyId = ? and name = ? or throws a
NoSuchCollectionException if it could not be found. |
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 retrieveFromCache)
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. |
int |
getCTEntriesSize(long pk)
Returns the number of ct entries associated with the ct collection.
|
java.util.List<CTCollection> |
getCTEntryAggregateCTCollections(long pk)
Returns all the ct collection associated with the ct entry aggregate.
|
java.util.List<CTCollection> |
getCTEntryAggregateCTCollections(long pk,
int start,
int end)
Returns all the ct collection associated with the ct entry aggregate.
|
java.util.List<CTCollection> |
getCTEntryAggregateCTCollections(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns all the ct collection associated with the ct entry aggregate.
|
long[] |
getCTEntryAggregatePrimaryKeys(long pk)
Returns the primaryKeys of ct entry aggregates associated with the ct collection.
|
int |
getCTEntryAggregatesSize(long pk)
Returns the number of ct entry aggregates associated with the ct collection.
|
java.util.List<CTCollection> |
getCTEntryCTCollections(long pk)
Returns all the ct collection associated with the ct entry.
|
java.util.List<CTCollection> |
getCTEntryCTCollections(long pk,
int start,
int end)
Returns all the ct collection associated with the ct entry.
|
java.util.List<CTCollection> |
getCTEntryCTCollections(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns all the ct collection associated with the ct entry.
|
long[] |
getCTEntryPrimaryKeys(long pk)
Returns the primaryKeys of ct entries associated with the ct collection.
|
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.
|
CTCollection |
removeByC_N(long companyId,
java.lang.String name)
Removes the ct collection where companyId = ? and name = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the ct collections where companyId = ? from the database.
|
void |
removeCTEntries(long pk,
java.util.List<CTEntry> ctEntries)
Removes the association between the ct collection and the ct entries.
|
void |
removeCTEntries(long pk,
long[] ctEntryPKs)
Removes the association between the ct collection and the ct entries.
|
void |
removeCTEntry(long pk,
CTEntry ctEntry)
Removes the association between the ct collection and the ct entry.
|
void |
removeCTEntry(long pk,
long ctEntryPK)
Removes the association between the ct collection and the ct entry.
|
void |
removeCTEntryAggregate(long pk,
CTEntryAggregate ctEntryAggregate)
Removes the association between the ct collection and the ct entry aggregate.
|
void |
removeCTEntryAggregate(long pk,
long ctEntryAggregatePK)
Removes the association between the ct collection and the ct entry aggregate.
|
void |
removeCTEntryAggregates(long pk,
java.util.List<CTEntryAggregate> ctEntryAggregates)
Removes the association between the ct collection and the ct entry aggregates.
|
void |
removeCTEntryAggregates(long pk,
long[] ctEntryAggregatePKs)
Removes the association between the ct collection and the ct entry aggregates.
|
void |
setCTEntries(long pk,
java.util.List<CTEntry> ctEntries)
Sets the ct entries associated with the ct collection, removing and adding associations as necessary.
|
void |
setCTEntries(long pk,
long[] ctEntryPKs)
Sets the ct entries associated with the ct collection, removing and adding associations as necessary.
|
void |
setCTEntryAggregates(long pk,
java.util.List<CTEntryAggregate> ctEntryAggregates)
Sets the ct entry aggregates associated with the ct collection, removing and adding associations as necessary.
|
void |
setCTEntryAggregates(long pk,
long[] ctEntryAggregatePKs)
Sets the ct entry aggregates associated with the ct collection, removing and adding associations as necessary.
|
CTCollection |
updateImpl(CTCollection ctCollection) |
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from 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 IDCTCollection findByC_N(long companyId, java.lang.String name) throws NoSuchCollectionException
NoSuchCollectionException
if it could not be found.companyId
- the company IDname
- the nameNoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchByC_N(long companyId, java.lang.String name)
null
if it could not be found. Uses the finder cache.companyId
- the company IDname
- the namenull
if a matching ct collection could not be foundCTCollection fetchByC_N(long companyId, java.lang.String name, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching ct collection could not be foundCTCollection removeByC_N(long companyId, java.lang.String name) throws NoSuchCollectionException
companyId
- the company IDname
- the nameNoSuchCollectionException
int countByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namevoid 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()
long[] getCTEntryPrimaryKeys(long pk)
pk
- the primary key of the ct collectionjava.util.List<CTCollection> getCTEntryCTCollections(long pk)
pk
- the primary key of the ct entryjava.util.List<CTCollection> getCTEntryCTCollections(long pk, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the ct entrystart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)java.util.List<CTCollection> getCTEntryCTCollections(long pk, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the ct entrystart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)int getCTEntriesSize(long pk)
pk
- the primary key of the ct collectionboolean containsCTEntry(long pk, long ctEntryPK)
true
if the ct entry is associated with the ct collection.pk
- the primary key of the ct collectionctEntryPK
- the primary key of the ct entrytrue
if the ct entry is associated with the ct collection; false
otherwiseboolean containsCTEntries(long pk)
true
if the ct collection has any ct entries associated with it.pk
- the primary key of the ct collection to check for associations with ct entriestrue
if the ct collection has any ct entries associated with it; false
otherwisevoid addCTEntry(long pk, long ctEntryPK)
pk
- the primary key of the ct collectionctEntryPK
- the primary key of the ct entryvoid addCTEntry(long pk, CTEntry ctEntry)
pk
- the primary key of the ct collectionctEntry
- the ct entryvoid addCTEntries(long pk, long[] ctEntryPKs)
pk
- the primary key of the ct collectionctEntryPKs
- the primary keys of the ct entriesvoid addCTEntries(long pk, java.util.List<CTEntry> ctEntries)
pk
- the primary key of the ct collectionctEntries
- the ct entriesvoid clearCTEntries(long pk)
pk
- the primary key of the ct collection to clear the associated ct entries fromvoid removeCTEntry(long pk, long ctEntryPK)
pk
- the primary key of the ct collectionctEntryPK
- the primary key of the ct entryvoid removeCTEntry(long pk, CTEntry ctEntry)
pk
- the primary key of the ct collectionctEntry
- the ct entryvoid removeCTEntries(long pk, long[] ctEntryPKs)
pk
- the primary key of the ct collectionctEntryPKs
- the primary keys of the ct entriesvoid removeCTEntries(long pk, java.util.List<CTEntry> ctEntries)
pk
- the primary key of the ct collectionctEntries
- the ct entriesvoid setCTEntries(long pk, long[] ctEntryPKs)
pk
- the primary key of the ct collectionctEntryPKs
- the primary keys of the ct entries to be associated with the ct collectionvoid setCTEntries(long pk, java.util.List<CTEntry> ctEntries)
pk
- the primary key of the ct collectionctEntries
- the ct entries to be associated with the ct collectionlong[] getCTEntryAggregatePrimaryKeys(long pk)
pk
- the primary key of the ct collectionjava.util.List<CTCollection> getCTEntryAggregateCTCollections(long pk)
pk
- the primary key of the ct entry aggregatejava.util.List<CTCollection> getCTEntryAggregateCTCollections(long pk, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the ct entry aggregatestart
- the lower bound of the range of ct entry aggregatesend
- the upper bound of the range of ct entry aggregates (not inclusive)java.util.List<CTCollection> getCTEntryAggregateCTCollections(long pk, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CTCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the ct entry aggregatestart
- the lower bound of the range of ct entry aggregatesend
- the upper bound of the range of ct entry aggregates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)int getCTEntryAggregatesSize(long pk)
pk
- the primary key of the ct collectionboolean containsCTEntryAggregate(long pk, long ctEntryAggregatePK)
true
if the ct entry aggregate is associated with the ct collection.pk
- the primary key of the ct collectionctEntryAggregatePK
- the primary key of the ct entry aggregatetrue
if the ct entry aggregate is associated with the ct collection; false
otherwiseboolean containsCTEntryAggregates(long pk)
true
if the ct collection has any ct entry aggregates associated with it.pk
- the primary key of the ct collection to check for associations with ct entry aggregatestrue
if the ct collection has any ct entry aggregates associated with it; false
otherwisevoid addCTEntryAggregate(long pk, long ctEntryAggregatePK)
pk
- the primary key of the ct collectionctEntryAggregatePK
- the primary key of the ct entry aggregatevoid addCTEntryAggregate(long pk, CTEntryAggregate ctEntryAggregate)
pk
- the primary key of the ct collectionctEntryAggregate
- the ct entry aggregatevoid addCTEntryAggregates(long pk, long[] ctEntryAggregatePKs)
pk
- the primary key of the ct collectionctEntryAggregatePKs
- the primary keys of the ct entry aggregatesvoid addCTEntryAggregates(long pk, java.util.List<CTEntryAggregate> ctEntryAggregates)
pk
- the primary key of the ct collectionctEntryAggregates
- the ct entry aggregatesvoid clearCTEntryAggregates(long pk)
pk
- the primary key of the ct collection to clear the associated ct entry aggregates fromvoid removeCTEntryAggregate(long pk, long ctEntryAggregatePK)
pk
- the primary key of the ct collectionctEntryAggregatePK
- the primary key of the ct entry aggregatevoid removeCTEntryAggregate(long pk, CTEntryAggregate ctEntryAggregate)
pk
- the primary key of the ct collectionctEntryAggregate
- the ct entry aggregatevoid removeCTEntryAggregates(long pk, long[] ctEntryAggregatePKs)
pk
- the primary key of the ct collectionctEntryAggregatePKs
- the primary keys of the ct entry aggregatesvoid removeCTEntryAggregates(long pk, java.util.List<CTEntryAggregate> ctEntryAggregates)
pk
- the primary key of the ct collectionctEntryAggregates
- the ct entry aggregatesvoid setCTEntryAggregates(long pk, long[] ctEntryAggregatePKs)
pk
- the primary key of the ct collectionctEntryAggregatePKs
- the primary keys of the ct entry aggregates to be associated with the ct collectionvoid setCTEntryAggregates(long pk, java.util.List<CTEntryAggregate> ctEntryAggregates)
pk
- the primary key of the ct collectionctEntryAggregates
- the ct entry aggregates to be associated with the ct collection