@ProviderType
public class CTEntryAggregateUtil
extends java.lang.Object
com.liferay.change.tracking.service.persistence.impl.CTEntryAggregatePersistenceImpl
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
CTEntryAggregatePersistence
Constructor and Description |
---|
CTEntryAggregateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addCTCollection(long pk,
CTCollection ctCollection)
Adds an association between the ct entry aggregate and the ct collection.
|
static void |
addCTCollection(long pk,
long ctCollectionPK)
Adds an association between the ct entry aggregate and the ct collection.
|
static void |
addCTCollections(long pk,
java.util.List<CTCollection> ctCollections)
Adds an association between the ct entry aggregate and the ct collections.
|
static void |
addCTCollections(long pk,
long[] ctCollectionPKs)
Adds an association between the ct entry aggregate and the ct collections.
|
static void |
addCTEntries(long pk,
java.util.List<CTEntry> ctEntries)
Adds an association between the ct entry aggregate and the ct entries.
|
static void |
addCTEntries(long pk,
long[] ctEntryPKs)
Adds an association between the ct entry aggregate and the ct entries.
|
static void |
addCTEntry(long pk,
CTEntry ctEntry)
Adds an association between the ct entry aggregate and the ct entry.
|
static void |
addCTEntry(long pk,
long ctEntryPK)
Adds an association between the ct entry aggregate and the ct entry.
|
static void |
cacheResult(CTEntryAggregate ctEntryAggregate)
Caches the ct entry aggregate in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CTEntryAggregate> ctEntryAggregates)
Caches the ct entry aggregates in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CTEntryAggregate ctEntryAggregate) |
static void |
clearCTCollections(long pk)
Clears all associations between the ct entry aggregate and its ct collections.
|
static void |
clearCTEntries(long pk)
Clears all associations between the ct entry aggregate and its ct entries.
|
static boolean |
containsCTCollection(long pk,
long ctCollectionPK)
Returns
true if the ct collection is associated with the ct entry aggregate. |
static boolean |
containsCTCollections(long pk)
Returns
true if the ct entry aggregate has any ct collections associated with it. |
static boolean |
containsCTEntries(long pk)
Returns
true if the ct entry aggregate has any ct entries associated with it. |
static boolean |
containsCTEntry(long pk,
long ctEntryPK)
Returns
true if the ct entry is associated with the ct entry aggregate. |
static int |
countAll()
Returns the number of ct entry aggregates.
|
static int |
countByOwnerCTEntryId(long ownerCTEntryId)
Returns the number of ct entry aggregates where ownerCTEntryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CTEntryAggregate |
create(long ctEntryAggregateId)
Creates a new ct entry aggregate with the primary key.
|
static CTEntryAggregate |
fetchByOwnerCTEntryId_First(long ownerCTEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
Returns the first ct entry aggregate in the ordered set where ownerCTEntryId = ?.
|
static CTEntryAggregate |
fetchByOwnerCTEntryId_Last(long ownerCTEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
Returns the last ct entry aggregate in the ordered set where ownerCTEntryId = ?.
|
static CTEntryAggregate |
fetchByPrimaryKey(long ctEntryAggregateId)
Returns the ct entry aggregate with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CTEntryAggregate> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CTEntryAggregate> |
findAll()
Returns all the ct entry aggregates.
|
static java.util.List<CTEntryAggregate> |
findAll(int start,
int end)
Returns a range of all the ct entry aggregates.
|
static java.util.List<CTEntryAggregate> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
Returns an ordered range of all the ct entry aggregates.
|
static java.util.List<CTEntryAggregate> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the ct entry aggregates.
|
static CTEntryAggregate |
findByOwnerCTEntryId_First(long ownerCTEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
Returns the first ct entry aggregate in the ordered set where ownerCTEntryId = ?.
|
static CTEntryAggregate |
findByOwnerCTEntryId_Last(long ownerCTEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
Returns the last ct entry aggregate in the ordered set where ownerCTEntryId = ?.
|
static CTEntryAggregate[] |
findByOwnerCTEntryId_PrevAndNext(long ctEntryAggregateId,
long ownerCTEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
Returns the ct entry aggregates before and after the current ct entry aggregate in the ordered set where ownerCTEntryId = ?.
|
static java.util.List<CTEntryAggregate> |
findByOwnerCTEntryId(long ownerCTEntryId)
Returns all the ct entry aggregates where ownerCTEntryId = ?.
|
static java.util.List<CTEntryAggregate> |
findByOwnerCTEntryId(long ownerCTEntryId,
int start,
int end)
Returns a range of all the ct entry aggregates where ownerCTEntryId = ?.
|
static java.util.List<CTEntryAggregate> |
findByOwnerCTEntryId(long ownerCTEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
Returns an ordered range of all the ct entry aggregates where ownerCTEntryId = ?.
|
static java.util.List<CTEntryAggregate> |
findByOwnerCTEntryId(long ownerCTEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the ct entry aggregates where ownerCTEntryId = ?.
|
static CTEntryAggregate |
findByPrimaryKey(long ctEntryAggregateId)
Returns the ct entry aggregate with the primary key or throws a
NoSuchEntryAggregateException if it could not be found. |
static java.util.List<CTEntryAggregate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CTEntryAggregate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CTEntryAggregate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator) |
static java.util.List<CTEntryAggregate> |
getCTCollectionCTEntryAggregates(long pk)
Returns all the ct entry aggregate associated with the ct collection.
|
static java.util.List<CTEntryAggregate> |
getCTCollectionCTEntryAggregates(long pk,
int start,
int end)
Returns all the ct entry aggregate associated with the ct collection.
|
static java.util.List<CTEntryAggregate> |
getCTCollectionCTEntryAggregates(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
Returns all the ct entry aggregate associated with the ct collection.
|
static long[] |
getCTCollectionPrimaryKeys(long pk)
Returns the primaryKeys of ct collections associated with the ct entry aggregate.
|
static int |
getCTCollectionsSize(long pk)
Returns the number of ct collections associated with the ct entry aggregate.
|
static int |
getCTEntriesSize(long pk)
Returns the number of ct entries associated with the ct entry aggregate.
|
static java.util.List<CTEntryAggregate> |
getCTEntryCTEntryAggregates(long pk)
Returns all the ct entry aggregate associated with the ct entry.
|
static java.util.List<CTEntryAggregate> |
getCTEntryCTEntryAggregates(long pk,
int start,
int end)
Returns all the ct entry aggregate associated with the ct entry.
|
static java.util.List<CTEntryAggregate> |
getCTEntryCTEntryAggregates(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
Returns all the ct entry aggregate associated with the ct entry.
|
static long[] |
getCTEntryPrimaryKeys(long pk)
Returns the primaryKeys of ct entries associated with the ct entry aggregate.
|
static CTEntryAggregatePersistence |
getPersistence() |
static CTEntryAggregate |
remove(long ctEntryAggregateId)
Removes the ct entry aggregate with the primary key from the database.
|
static void |
removeAll()
Removes all the ct entry aggregates from the database.
|
static void |
removeByOwnerCTEntryId(long ownerCTEntryId)
Removes all the ct entry aggregates where ownerCTEntryId = ? from the database.
|
static void |
removeCTCollection(long pk,
CTCollection ctCollection)
Removes the association between the ct entry aggregate and the ct collection.
|
static void |
removeCTCollection(long pk,
long ctCollectionPK)
Removes the association between the ct entry aggregate and the ct collection.
|
static void |
removeCTCollections(long pk,
java.util.List<CTCollection> ctCollections)
Removes the association between the ct entry aggregate and the ct collections.
|
static void |
removeCTCollections(long pk,
long[] ctCollectionPKs)
Removes the association between the ct entry aggregate and the ct collections.
|
static void |
removeCTEntries(long pk,
java.util.List<CTEntry> ctEntries)
Removes the association between the ct entry aggregate and the ct entries.
|
static void |
removeCTEntries(long pk,
long[] ctEntryPKs)
Removes the association between the ct entry aggregate and the ct entries.
|
static void |
removeCTEntry(long pk,
CTEntry ctEntry)
Removes the association between the ct entry aggregate and the ct entry.
|
static void |
removeCTEntry(long pk,
long ctEntryPK)
Removes the association between the ct entry aggregate and the ct entry.
|
static void |
setCTCollections(long pk,
java.util.List<CTCollection> ctCollections)
Sets the ct collections associated with the ct entry aggregate, removing and adding associations as necessary.
|
static void |
setCTCollections(long pk,
long[] ctCollectionPKs)
Sets the ct collections associated with the ct entry aggregate, removing and adding associations as necessary.
|
static void |
setCTEntries(long pk,
java.util.List<CTEntry> ctEntries)
Sets the ct entries associated with the ct entry aggregate, removing and adding associations as necessary.
|
static void |
setCTEntries(long pk,
long[] ctEntryPKs)
Sets the ct entries associated with the ct entry aggregate, removing and adding associations as necessary.
|
static CTEntryAggregate |
update(CTEntryAggregate ctEntryAggregate) |
static CTEntryAggregate |
update(CTEntryAggregate ctEntryAggregate,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CTEntryAggregate |
updateImpl(CTEntryAggregate ctEntryAggregate) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CTEntryAggregate ctEntryAggregate)
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,CTEntryAggregate> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CTEntryAggregate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CTEntryAggregate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CTEntryAggregate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CTEntryAggregate update(CTEntryAggregate ctEntryAggregate)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CTEntryAggregate update(CTEntryAggregate ctEntryAggregate, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CTEntryAggregate> findByOwnerCTEntryId(long ownerCTEntryId)
ownerCTEntryId
- the owner ct entry IDpublic static java.util.List<CTEntryAggregate> findByOwnerCTEntryId(long ownerCTEntryId, 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 CTEntryAggregateModelImpl
. 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.
ownerCTEntryId
- the owner ct entry IDstart
- the lower bound of the range of ct entry aggregatesend
- the upper bound of the range of ct entry aggregates (not inclusive)public static java.util.List<CTEntryAggregate> findByOwnerCTEntryId(long ownerCTEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> 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 CTEntryAggregateModelImpl
. 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.
ownerCTEntryId
- the owner ct entry IDstart
- 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
)public static java.util.List<CTEntryAggregate> findByOwnerCTEntryId(long ownerCTEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> 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 CTEntryAggregateModelImpl
. 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.
ownerCTEntryId
- the owner ct entry IDstart
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CTEntryAggregate findByOwnerCTEntryId_First(long ownerCTEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator) throws NoSuchEntryAggregateException
ownerCTEntryId
- the owner ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryAggregateException
- if a matching ct entry aggregate could not be foundpublic static CTEntryAggregate fetchByOwnerCTEntryId_First(long ownerCTEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
ownerCTEntryId
- the owner ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry aggregate could not be foundpublic static CTEntryAggregate findByOwnerCTEntryId_Last(long ownerCTEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator) throws NoSuchEntryAggregateException
ownerCTEntryId
- the owner ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryAggregateException
- if a matching ct entry aggregate could not be foundpublic static CTEntryAggregate fetchByOwnerCTEntryId_Last(long ownerCTEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator)
ownerCTEntryId
- the owner ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry aggregate could not be foundpublic static CTEntryAggregate[] findByOwnerCTEntryId_PrevAndNext(long ctEntryAggregateId, long ownerCTEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> orderByComparator) throws NoSuchEntryAggregateException
ctEntryAggregateId
- the primary key of the current ct entry aggregateownerCTEntryId
- the owner ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryAggregateException
- if a ct entry aggregate with the primary key could not be foundpublic static void removeByOwnerCTEntryId(long ownerCTEntryId)
ownerCTEntryId
- the owner ct entry IDpublic static int countByOwnerCTEntryId(long ownerCTEntryId)
ownerCTEntryId
- the owner ct entry IDpublic static void cacheResult(CTEntryAggregate ctEntryAggregate)
ctEntryAggregate
- the ct entry aggregatepublic static void cacheResult(java.util.List<CTEntryAggregate> ctEntryAggregates)
ctEntryAggregates
- the ct entry aggregatespublic static CTEntryAggregate create(long ctEntryAggregateId)
ctEntryAggregateId
- the primary key for the new ct entry aggregatepublic static CTEntryAggregate remove(long ctEntryAggregateId) throws NoSuchEntryAggregateException
ctEntryAggregateId
- the primary key of the ct entry aggregateNoSuchEntryAggregateException
- if a ct entry aggregate with the primary key could not be foundpublic static CTEntryAggregate updateImpl(CTEntryAggregate ctEntryAggregate)
public static CTEntryAggregate findByPrimaryKey(long ctEntryAggregateId) throws NoSuchEntryAggregateException
NoSuchEntryAggregateException
if it could not be found.ctEntryAggregateId
- the primary key of the ct entry aggregateNoSuchEntryAggregateException
- if a ct entry aggregate with the primary key could not be foundpublic static CTEntryAggregate fetchByPrimaryKey(long ctEntryAggregateId)
null
if it could not be found.ctEntryAggregateId
- the primary key of the ct entry aggregatenull
if a ct entry aggregate with the primary key could not be foundpublic static java.util.List<CTEntryAggregate> findAll()
public static java.util.List<CTEntryAggregate> 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 CTEntryAggregateModelImpl
. 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 entry aggregatesend
- the upper bound of the range of ct entry aggregates (not inclusive)public static java.util.List<CTEntryAggregate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> 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 CTEntryAggregateModelImpl
. 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 entry aggregatesend
- the upper bound of the range of ct entry aggregates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTEntryAggregate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> 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 CTEntryAggregateModelImpl
. 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 entry aggregatesend
- the upper bound of the range of ct entry aggregates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static long[] getCTCollectionPrimaryKeys(long pk)
pk
- the primary key of the ct entry aggregatepublic static java.util.List<CTEntryAggregate> getCTCollectionCTEntryAggregates(long pk)
pk
- the primary key of the ct collectionpublic static java.util.List<CTEntryAggregate> getCTCollectionCTEntryAggregates(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 CTEntryAggregateModelImpl
. 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 collectionstart
- 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<CTEntryAggregate> getCTCollectionCTEntryAggregates(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> 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 CTEntryAggregateModelImpl
. 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 collectionstart
- 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 int getCTCollectionsSize(long pk)
pk
- the primary key of the ct entry aggregatepublic static boolean containsCTCollection(long pk, long ctCollectionPK)
true
if the ct collection is associated with the ct entry aggregate.pk
- the primary key of the ct entry aggregatectCollectionPK
- the primary key of the ct collectiontrue
if the ct collection is associated with the ct entry aggregate; false
otherwisepublic static boolean containsCTCollections(long pk)
true
if the ct entry aggregate has any ct collections associated with it.pk
- the primary key of the ct entry aggregate to check for associations with ct collectionstrue
if the ct entry aggregate has any ct collections associated with it; false
otherwisepublic static void addCTCollection(long pk, long ctCollectionPK)
pk
- the primary key of the ct entry aggregatectCollectionPK
- the primary key of the ct collectionpublic static void addCTCollection(long pk, CTCollection ctCollection)
pk
- the primary key of the ct entry aggregatectCollection
- the ct collectionpublic static void addCTCollections(long pk, long[] ctCollectionPKs)
pk
- the primary key of the ct entry aggregatectCollectionPKs
- the primary keys of the ct collectionspublic static void addCTCollections(long pk, java.util.List<CTCollection> ctCollections)
pk
- the primary key of the ct entry aggregatectCollections
- the ct collectionspublic static void clearCTCollections(long pk)
pk
- the primary key of the ct entry aggregate to clear the associated ct collections frompublic static void removeCTCollection(long pk, long ctCollectionPK)
pk
- the primary key of the ct entry aggregatectCollectionPK
- the primary key of the ct collectionpublic static void removeCTCollection(long pk, CTCollection ctCollection)
pk
- the primary key of the ct entry aggregatectCollection
- the ct collectionpublic static void removeCTCollections(long pk, long[] ctCollectionPKs)
pk
- the primary key of the ct entry aggregatectCollectionPKs
- the primary keys of the ct collectionspublic static void removeCTCollections(long pk, java.util.List<CTCollection> ctCollections)
pk
- the primary key of the ct entry aggregatectCollections
- the ct collectionspublic static void setCTCollections(long pk, long[] ctCollectionPKs)
pk
- the primary key of the ct entry aggregatectCollectionPKs
- the primary keys of the ct collections to be associated with the ct entry aggregatepublic static void setCTCollections(long pk, java.util.List<CTCollection> ctCollections)
pk
- the primary key of the ct entry aggregatectCollections
- the ct collections to be associated with the ct entry aggregatepublic static long[] getCTEntryPrimaryKeys(long pk)
pk
- the primary key of the ct entry aggregatepublic static java.util.List<CTEntryAggregate> getCTEntryCTEntryAggregates(long pk)
pk
- the primary key of the ct entrypublic static java.util.List<CTEntryAggregate> getCTEntryCTEntryAggregates(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 CTEntryAggregateModelImpl
. 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)public static java.util.List<CTEntryAggregate> getCTEntryCTEntryAggregates(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntryAggregate> 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 CTEntryAggregateModelImpl
. 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
)public static int getCTEntriesSize(long pk)
pk
- the primary key of the ct entry aggregatepublic static boolean containsCTEntry(long pk, long ctEntryPK)
true
if the ct entry is associated with the ct entry aggregate.pk
- the primary key of the ct entry aggregatectEntryPK
- the primary key of the ct entrytrue
if the ct entry is associated with the ct entry aggregate; false
otherwisepublic static boolean containsCTEntries(long pk)
true
if the ct entry aggregate has any ct entries associated with it.pk
- the primary key of the ct entry aggregate to check for associations with ct entriestrue
if the ct entry aggregate has any ct entries associated with it; false
otherwisepublic static void addCTEntry(long pk, long ctEntryPK)
pk
- the primary key of the ct entry aggregatectEntryPK
- the primary key of the ct entrypublic static void addCTEntry(long pk, CTEntry ctEntry)
pk
- the primary key of the ct entry aggregatectEntry
- the ct entrypublic static void addCTEntries(long pk, long[] ctEntryPKs)
pk
- the primary key of the ct entry aggregatectEntryPKs
- the primary keys of the ct entriespublic static void addCTEntries(long pk, java.util.List<CTEntry> ctEntries)
pk
- the primary key of the ct entry aggregatectEntries
- the ct entriespublic static void clearCTEntries(long pk)
pk
- the primary key of the ct entry aggregate to clear the associated ct entries frompublic static void removeCTEntry(long pk, long ctEntryPK)
pk
- the primary key of the ct entry aggregatectEntryPK
- the primary key of the ct entrypublic static void removeCTEntry(long pk, CTEntry ctEntry)
pk
- the primary key of the ct entry aggregatectEntry
- the ct entrypublic static void removeCTEntries(long pk, long[] ctEntryPKs)
pk
- the primary key of the ct entry aggregatectEntryPKs
- the primary keys of the ct entriespublic static void removeCTEntries(long pk, java.util.List<CTEntry> ctEntries)
pk
- the primary key of the ct entry aggregatectEntries
- the ct entriespublic static void setCTEntries(long pk, long[] ctEntryPKs)
pk
- the primary key of the ct entry aggregatectEntryPKs
- the primary keys of the ct entries to be associated with the ct entry aggregatepublic static void setCTEntries(long pk, java.util.List<CTEntry> ctEntries)
pk
- the primary key of the ct entry aggregatectEntries
- the ct entries to be associated with the ct entry aggregatepublic static CTEntryAggregatePersistence getPersistence()