@ProviderType public interface CTEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTEntry>
Caching information and settings can be found in portal.properties
CTEntryUtil
Modifier and Type | Method and Description |
---|---|
void |
addCTCollection(long pk,
CTCollection ctCollection)
Adds an association between the ct entry and the ct collection.
|
void |
addCTCollection(long pk,
long ctCollectionPK)
Adds an association between the ct entry and the ct collection.
|
void |
addCTCollections(long pk,
java.util.List<CTCollection> ctCollections)
Adds an association between the ct entry and the ct collections.
|
void |
addCTCollections(long pk,
long[] ctCollectionPKs)
Adds an association between the ct entry and the ct collections.
|
void |
addCTEntryAggregate(long pk,
CTEntryAggregate ctEntryAggregate)
Adds an association between the ct entry and the ct entry aggregate.
|
void |
addCTEntryAggregate(long pk,
long ctEntryAggregatePK)
Adds an association between the ct entry and the ct entry aggregate.
|
void |
addCTEntryAggregates(long pk,
java.util.List<CTEntryAggregate> ctEntryAggregates)
Adds an association between the ct entry and the ct entry aggregates.
|
void |
addCTEntryAggregates(long pk,
long[] ctEntryAggregatePKs)
Adds an association between the ct entry and the ct entry aggregates.
|
void |
cacheResult(CTEntry ctEntry)
Caches the ct entry in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CTEntry> ctEntries)
Caches the ct entries in the entity cache if it is enabled.
|
void |
clearCTCollections(long pk)
Clears all associations between the ct entry and its ct collections.
|
void |
clearCTEntryAggregates(long pk)
Clears all associations between the ct entry and its ct entry aggregates.
|
boolean |
containsCTCollection(long pk,
long ctCollectionPK)
Returns
true if the ct collection is associated with the ct entry. |
boolean |
containsCTCollections(long pk)
Returns
true if the ct entry has any ct collections associated with it. |
boolean |
containsCTEntryAggregate(long pk,
long ctEntryAggregatePK)
Returns
true if the ct entry aggregate is associated with the ct entry. |
boolean |
containsCTEntryAggregates(long pk)
Returns
true if the ct entry has any ct entry aggregates associated with it. |
int |
countAll()
Returns the number of ct entries.
|
int |
countByMCNI_MCPK(long modelClassNameId,
long modelClassPK)
Returns the number of ct entries where modelClassNameId = ? and modelClassPK = ?.
|
int |
countByModelClassNameId(long modelClassNameId)
Returns the number of ct entries where modelClassNameId = ?.
|
CTEntry |
create(long ctEntryId)
Creates a new ct entry with the primary key.
|
CTEntry |
fetchByMCNI_MCPK(long modelClassNameId,
long modelClassPK)
Returns the ct entry where modelClassNameId = ? and modelClassPK = ? or returns
null if it could not be found. |
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. |
CTEntry |
fetchByModelClassNameId_First(long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where modelClassNameId = ?.
|
CTEntry |
fetchByModelClassNameId_Last(long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where modelClassNameId = ?.
|
CTEntry |
fetchByPrimaryKey(long ctEntryId)
Returns the ct entry with the primary key or returns
null if it could not be found. |
java.util.List<CTEntry> |
findAll()
Returns all the ct entries.
|
java.util.List<CTEntry> |
findAll(int start,
int end)
Returns a range of all the ct entries.
|
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.
|
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.
|
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. |
CTEntry |
findByModelClassNameId_First(long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where modelClassNameId = ?.
|
CTEntry |
findByModelClassNameId_Last(long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where modelClassNameId = ?.
|
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 = ?.
|
java.util.List<CTEntry> |
findByModelClassNameId(long modelClassNameId)
Returns all the ct entries where modelClassNameId = ?.
|
java.util.List<CTEntry> |
findByModelClassNameId(long modelClassNameId,
int start,
int end)
Returns a range of all the ct entries where modelClassNameId = ?.
|
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 = ?.
|
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 = ?.
|
CTEntry |
findByPrimaryKey(long ctEntryId)
Returns the ct entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
java.util.List<CTEntry> |
getCTCollectionCTEntries(long pk)
Returns all the ct entry associated with the ct collection.
|
java.util.List<CTEntry> |
getCTCollectionCTEntries(long pk,
int start,
int end)
Returns all the ct entry associated with the ct collection.
|
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.
|
long[] |
getCTCollectionPrimaryKeys(long pk)
Returns the primaryKeys of ct collections associated with the ct entry.
|
int |
getCTCollectionsSize(long pk)
Returns the number of ct collections associated with the ct entry.
|
java.util.List<CTEntry> |
getCTEntryAggregateCTEntries(long pk)
Returns all the ct entry associated with the ct entry aggregate.
|
java.util.List<CTEntry> |
getCTEntryAggregateCTEntries(long pk,
int start,
int end)
Returns all the ct entry associated with the ct entry aggregate.
|
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.
|
long[] |
getCTEntryAggregatePrimaryKeys(long pk)
Returns the primaryKeys of ct entry aggregates associated with the ct entry.
|
int |
getCTEntryAggregatesSize(long pk)
Returns the number of ct entry aggregates associated with the ct entry.
|
CTEntry |
remove(long ctEntryId)
Removes the ct entry with the primary key from the database.
|
void |
removeAll()
Removes all the ct entries from the database.
|
CTEntry |
removeByMCNI_MCPK(long modelClassNameId,
long modelClassPK)
Removes the ct entry where modelClassNameId = ? and modelClassPK = ? from the database.
|
void |
removeByModelClassNameId(long modelClassNameId)
Removes all the ct entries where modelClassNameId = ? from the database.
|
void |
removeCTCollection(long pk,
CTCollection ctCollection)
Removes the association between the ct entry and the ct collection.
|
void |
removeCTCollection(long pk,
long ctCollectionPK)
Removes the association between the ct entry and the ct collection.
|
void |
removeCTCollections(long pk,
java.util.List<CTCollection> ctCollections)
Removes the association between the ct entry and the ct collections.
|
void |
removeCTCollections(long pk,
long[] ctCollectionPKs)
Removes the association between the ct entry and the ct collections.
|
void |
removeCTEntryAggregate(long pk,
CTEntryAggregate ctEntryAggregate)
Removes the association between the ct entry and the ct entry aggregate.
|
void |
removeCTEntryAggregate(long pk,
long ctEntryAggregatePK)
Removes the association between the ct entry and the ct entry aggregate.
|
void |
removeCTEntryAggregates(long pk,
java.util.List<CTEntryAggregate> ctEntryAggregates)
Removes the association between the ct entry and the ct entry aggregates.
|
void |
removeCTEntryAggregates(long pk,
long[] ctEntryAggregatePKs)
Removes the association between the ct entry and the ct entry aggregates.
|
void |
setCTCollections(long pk,
java.util.List<CTCollection> ctCollections)
Sets the ct collections associated with the ct entry, removing and adding associations as necessary.
|
void |
setCTCollections(long pk,
long[] ctCollectionPKs)
Sets the ct collections associated with the ct entry, removing and adding associations as necessary.
|
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.
|
void |
setCTEntryAggregates(long pk,
long[] ctEntryAggregatePKs)
Sets the ct entry aggregates associated with the ct entry, removing and adding associations as necessary.
|
CTEntry |
updateImpl(CTEntry ctEntry) |
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<CTEntry> findByModelClassNameId(long modelClassNameId)
modelClassNameId
- the model class name IDjava.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)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
)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 cacheCTEntry 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 foundCTEntry 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 foundCTEntry 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 foundCTEntry 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 foundCTEntry[] 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 foundvoid removeByModelClassNameId(long modelClassNameId)
modelClassNameId
- the model class name IDint countByModelClassNameId(long modelClassNameId)
modelClassNameId
- the model class name IDCTEntry 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 foundCTEntry 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 foundCTEntry 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 foundCTEntry removeByMCNI_MCPK(long modelClassNameId, long modelClassPK) throws NoSuchEntryException
modelClassNameId
- the model class name IDmodelClassPK
- the model class pkNoSuchEntryException
int countByMCNI_MCPK(long modelClassNameId, long modelClassPK)
modelClassNameId
- the model class name IDmodelClassPK
- the model class pkvoid cacheResult(CTEntry ctEntry)
ctEntry
- the ct entryvoid cacheResult(java.util.List<CTEntry> ctEntries)
ctEntries
- the ct entriesCTEntry create(long ctEntryId)
ctEntryId
- the primary key for the new ct entryCTEntry remove(long ctEntryId) throws NoSuchEntryException
ctEntryId
- the primary key of the ct entryNoSuchEntryException
- if a ct entry with the primary key could not be foundCTEntry 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 foundCTEntry 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 foundjava.util.List<CTEntry> findAll()
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)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
)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 cachevoid removeAll()
int countAll()
long[] getCTEntryAggregatePrimaryKeys(long pk)
pk
- the primary key of the ct entryjava.util.List<CTEntry> getCTEntryAggregateCTEntries(long pk)
pk
- the primary key of the ct entry aggregatejava.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)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
)int getCTEntryAggregatesSize(long pk)
pk
- the primary key of the ct entryboolean 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
otherwiseboolean 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
otherwisevoid addCTEntryAggregate(long pk, long ctEntryAggregatePK)
pk
- the primary key of the ct entryctEntryAggregatePK
- the primary key of the ct entry aggregatevoid addCTEntryAggregate(long pk, CTEntryAggregate ctEntryAggregate)
pk
- the primary key of the ct entryctEntryAggregate
- the ct entry aggregatevoid addCTEntryAggregates(long pk, long[] ctEntryAggregatePKs)
pk
- the primary key of the ct entryctEntryAggregatePKs
- the primary keys of the ct entry aggregatesvoid addCTEntryAggregates(long pk, java.util.List<CTEntryAggregate> ctEntryAggregates)
pk
- the primary key of the ct entryctEntryAggregates
- the ct entry aggregatesvoid clearCTEntryAggregates(long pk)
pk
- the primary key of the ct entry to clear the associated ct entry aggregates fromvoid removeCTEntryAggregate(long pk, long ctEntryAggregatePK)
pk
- the primary key of the ct entryctEntryAggregatePK
- the primary key of the ct entry aggregatevoid removeCTEntryAggregate(long pk, CTEntryAggregate ctEntryAggregate)
pk
- the primary key of the ct entryctEntryAggregate
- the ct entry aggregatevoid removeCTEntryAggregates(long pk, long[] ctEntryAggregatePKs)
pk
- the primary key of the ct entryctEntryAggregatePKs
- the primary keys of the ct entry aggregatesvoid removeCTEntryAggregates(long pk, java.util.List<CTEntryAggregate> ctEntryAggregates)
pk
- the primary key of the ct entryctEntryAggregates
- the ct entry aggregatesvoid 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 entryvoid 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 entrylong[] getCTCollectionPrimaryKeys(long pk)
pk
- the primary key of the ct entryjava.util.List<CTEntry> getCTCollectionCTEntries(long pk)
pk
- the primary key of the ct collectionjava.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)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
)int getCTCollectionsSize(long pk)
pk
- the primary key of the ct entryboolean 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
otherwiseboolean 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
otherwisevoid addCTCollection(long pk, long ctCollectionPK)
pk
- the primary key of the ct entryctCollectionPK
- the primary key of the ct collectionvoid addCTCollection(long pk, CTCollection ctCollection)
pk
- the primary key of the ct entryctCollection
- the ct collectionvoid addCTCollections(long pk, long[] ctCollectionPKs)
pk
- the primary key of the ct entryctCollectionPKs
- the primary keys of the ct collectionsvoid addCTCollections(long pk, java.util.List<CTCollection> ctCollections)
pk
- the primary key of the ct entryctCollections
- the ct collectionsvoid clearCTCollections(long pk)
pk
- the primary key of the ct entry to clear the associated ct collections fromvoid removeCTCollection(long pk, long ctCollectionPK)
pk
- the primary key of the ct entryctCollectionPK
- the primary key of the ct collectionvoid removeCTCollection(long pk, CTCollection ctCollection)
pk
- the primary key of the ct entryctCollection
- the ct collectionvoid removeCTCollections(long pk, long[] ctCollectionPKs)
pk
- the primary key of the ct entryctCollectionPKs
- the primary keys of the ct collectionsvoid removeCTCollections(long pk, java.util.List<CTCollection> ctCollections)
pk
- the primary key of the ct entryctCollections
- the ct collectionsvoid 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 entryvoid 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 entry