Class CTPreferencesUtil
com.liferay.change.tracking.service.persistence.impl.CTPreferencesPersistenceImpl 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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CTPreferences ctPreferences) Caches the ct preferences in the entity cache if it is enabled.static voidcacheResult(List<CTPreferences> ctPreferenceses) Caches the ct preferenceses in the entity cache if it is enabled.static voidstatic voidclearCache(CTPreferences ctPreferences) static intcountAll()Returns the number of ct preferenceses.static intcountByC_U(long companyId, long userId) Returns the number of ct preferenceses where companyId = ? and userId = ?.static intcountByCtCollectionId(long ctCollectionId) Returns the number of ct preferenceses where ctCollectionId = ?.static intcountByPreviousCtCollectionId(long previousCtCollectionId) Returns the number of ct preferenceses where previousCtCollectionId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTPreferencescreate(long ctPreferencesId) Creates a new ct preferences with the primary key.static CTPreferencesfetchByC_U(long companyId, long userId) Returns the ct preferences where companyId = ? and userId = ? or returnsnullif it could not be found.static CTPreferencesfetchByC_U(long companyId, long userId, boolean useFinderCache) Returns the ct preferences where companyId = ? and userId = ? or returnsnullif it could not be found, optionally using the finder cache.static CTPreferencesfetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where ctCollectionId = ?.static CTPreferencesfetchByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the last ct preferences in the ordered set where ctCollectionId = ?.static CTPreferencesfetchByPreviousCtCollectionId_First(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where previousCtCollectionId = ?.static CTPreferencesfetchByPreviousCtCollectionId_Last(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the last ct preferences in the ordered set where previousCtCollectionId = ?.static CTPreferencesfetchByPrimaryKey(long ctPreferencesId) Returns the ct preferences with the primary key or returnsnullif it could not be found.static Map<Serializable,CTPreferences> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<CTPreferences>findAll()Returns all the ct preferenceses.static List<CTPreferences>findAll(int start, int end) Returns a range of all the ct preferenceses.static List<CTPreferences>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns an ordered range of all the ct preferenceses.static 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.static CTPreferencesfindByC_U(long companyId, long userId) Returns the ct preferences where companyId = ? and userId = ? or throws aNoSuchPreferencesExceptionif it could not be found.static List<CTPreferences>findByCtCollectionId(long ctCollectionId) Returns all the ct preferenceses where ctCollectionId = ?.static List<CTPreferences>findByCtCollectionId(long ctCollectionId, int start, int end) Returns a range of all the ct preferenceses where ctCollectionId = ?.static List<CTPreferences>findByCtCollectionId(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 = ?.static List<CTPreferences>findByCtCollectionId(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 = ?.static CTPreferencesfindByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where ctCollectionId = ?.static CTPreferencesfindByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the last ct preferences in the ordered set where ctCollectionId = ?.static CTPreferences[]findByCtCollectionId_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 = ?.static List<CTPreferences>findByPreviousCtCollectionId(long previousCtCollectionId) Returns all the ct preferenceses where previousCtCollectionId = ?.static List<CTPreferences>findByPreviousCtCollectionId(long previousCtCollectionId, int start, int end) Returns a range of all the ct preferenceses where previousCtCollectionId = ?.static List<CTPreferences>findByPreviousCtCollectionId(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 = ?.static List<CTPreferences>findByPreviousCtCollectionId(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 = ?.static CTPreferencesfindByPreviousCtCollectionId_First(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where previousCtCollectionId = ?.static CTPreferencesfindByPreviousCtCollectionId_Last(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the last ct preferences in the ordered set where previousCtCollectionId = ?.static CTPreferences[]findByPreviousCtCollectionId_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 = ?.static CTPreferencesfindByPrimaryKey(long ctPreferencesId) Returns the ct preferences with the primary key or throws aNoSuchPreferencesExceptionif it could not be found.static List<CTPreferences>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CTPreferences>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CTPreferences>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) static CTPreferencesPersistencestatic CTPreferencesremove(long ctPreferencesId) Removes the ct preferences with the primary key from the database.static voidRemoves all the ct preferenceses from the database.static CTPreferencesremoveByC_U(long companyId, long userId) Removes the ct preferences where companyId = ? and userId = ? from the database.static voidremoveByCtCollectionId(long ctCollectionId) Removes all the ct preferenceses where ctCollectionId = ? from the database.static voidremoveByPreviousCtCollectionId(long previousCtCollectionId) Removes all the ct preferenceses where previousCtCollectionId = ? from the database.static voidsetPersistence(CTPreferencesPersistence persistence) static CTPreferencesupdate(CTPreferences ctPreferences) static CTPreferencesupdate(CTPreferences ctPreferences, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CTPreferencesupdateImpl(CTPreferences ctPreferences)
-
Constructor Details
-
CTPreferencesUtil
public CTPreferencesUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CTPreferences> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CTPreferences> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CTPreferences> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CTPreferences update(CTPreferences ctPreferences, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCtCollectionId
Returns all the ct preferenceses where ctCollectionId = ?.- Parameters:
ctCollectionId- the ct collection ID- Returns:
- the matching ct preferenceses
-
findByCtCollectionId
Returns a range of all the ct preferenceses where ctCollectionId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTPreferencesModelImpl.- Parameters:
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)- Returns:
- the range of matching ct preferenceses
-
findByCtCollectionId
public static List<CTPreferences> findByCtCollectionId(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTPreferencesModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching ct preferenceses
-
findByCtCollectionId
public static List<CTPreferences> findByCtCollectionId(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTPreferencesModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching ct preferenceses
-
findByCtCollectionId_First
public static CTPreferences findByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException Returns the first ct preferences in the ordered set where ctCollectionId = ?.- Parameters:
ctCollectionId- the ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct preferences
- Throws:
NoSuchPreferencesException- if a matching ct preferences could not be foundNoSuchPreferencesException
-
fetchByCtCollectionId_First
public static CTPreferences fetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where ctCollectionId = ?.- Parameters:
ctCollectionId- the ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct preferences, or
nullif a matching ct preferences could not be found
-
findByCtCollectionId_Last
public static CTPreferences findByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException Returns the last ct preferences in the ordered set where ctCollectionId = ?.- Parameters:
ctCollectionId- the ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching ct preferences
- Throws:
NoSuchPreferencesException- if a matching ct preferences could not be foundNoSuchPreferencesException
-
fetchByCtCollectionId_Last
public static CTPreferences fetchByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the last ct preferences in the ordered set where ctCollectionId = ?.- Parameters:
ctCollectionId- the ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching ct preferences, or
nullif a matching ct preferences could not be found
-
findByCtCollectionId_PrevAndNext
public static CTPreferences[] findByCtCollectionId_PrevAndNext(long ctPreferencesId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException Returns the ct preferenceses before and after the current ct preferences in the ordered set where ctCollectionId = ?.- Parameters:
ctPreferencesId- the primary key of the current ct preferencesctCollectionId- the ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next ct preferences
- Throws:
NoSuchPreferencesException- if a ct preferences with the primary key could not be foundNoSuchPreferencesException
-
removeByCtCollectionId
public static void removeByCtCollectionId(long ctCollectionId) Removes all the ct preferenceses where ctCollectionId = ? from the database.- Parameters:
ctCollectionId- the ct collection ID
-
countByCtCollectionId
public static int countByCtCollectionId(long ctCollectionId) Returns the number of ct preferenceses where ctCollectionId = ?.- Parameters:
ctCollectionId- the ct collection ID- Returns:
- the number of matching ct preferenceses
-
findByPreviousCtCollectionId
Returns all the ct preferenceses where previousCtCollectionId = ?.- Parameters:
previousCtCollectionId- the previous ct collection ID- Returns:
- the matching ct preferenceses
-
findByPreviousCtCollectionId
public static List<CTPreferences> findByPreviousCtCollectionId(long previousCtCollectionId, int start, int end) Returns a range of all the ct preferenceses where previousCtCollectionId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTPreferencesModelImpl.- Parameters:
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)- Returns:
- the range of matching ct preferenceses
-
findByPreviousCtCollectionId
public static List<CTPreferences> findByPreviousCtCollectionId(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTPreferencesModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching ct preferenceses
-
findByPreviousCtCollectionId
public static List<CTPreferences> findByPreviousCtCollectionId(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTPreferencesModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching ct preferenceses
-
findByPreviousCtCollectionId_First
public static CTPreferences findByPreviousCtCollectionId_First(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException Returns the first ct preferences in the ordered set where previousCtCollectionId = ?.- Parameters:
previousCtCollectionId- the previous ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct preferences
- Throws:
NoSuchPreferencesException- if a matching ct preferences could not be foundNoSuchPreferencesException
-
fetchByPreviousCtCollectionId_First
public static CTPreferences fetchByPreviousCtCollectionId_First(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where previousCtCollectionId = ?.- Parameters:
previousCtCollectionId- the previous ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct preferences, or
nullif a matching ct preferences could not be found
-
findByPreviousCtCollectionId_Last
public static CTPreferences findByPreviousCtCollectionId_Last(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException Returns the last ct preferences in the ordered set where previousCtCollectionId = ?.- Parameters:
previousCtCollectionId- the previous ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching ct preferences
- Throws:
NoSuchPreferencesException- if a matching ct preferences could not be foundNoSuchPreferencesException
-
fetchByPreviousCtCollectionId_Last
public static CTPreferences fetchByPreviousCtCollectionId_Last(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the last ct preferences in the ordered set where previousCtCollectionId = ?.- Parameters:
previousCtCollectionId- the previous ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching ct preferences, or
nullif a matching ct preferences could not be found
-
findByPreviousCtCollectionId_PrevAndNext
public static CTPreferences[] findByPreviousCtCollectionId_PrevAndNext(long ctPreferencesId, long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) throws NoSuchPreferencesException Returns the ct preferenceses before and after the current ct preferences in the ordered set where previousCtCollectionId = ?.- Parameters:
ctPreferencesId- the primary key of the current ct preferencespreviousCtCollectionId- the previous ct collection IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next ct preferences
- Throws:
NoSuchPreferencesException- if a ct preferences with the primary key could not be foundNoSuchPreferencesException
-
removeByPreviousCtCollectionId
public static void removeByPreviousCtCollectionId(long previousCtCollectionId) Removes all the ct preferenceses where previousCtCollectionId = ? from the database.- Parameters:
previousCtCollectionId- the previous ct collection ID
-
countByPreviousCtCollectionId
public static int countByPreviousCtCollectionId(long previousCtCollectionId) Returns the number of ct preferenceses where previousCtCollectionId = ?.- Parameters:
previousCtCollectionId- the previous ct collection ID- Returns:
- the number of matching ct preferenceses
-
findByC_U
public static CTPreferences findByC_U(long companyId, long userId) throws NoSuchPreferencesException Returns the ct preferences where companyId = ? and userId = ? or throws aNoSuchPreferencesExceptionif it could not be found.- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the matching ct preferences
- Throws:
NoSuchPreferencesException- if a matching ct preferences could not be foundNoSuchPreferencesException
-
fetchByC_U
Returns the ct preferences where companyId = ? and userId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the matching ct preferences, or
nullif a matching ct preferences could not be found
-
fetchByC_U
Returns the ct preferences where companyId = ? and userId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDuserId- the user IDuseFinderCache- whether to use the finder cache- Returns:
- the matching ct preferences, or
nullif a matching ct preferences could not be found
-
removeByC_U
public static CTPreferences removeByC_U(long companyId, long userId) throws NoSuchPreferencesException Removes the ct preferences where companyId = ? and userId = ? from the database.- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the ct preferences that was removed
- Throws:
NoSuchPreferencesException
-
countByC_U
public static int countByC_U(long companyId, long userId) Returns the number of ct preferenceses where companyId = ? and userId = ?.- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the number of matching ct preferenceses
-
cacheResult
Caches the ct preferences in the entity cache if it is enabled.- Parameters:
ctPreferences- the ct preferences
-
cacheResult
Caches the ct preferenceses in the entity cache if it is enabled.- Parameters:
ctPreferenceses- the ct preferenceses
-
create
Creates a new ct preferences with the primary key. Does not add the ct preferences to the database.- Parameters:
ctPreferencesId- the primary key for the new ct preferences- Returns:
- the new ct preferences
-
remove
Removes the ct preferences with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
ctPreferencesId- the primary key of the ct preferences- Returns:
- the ct preferences that was removed
- Throws:
NoSuchPreferencesException- if a ct preferences with the primary key could not be foundNoSuchPreferencesException
-
updateImpl
-
findByPrimaryKey
public static CTPreferences findByPrimaryKey(long ctPreferencesId) throws NoSuchPreferencesException Returns the ct preferences with the primary key or throws aNoSuchPreferencesExceptionif it could not be found.- Parameters:
ctPreferencesId- the primary key of the ct preferences- Returns:
- the ct preferences
- Throws:
NoSuchPreferencesException- if a ct preferences with the primary key could not be foundNoSuchPreferencesException
-
fetchByPrimaryKey
Returns the ct preferences with the primary key or returnsnullif it could not be found.- Parameters:
ctPreferencesId- the primary key of the ct preferences- Returns:
- the ct preferences, or
nullif a ct preferences with the primary key could not be found
-
findAll
Returns all the ct preferenceses.- Returns:
- the ct preferenceses
-
findAll
Returns a range of all the ct preferenceses.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTPreferencesModelImpl.- Parameters:
start- the lower bound of the range of ct preferencesesend- the upper bound of the range of ct preferenceses (not inclusive)- Returns:
- the range of ct preferenceses
-
findAll
public static List<CTPreferences> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns an ordered range of all the ct preferenceses.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTPreferencesModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of ct preferenceses
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTPreferencesModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of ct preferenceses
-
removeAll
public static void removeAll()Removes all the ct preferenceses from the database. -
countAll
public static int countAll()Returns the number of ct preferenceses.- Returns:
- the number of ct preferenceses
-
getPersistence
-
setPersistence
-