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 void
cacheResult
(CTPreferences ctPreferences) Caches the ct preferences in the entity cache if it is enabled.static void
cacheResult
(List<CTPreferences> ctPreferenceses) Caches the ct preferenceses in the entity cache if it is enabled.static void
static void
clearCache
(CTPreferences ctPreferences) static int
countAll()
Returns the number of ct preferenceses.static int
countByC_U
(long companyId, long userId) Returns the number of ct preferenceses where companyId = ? and userId = ?.static int
countByCtCollectionId
(long ctCollectionId) Returns the number of ct preferenceses where ctCollectionId = ?.static int
countByPreviousCtCollectionId
(long previousCtCollectionId) Returns the number of ct preferenceses where previousCtCollectionId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTPreferences
create
(long ctPreferencesId) Creates a new ct preferences with the primary key.static CTPreferences
fetchByC_U
(long companyId, long userId) Returns the ct preferences where companyId = ? and userId = ? or returnsnull
if it could not be found.static CTPreferences
fetchByC_U
(long companyId, long userId, boolean useFinderCache) Returns the ct preferences where companyId = ? and userId = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.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 = ?.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 = ?.static CTPreferences
fetchByPrimaryKey
(long ctPreferencesId) Returns the ct preferences with the primary key or returnsnull
if 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 CTPreferences
findByC_U
(long companyId, long userId) Returns the ct preferences where companyId = ? and userId = ? or throws aNoSuchPreferencesException
if 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 CTPreferences
findByCtCollectionId_First
(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where ctCollectionId = ?.static CTPreferences
findByCtCollectionId_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 CTPreferences
findByPreviousCtCollectionId_First
(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where previousCtCollectionId = ?.static CTPreferences
findByPreviousCtCollectionId_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 CTPreferences
findByPrimaryKey
(long ctPreferencesId) Returns the ct preferences with the primary key or throws aNoSuchPreferencesException
if 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 CTPreferencesPersistence
static CTPreferences
remove
(long ctPreferencesId) Removes the ct preferences with the primary key from the database.static void
Removes all the ct preferenceses from the database.static CTPreferences
removeByC_U
(long companyId, long userId) Removes the ct preferences where companyId = ? and userId = ? from the database.static void
removeByCtCollectionId
(long ctCollectionId) Removes all the ct preferenceses where ctCollectionId = ? from the database.static void
removeByPreviousCtCollectionId
(long previousCtCollectionId) Removes all the ct preferenceses where previousCtCollectionId = ? from the database.static void
setPersistence
(CTPreferencesPersistence persistence) static CTPreferences
update
(CTPreferences ctPreferences) static CTPreferences
update
(CTPreferences ctPreferences, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CTPreferences
updateImpl
(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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
null
if 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
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
null
if 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
null
if 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 aNoSuchPreferencesException
if 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 returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDuserId
- the user ID- Returns:
- the matching ct preferences, or
null
if a matching ct preferences could not be found
-
fetchByC_U
Returns the ct preferences where companyId = ? and userId = ? or returnsnull
if 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
null
if 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 aNoSuchPreferencesException
if 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 returnsnull
if it could not be found.- Parameters:
ctPreferencesId
- the primary key of the ct preferences- Returns:
- the ct preferences, or
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
-