@ProviderType public interface CTPreferencesPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTPreferences>
Caching information and settings can be found in portal.properties
CTPreferencesUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CTPreferences ctPreferences)
Caches the ct preferences in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CTPreferences> ctPreferenceses)
Caches the ct preferenceses in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of ct preferenceses.
|
int |
countByC_U(long companyId,
long userId)
Returns the number of ct preferenceses where companyId = ? and userId = ?.
|
int |
countByCollectionId(long ctCollectionId)
Returns the number of ct preferenceses where ctCollectionId = ?.
|
int |
countByPreviousCollectionId(long previousCtCollectionId)
Returns the number of ct preferenceses where previousCtCollectionId = ?.
|
CTPreferences |
create(long ctPreferencesId)
Creates a new ct preferences with the primary key.
|
CTPreferences |
fetchByC_U(long companyId,
long userId)
Returns the ct preferences where companyId = ? and userId = ? or returns
null if it could not be found. |
CTPreferences |
fetchByC_U(long companyId,
long userId,
boolean useFinderCache)
Returns the ct preferences where companyId = ? and userId = ? or returns
null if it could not be found, optionally using the finder cache. |
CTPreferences |
fetchByCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the first ct preferences in the ordered set where ctCollectionId = ?.
|
CTPreferences |
fetchByCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the last ct preferences in the ordered set where ctCollectionId = ?.
|
CTPreferences |
fetchByPreviousCollectionId_First(long previousCtCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the first ct preferences in the ordered set where previousCtCollectionId = ?.
|
CTPreferences |
fetchByPreviousCollectionId_Last(long previousCtCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the last ct preferences in the ordered set where previousCtCollectionId = ?.
|
CTPreferences |
fetchByPrimaryKey(long ctPreferencesId)
Returns the ct preferences with the primary key or returns
null if it could not be found. |
java.util.List<CTPreferences> |
findAll()
Returns all the ct preferenceses.
|
java.util.List<CTPreferences> |
findAll(int start,
int end)
Returns a range of all the ct preferenceses.
|
java.util.List<CTPreferences> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns an ordered range of all the ct preferenceses.
|
java.util.List<CTPreferences> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct preferenceses.
|
CTPreferences |
findByC_U(long companyId,
long userId)
Returns the ct preferences where companyId = ? and userId = ? or throws a
NoSuchPreferencesException if it could not be found. |
CTPreferences |
findByCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the first ct preferences in the ordered set where ctCollectionId = ?.
|
CTPreferences |
findByCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the last ct preferences in the ordered set where ctCollectionId = ?.
|
CTPreferences[] |
findByCollectionId_PrevAndNext(long ctPreferencesId,
long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the ct preferenceses before and after the current ct preferences in the ordered set where ctCollectionId = ?.
|
java.util.List<CTPreferences> |
findByCollectionId(long ctCollectionId)
Returns all the ct preferenceses where ctCollectionId = ?.
|
java.util.List<CTPreferences> |
findByCollectionId(long ctCollectionId,
int start,
int end)
Returns a range of all the ct preferenceses where ctCollectionId = ?.
|
java.util.List<CTPreferences> |
findByCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns an ordered range of all the ct preferenceses where ctCollectionId = ?.
|
java.util.List<CTPreferences> |
findByCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct preferenceses where ctCollectionId = ?.
|
CTPreferences |
findByPreviousCollectionId_First(long previousCtCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the first ct preferences in the ordered set where previousCtCollectionId = ?.
|
CTPreferences |
findByPreviousCollectionId_Last(long previousCtCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the last ct preferences in the ordered set where previousCtCollectionId = ?.
|
CTPreferences[] |
findByPreviousCollectionId_PrevAndNext(long ctPreferencesId,
long previousCtCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns the ct preferenceses before and after the current ct preferences in the ordered set where previousCtCollectionId = ?.
|
java.util.List<CTPreferences> |
findByPreviousCollectionId(long previousCtCollectionId)
Returns all the ct preferenceses where previousCtCollectionId = ?.
|
java.util.List<CTPreferences> |
findByPreviousCollectionId(long previousCtCollectionId,
int start,
int end)
Returns a range of all the ct preferenceses where previousCtCollectionId = ?.
|
java.util.List<CTPreferences> |
findByPreviousCollectionId(long previousCtCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Returns an ordered range of all the ct preferenceses where previousCtCollectionId = ?.
|
java.util.List<CTPreferences> |
findByPreviousCollectionId(long previousCtCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct preferenceses where previousCtCollectionId = ?.
|
CTPreferences |
findByPrimaryKey(long ctPreferencesId)
Returns the ct preferences with the primary key or throws a
NoSuchPreferencesException if it could not be found. |
CTPreferences |
remove(long ctPreferencesId)
Removes the ct preferences with the primary key from the database.
|
void |
removeAll()
Removes all the ct preferenceses from the database.
|
CTPreferences |
removeByC_U(long companyId,
long userId)
Removes the ct preferences where companyId = ? and userId = ? from the database.
|
void |
removeByCollectionId(long ctCollectionId)
Removes all the ct preferenceses where ctCollectionId = ? from the database.
|
void |
removeByPreviousCollectionId(long previousCtCollectionId)
Removes all the ct preferenceses where previousCtCollectionId = ? from the database.
|
CTPreferences |
updateImpl(CTPreferences ctPreferences) |
clearCache, 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<CTPreferences> findByCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDjava.util.List<CTPreferences> findByCollectionId(long ctCollectionId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTPreferencesModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct preferencesesend
- the upper bound of the range of ct preferenceses (not inclusive)java.util.List<CTPreferences> findByCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTPreferencesModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct preferencesesend
- the upper bound of the range of ct preferenceses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTPreferences> findByCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTPreferencesModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct preferencesesend
- the upper bound of the range of ct preferenceses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCTPreferences findByCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferencesException
- if a matching ct preferences could not be foundCTPreferences fetchByCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct preferences could not be foundCTPreferences findByCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferencesException
- if a matching ct preferences could not be foundCTPreferences fetchByCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct preferences could not be foundCTPreferences[] findByCollectionId_PrevAndNext(long ctPreferencesId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException
ctPreferencesId
- the primary key of the current ct preferencesctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferencesException
- if a ct preferences with the primary key could not be foundvoid removeByCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDint countByCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDjava.util.List<CTPreferences> findByPreviousCollectionId(long previousCtCollectionId)
previousCtCollectionId
- the previous ct collection IDjava.util.List<CTPreferences> findByPreviousCollectionId(long previousCtCollectionId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTPreferencesModelImpl
.
previousCtCollectionId
- the previous ct collection IDstart
- the lower bound of the range of ct preferencesesend
- the upper bound of the range of ct preferenceses (not inclusive)java.util.List<CTPreferences> findByPreviousCollectionId(long previousCtCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTPreferencesModelImpl
.
previousCtCollectionId
- the previous ct collection IDstart
- the lower bound of the range of ct preferencesesend
- the upper bound of the range of ct preferenceses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTPreferences> findByPreviousCollectionId(long previousCtCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTPreferencesModelImpl
.
previousCtCollectionId
- the previous ct collection IDstart
- the lower bound of the range of ct preferencesesend
- the upper bound of the range of ct preferenceses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCTPreferences findByPreviousCollectionId_First(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException
previousCtCollectionId
- the previous ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferencesException
- if a matching ct preferences could not be foundCTPreferences fetchByPreviousCollectionId_First(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
previousCtCollectionId
- the previous ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct preferences could not be foundCTPreferences findByPreviousCollectionId_Last(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException
previousCtCollectionId
- the previous ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferencesException
- if a matching ct preferences could not be foundCTPreferences fetchByPreviousCollectionId_Last(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
previousCtCollectionId
- the previous ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct preferences could not be foundCTPreferences[] findByPreviousCollectionId_PrevAndNext(long ctPreferencesId, long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException
ctPreferencesId
- the primary key of the current ct preferencespreviousCtCollectionId
- the previous ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferencesException
- if a ct preferences with the primary key could not be foundvoid removeByPreviousCollectionId(long previousCtCollectionId)
previousCtCollectionId
- the previous ct collection IDint countByPreviousCollectionId(long previousCtCollectionId)
previousCtCollectionId
- the previous ct collection IDCTPreferences findByC_U(long companyId, long userId) throws NoSuchPreferencesException
NoSuchPreferencesException
if it could not be found.companyId
- the company IDuserId
- the user IDNoSuchPreferencesException
- if a matching ct preferences could not be foundCTPreferences fetchByC_U(long companyId, long userId)
null
if it could not be found. Uses the finder cache.companyId
- the company IDuserId
- the user IDnull
if a matching ct preferences could not be foundCTPreferences fetchByC_U(long companyId, long userId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDuserId
- the user IDuseFinderCache
- whether to use the finder cachenull
if a matching ct preferences could not be foundCTPreferences removeByC_U(long companyId, long userId) throws NoSuchPreferencesException
companyId
- the company IDuserId
- the user IDNoSuchPreferencesException
int countByC_U(long companyId, long userId)
companyId
- the company IDuserId
- the user IDvoid cacheResult(CTPreferences ctPreferences)
ctPreferences
- the ct preferencesvoid cacheResult(java.util.List<CTPreferences> ctPreferenceses)
ctPreferenceses
- the ct preferencesesCTPreferences create(long ctPreferencesId)
ctPreferencesId
- the primary key for the new ct preferencesCTPreferences remove(long ctPreferencesId) throws NoSuchPreferencesException
ctPreferencesId
- the primary key of the ct preferencesNoSuchPreferencesException
- if a ct preferences with the primary key could not be foundCTPreferences updateImpl(CTPreferences ctPreferences)
CTPreferences findByPrimaryKey(long ctPreferencesId) throws NoSuchPreferencesException
NoSuchPreferencesException
if it could not be found.ctPreferencesId
- the primary key of the ct preferencesNoSuchPreferencesException
- if a ct preferences with the primary key could not be foundCTPreferences fetchByPrimaryKey(long ctPreferencesId)
null
if it could not be found.ctPreferencesId
- the primary key of the ct preferencesnull
if a ct preferences with the primary key could not be foundjava.util.List<CTPreferences> findAll()
java.util.List<CTPreferences> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTPreferencesModelImpl
.
start
- the lower bound of the range of ct preferencesesend
- the upper bound of the range of ct preferenceses (not inclusive)java.util.List<CTPreferences> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTPreferencesModelImpl
.
start
- the lower bound of the range of ct preferencesesend
- the upper bound of the range of ct preferenceses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTPreferences> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTPreferencesModelImpl
.
start
- the lower bound of the range of ct preferencesesend
- the upper bound of the range of ct preferenceses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()