@ProviderType
public class CTEntryUtil
extends java.lang.Object
com.liferay.change.tracking.service.persistence.impl.CTEntryPersistenceImpl
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
CTEntryPersistence
Constructor and Description |
---|
CTEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addCTCollection(long pk,
CTCollection ctCollection)
Adds an association between the ct entry and the ct collection.
|
static void |
addCTCollection(long pk,
long ctCollectionPK)
Adds an association between the ct entry and the ct collection.
|
static void |
addCTCollections(long pk,
java.util.List<CTCollection> ctCollections)
Adds an association between the ct entry and the ct collections.
|
static void |
addCTCollections(long pk,
long[] ctCollectionPKs)
Adds an association between the ct entry and the ct collections.
|
static void |
addCTEntryAggregate(long pk,
CTEntryAggregate ctEntryAggregate)
Adds an association between the ct entry and the ct entry aggregate.
|
static void |
addCTEntryAggregate(long pk,
long ctEntryAggregatePK)
Adds an association between the ct entry and the ct entry aggregate.
|
static void |
addCTEntryAggregates(long pk,
java.util.List<CTEntryAggregate> ctEntryAggregates)
Adds an association between the ct entry and the ct entry aggregates.
|
static void |
addCTEntryAggregates(long pk,
long[] ctEntryAggregatePKs)
Adds an association between the ct entry and the ct entry aggregates.
|
static void |
cacheResult(CTEntry ctEntry)
Caches the ct entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CTEntry> ctEntries)
Caches the ct entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CTEntry ctEntry) |
static void |
clearCTCollections(long pk)
Clears all associations between the ct entry and its ct collections.
|
static void |
clearCTEntryAggregates(long pk)
Clears all associations between the ct entry and its ct entry aggregates.
|
static boolean |
containsCTCollection(long pk,
long ctCollectionPK)
Returns
true if the ct collection is associated with the ct entry. |
static boolean |
containsCTCollections(long pk)
Returns
true if the ct entry has any ct collections associated with it. |
static boolean |
containsCTEntryAggregate(long pk,
long ctEntryAggregatePK)
Returns
true if the ct entry aggregate is associated with the ct entry. |
static boolean |
containsCTEntryAggregates(long pk)
Returns
true if the ct entry has any ct entry aggregates associated with it. |
static int |
countAll()
Returns the number of ct entries.
|
static int |
countByMCNI_MCPK(long modelClassNameId,
long modelClassPK)
Returns the number of ct entries where modelClassNameId = ? and modelClassPK = ?.
|
static int |
countByModelClassNameId(long modelClassNameId)
Returns the number of ct entries where modelClassNameId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CTEntry |
create(long ctEntryId)
Creates a new ct entry with the primary key.
|
static CTEntry |
fetchByMCNI_MCPK(long modelClassNameId,
long modelClassPK)
Returns the ct entry where modelClassNameId = ? and modelClassPK = ? or returns
null if it could not be found. |
static CTEntry |
fetchByMCNI_MCPK(long modelClassNameId,
long modelClassPK,
boolean retrieveFromCache)
Returns the ct entry where modelClassNameId = ? and modelClassPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static CTEntry |
fetchByModelClassNameId_First(long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where modelClassNameId = ?.
|
static CTEntry |
fetchByModelClassNameId_Last(long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where modelClassNameId = ?.
|
static CTEntry |
fetchByPrimaryKey(long ctEntryId)
Returns the ct entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CTEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CTEntry> |
findAll()
Returns all the ct entries.
|
static java.util.List<CTEntry> |
findAll(int start,
int end)
Returns a range of all the ct entries.
|
static java.util.List<CTEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns an ordered range of all the ct entries.
|
static java.util.List<CTEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the ct entries.
|
static CTEntry |
findByMCNI_MCPK(long modelClassNameId,
long modelClassPK)
Returns the ct entry where modelClassNameId = ? and modelClassPK = ? or throws a
NoSuchEntryException if it could not be found. |
static CTEntry |
findByModelClassNameId_First(long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where modelClassNameId = ?.
|
static CTEntry |
findByModelClassNameId_Last(long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where modelClassNameId = ?.
|
static CTEntry[] |
findByModelClassNameId_PrevAndNext(long ctEntryId,
long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the ct entries before and after the current ct entry in the ordered set where modelClassNameId = ?.
|
static java.util.List<CTEntry> |
findByModelClassNameId(long modelClassNameId)
Returns all the ct entries where modelClassNameId = ?.
|
static java.util.List<CTEntry> |
findByModelClassNameId(long modelClassNameId,
int start,
int end)
Returns a range of all the ct entries where modelClassNameId = ?.
|
static java.util.List<CTEntry> |
findByModelClassNameId(long modelClassNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns an ordered range of all the ct entries where modelClassNameId = ?.
|
static java.util.List<CTEntry> |
findByModelClassNameId(long modelClassNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the ct entries where modelClassNameId = ?.
|
static CTEntry |
findByPrimaryKey(long ctEntryId)
Returns the ct entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
static java.util.List<CTEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CTEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CTEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) |
static java.util.List<CTEntry> |
getCTCollectionCTEntries(long pk)
Returns all the ct entry associated with the ct collection.
|
static java.util.List<CTEntry> |
getCTCollectionCTEntries(long pk,
int start,
int end)
Returns all the ct entry associated with the ct collection.
|
static java.util.List<CTEntry> |
getCTCollectionCTEntries(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns all the ct entry associated with the ct collection.
|
static long[] |
getCTCollectionPrimaryKeys(long pk)
Returns the primaryKeys of ct collections associated with the ct entry.
|
static int |
getCTCollectionsSize(long pk)
Returns the number of ct collections associated with the ct entry.
|
static java.util.List<CTEntry> |
getCTEntryAggregateCTEntries(long pk)
Returns all the ct entry associated with the ct entry aggregate.
|
static java.util.List<CTEntry> |
getCTEntryAggregateCTEntries(long pk,
int start,
int end)
Returns all the ct entry associated with the ct entry aggregate.
|
static java.util.List<CTEntry> |
getCTEntryAggregateCTEntries(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns all the ct entry associated with the ct entry aggregate.
|
static long[] |
getCTEntryAggregatePrimaryKeys(long pk)
Returns the primaryKeys of ct entry aggregates associated with the ct entry.
|
static int |
getCTEntryAggregatesSize(long pk)
Returns the number of ct entry aggregates associated with the ct entry.
|
static CTEntryPersistence |
getPersistence() |
static CTEntry |
remove(long ctEntryId)
Removes the ct entry with the primary key from the database.
|
static void |
removeAll()
Removes all the ct entries from the database.
|
static CTEntry |
removeByMCNI_MCPK(long modelClassNameId,
long modelClassPK)
Removes the ct entry where modelClassNameId = ? and modelClassPK = ? from the database.
|
static void |
removeByModelClassNameId(long modelClassNameId)
Removes all the ct entries where modelClassNameId = ? from the database.
|
static void |
removeCTCollection(long pk,
CTCollection ctCollection)
Removes the association between the ct entry and the ct collection.
|
static void |
removeCTCollection(long pk,
long ctCollectionPK)
Removes the association between the ct entry and the ct collection.
|
static void |
removeCTCollections(long pk,
java.util.List<CTCollection> ctCollections)
Removes the association between the ct entry and the ct collections.
|
static void |
removeCTCollections(long pk,
long[] ctCollectionPKs)
Removes the association between the ct entry and the ct collections.
|
static void |
removeCTEntryAggregate(long pk,
CTEntryAggregate ctEntryAggregate)
Removes the association between the ct entry and the ct entry aggregate.
|
static void |
removeCTEntryAggregate(long pk,
long ctEntryAggregatePK)
Removes the association between the ct entry and the ct entry aggregate.
|
static void |
removeCTEntryAggregates(long pk,
java.util.List<CTEntryAggregate> ctEntryAggregates)
Removes the association between the ct entry and the ct entry aggregates.
|
static void |
removeCTEntryAggregates(long pk,
long[] ctEntryAggregatePKs)
Removes the association between the ct entry and the ct entry aggregates.
|
static void |
setCTCollections(long pk,
java.util.List<CTCollection> ctCollections)
Sets the ct collections associated with the ct entry, removing and adding associations as necessary.
|
static void |
setCTCollections(long pk,
long[] ctCollectionPKs)
Sets the ct collections associated with the ct entry, removing and adding associations as necessary.
|
static void |
setCTEntryAggregates(long pk,
java.util.List<CTEntryAggregate> ctEntryAggregates)
Sets the ct entry aggregates associated with the ct entry, removing and adding associations as necessary.
|
static void |
setCTEntryAggregates(long pk,
long[] ctEntryAggregatePKs)
Sets the ct entry aggregates associated with the ct entry, removing and adding associations as necessary.
|
static CTEntry |
update(CTEntry ctEntry) |
static CTEntry |
update(CTEntry ctEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CTEntry |
updateImpl(CTEntry ctEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CTEntry ctEntry)
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,CTEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CTEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CTEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CTEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CTEntry update(CTEntry ctEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CTEntry update(CTEntry ctEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CTEntry> findByModelClassNameId(long modelClassNameId)
modelClassNameId
- the model class name IDpublic static java.util.List<CTEntry> findByModelClassNameId(long modelClassNameId, 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 CTEntryModelImpl
. 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.
modelClassNameId
- the model class name IDstart
- 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<CTEntry> findByModelClassNameId(long modelClassNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
. 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.
modelClassNameId
- the model class name IDstart
- 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 java.util.List<CTEntry> findByModelClassNameId(long modelClassNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
. 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.
modelClassNameId
- the model class name IDstart
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CTEntry findByModelClassNameId_First(long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
modelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByModelClassNameId_First(long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
modelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry could not be foundpublic static CTEntry findByModelClassNameId_Last(long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
modelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByModelClassNameId_Last(long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
modelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry could not be foundpublic static CTEntry[] findByModelClassNameId_PrevAndNext(long ctEntryId, long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctEntryId
- the primary key of the current ct entrymodelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a ct entry with the primary key could not be foundpublic static void removeByModelClassNameId(long modelClassNameId)
modelClassNameId
- the model class name IDpublic static int countByModelClassNameId(long modelClassNameId)
modelClassNameId
- the model class name IDpublic static CTEntry findByMCNI_MCPK(long modelClassNameId, long modelClassPK) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.modelClassNameId
- the model class name IDmodelClassPK
- the model class pkNoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByMCNI_MCPK(long modelClassNameId, long modelClassPK)
null
if it could not be found. Uses the finder cache.modelClassNameId
- the model class name IDmodelClassPK
- the model class pknull
if a matching ct entry could not be foundpublic static CTEntry fetchByMCNI_MCPK(long modelClassNameId, long modelClassPK, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.modelClassNameId
- the model class name IDmodelClassPK
- the model class pkretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching ct entry could not be foundpublic static CTEntry removeByMCNI_MCPK(long modelClassNameId, long modelClassPK) throws NoSuchEntryException
modelClassNameId
- the model class name IDmodelClassPK
- the model class pkNoSuchEntryException
public static int countByMCNI_MCPK(long modelClassNameId, long modelClassPK)
modelClassNameId
- the model class name IDmodelClassPK
- the model class pkpublic static void cacheResult(CTEntry ctEntry)
ctEntry
- the ct entrypublic static void cacheResult(java.util.List<CTEntry> ctEntries)
ctEntries
- the ct entriespublic static CTEntry create(long ctEntryId)
ctEntryId
- the primary key for the new ct entrypublic static CTEntry remove(long ctEntryId) throws NoSuchEntryException
ctEntryId
- the primary key of the ct entryNoSuchEntryException
- if a ct entry with the primary key could not be foundpublic static CTEntry findByPrimaryKey(long ctEntryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.ctEntryId
- the primary key of the ct entryNoSuchEntryException
- if a ct entry with the primary key could not be foundpublic static CTEntry fetchByPrimaryKey(long ctEntryId)
null
if it could not be found.ctEntryId
- the primary key of the ct entrynull
if a ct entry with the primary key could not be foundpublic static java.util.List<CTEntry> findAll()
public static java.util.List<CTEntry> 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 CTEntryModelImpl
. 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 entriesend
- the upper bound of the range of ct entries (not inclusive)public static java.util.List<CTEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
. 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 entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
. 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 entriesend
- the upper bound of the range of ct entries (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[] getCTEntryAggregatePrimaryKeys(long pk)
pk
- the primary key of the ct entrypublic static java.util.List<CTEntry> getCTEntryAggregateCTEntries(long pk)
pk
- the primary key of the ct entry aggregatepublic static java.util.List<CTEntry> getCTEntryAggregateCTEntries(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 CTEntryModelImpl
. 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)public static java.util.List<CTEntry> getCTEntryAggregateCTEntries(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
. 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
)public static int getCTEntryAggregatesSize(long pk)
pk
- the primary key of the ct entrypublic static boolean containsCTEntryAggregate(long pk, long ctEntryAggregatePK)
true
if the ct entry aggregate is associated with the ct entry.pk
- the primary key of the ct entryctEntryAggregatePK
- the primary key of the ct entry aggregatetrue
if the ct entry aggregate is associated with the ct entry; false
otherwisepublic static boolean containsCTEntryAggregates(long pk)
true
if the ct entry has any ct entry aggregates associated with it.pk
- the primary key of the ct entry to check for associations with ct entry aggregatestrue
if the ct entry has any ct entry aggregates associated with it; false
otherwisepublic static void addCTEntryAggregate(long pk, long ctEntryAggregatePK)
pk
- the primary key of the ct entryctEntryAggregatePK
- the primary key of the ct entry aggregatepublic static void addCTEntryAggregate(long pk, CTEntryAggregate ctEntryAggregate)
pk
- the primary key of the ct entryctEntryAggregate
- the ct entry aggregatepublic static void addCTEntryAggregates(long pk, long[] ctEntryAggregatePKs)
pk
- the primary key of the ct entryctEntryAggregatePKs
- the primary keys of the ct entry aggregatespublic static void addCTEntryAggregates(long pk, java.util.List<CTEntryAggregate> ctEntryAggregates)
pk
- the primary key of the ct entryctEntryAggregates
- the ct entry aggregatespublic static void clearCTEntryAggregates(long pk)
pk
- the primary key of the ct entry to clear the associated ct entry aggregates frompublic static void removeCTEntryAggregate(long pk, long ctEntryAggregatePK)
pk
- the primary key of the ct entryctEntryAggregatePK
- the primary key of the ct entry aggregatepublic static void removeCTEntryAggregate(long pk, CTEntryAggregate ctEntryAggregate)
pk
- the primary key of the ct entryctEntryAggregate
- the ct entry aggregatepublic static void removeCTEntryAggregates(long pk, long[] ctEntryAggregatePKs)
pk
- the primary key of the ct entryctEntryAggregatePKs
- the primary keys of the ct entry aggregatespublic static void removeCTEntryAggregates(long pk, java.util.List<CTEntryAggregate> ctEntryAggregates)
pk
- the primary key of the ct entryctEntryAggregates
- the ct entry aggregatespublic static void setCTEntryAggregates(long pk, long[] ctEntryAggregatePKs)
pk
- the primary key of the ct entryctEntryAggregatePKs
- the primary keys of the ct entry aggregates to be associated with the ct entrypublic static void setCTEntryAggregates(long pk, java.util.List<CTEntryAggregate> ctEntryAggregates)
pk
- the primary key of the ct entryctEntryAggregates
- the ct entry aggregates to be associated with the ct entrypublic static long[] getCTCollectionPrimaryKeys(long pk)
pk
- the primary key of the ct entrypublic static java.util.List<CTEntry> getCTCollectionCTEntries(long pk)
pk
- the primary key of the ct collectionpublic static java.util.List<CTEntry> getCTCollectionCTEntries(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 CTEntryModelImpl
. 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<CTEntry> getCTCollectionCTEntries(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
. 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 entrypublic static boolean containsCTCollection(long pk, long ctCollectionPK)
true
if the ct collection is associated with the ct entry.pk
- the primary key of the ct entryctCollectionPK
- the primary key of the ct collectiontrue
if the ct collection is associated with the ct entry; false
otherwisepublic static boolean containsCTCollections(long pk)
true
if the ct entry has any ct collections associated with it.pk
- the primary key of the ct entry to check for associations with ct collectionstrue
if the ct entry has any ct collections associated with it; false
otherwisepublic static void addCTCollection(long pk, long ctCollectionPK)
pk
- the primary key of the ct entryctCollectionPK
- the primary key of the ct collectionpublic static void addCTCollection(long pk, CTCollection ctCollection)
pk
- the primary key of the ct entryctCollection
- the ct collectionpublic static void addCTCollections(long pk, long[] ctCollectionPKs)
pk
- the primary key of the ct entryctCollectionPKs
- the primary keys of the ct collectionspublic static void addCTCollections(long pk, java.util.List<CTCollection> ctCollections)
pk
- the primary key of the ct entryctCollections
- the ct collectionspublic static void clearCTCollections(long pk)
pk
- the primary key of the ct entry to clear the associated ct collections frompublic static void removeCTCollection(long pk, long ctCollectionPK)
pk
- the primary key of the ct entryctCollectionPK
- the primary key of the ct collectionpublic static void removeCTCollection(long pk, CTCollection ctCollection)
pk
- the primary key of the ct entryctCollection
- the ct collectionpublic static void removeCTCollections(long pk, long[] ctCollectionPKs)
pk
- the primary key of the ct entryctCollectionPKs
- the primary keys of the ct collectionspublic static void removeCTCollections(long pk, java.util.List<CTCollection> ctCollections)
pk
- the primary key of the ct entryctCollections
- the ct collectionspublic static void setCTCollections(long pk, long[] ctCollectionPKs)
pk
- the primary key of the ct entryctCollectionPKs
- the primary keys of the ct collections to be associated with the ct entrypublic static void setCTCollections(long pk, java.util.List<CTCollection> ctCollections)
pk
- the primary key of the ct entryctCollections
- the ct collections to be associated with the ct entrypublic static CTEntryPersistence getPersistence()