Interface CTPreferencesPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CTPreferences>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByC_U(long companyId, long userId) Returns the number of ct preferenceses where companyId = ? and userId = ?.intcountByCtCollectionId(long ctCollectionId) Returns the number of ct preferenceses where ctCollectionId = ?.intcountByPreviousCtCollectionId(long previousCtCollectionId) Returns the number of ct preferenceses where previousCtCollectionId = ?.create(long ctPreferencesId) Creates a new ct preferences with the primary key.default CTPreferencesfetchByC_U(long companyId, long userId) Returns the ct preferences where companyId = ? and userId = ? or returnsnullif it could not be found.fetchByC_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.fetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where ctCollectionId = ?.fetchByPreviousCtCollectionId_First(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where previousCtCollectionId = ?.fetchByPrimaryKey(long ctPreferencesId) Returns the ct preferences with the primary key or returnsnullif it could not be found.findByC_U(long companyId, long userId) Returns the ct preferences where companyId = ? and userId = ? or throws aNoSuchPreferencesExceptionif it could not be found.default List<CTPreferences> findByCtCollectionId(long ctCollectionId) Returns all the ct preferenceses where ctCollectionId = ?.default List<CTPreferences> findByCtCollectionId(long ctCollectionId, int start, int end) Returns a range of all the ct preferenceses where ctCollectionId = ?.default 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 = ?.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 = ?.findByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where ctCollectionId = ?.default List<CTPreferences> findByPreviousCtCollectionId(long previousCtCollectionId) Returns all the ct preferenceses where previousCtCollectionId = ?.default List<CTPreferences> findByPreviousCtCollectionId(long previousCtCollectionId, int start, int end) Returns a range of all the ct preferenceses where previousCtCollectionId = ?.default 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 = ?.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 = ?.findByPreviousCtCollectionId_First(long previousCtCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTPreferences> orderByComparator) Returns the first ct preferences in the ordered set where previousCtCollectionId = ?.findByPrimaryKey(long ctPreferencesId) Returns the ct preferences with the primary key or throws aNoSuchPreferencesExceptionif it could not be found.remove(long ctPreferencesId) Removes the ct preferences with the primary key from the database.removeByC_U(long companyId, long userId) Removes the ct preferences where companyId = ? and userId = ? from the database.voidremoveByCtCollectionId(long ctCollectionId) Removes all the ct preferenceses where ctCollectionId = ? from the database.voidremoveByPreviousCtCollectionId(long previousCtCollectionId) Removes all the ct preferenceses where previousCtCollectionId = ? from the database.updateImpl(CTPreferences ctPreferences) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByCtCollectionId
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.model.impl.CTPreferencesModelImpl.- 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
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 found
-
fetchByCtCollectionId_First
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
-
removeByCtCollectionId
void removeByCtCollectionId(long ctCollectionId) Removes all the ct preferenceses where ctCollectionId = ? from the database.- Parameters:
ctCollectionId- the ct collection ID
-
countByCtCollectionId
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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.model.impl.CTPreferencesModelImpl.- 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
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 found
-
fetchByPreviousCtCollectionId_First
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
-
removeByPreviousCtCollectionId
void removeByPreviousCtCollectionId(long previousCtCollectionId) Removes all the ct preferenceses where previousCtCollectionId = ? from the database.- Parameters:
previousCtCollectionId- the previous ct collection ID
-
countByPreviousCtCollectionId
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
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 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
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
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
-
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 found
-
updateImpl
-
findByPrimaryKey
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 found
-
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
-
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.model.impl.CTPreferencesModelImpl.- 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
default 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.model.impl.CTPreferencesModelImpl.- 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
-
findByPreviousCtCollectionId
Returns all the ct preferenceses where previousCtCollectionId = ?.- Parameters:
previousCtCollectionId- the previous ct collection ID- Returns:
- the matching ct preferenceses
-
findByPreviousCtCollectionId
default 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.model.impl.CTPreferencesModelImpl.- 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
default 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.change.tracking.model.impl.CTPreferencesModelImpl.- 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
-