Class CTRemoteUtil
com.liferay.change.tracking.service.persistence.impl.CTRemotePersistenceImpl 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(CTRemote ctRemote) static voidcacheResult(List<CTRemote> ctRemotes) static voidstatic voidclearCache(CTRemote ctRemote) static intcountByCompanyId(long companyId) Returns the number of ct remotes where companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTRemotecreate(long ctRemoteId) Creates a new ct remote with the primary key.static CTRemotefetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns the first ct remote in the ordered set where companyId = ?.static CTRemotefetchByPrimaryKey(long ctRemoteId) Returns the ct remote with the primary key or returnsnullif it could not be found.static Map<Serializable, CTRemote> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static intfilterCountByCompanyId(long companyId) Returns the number of ct remotes that the user has permission to view where companyId = ?.filterFindByCompanyId(long companyId) Returns all the ct remotes that the user has permission to view where companyId = ?.filterFindByCompanyId(long companyId, int start, int end) Returns a range of all the ct remotes that the user has permission to view where companyId = ?.filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns an ordered range of all the ct remotes that the user has permissions to view where companyId = ?.findByCompanyId(long companyId) Returns all the ct remotes where companyId = ?.findByCompanyId(long companyId, int start, int end) Returns a range of all the ct remotes where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns an ordered range of all the ct remotes where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct remotes where companyId = ?.static CTRemotefindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns the first ct remote in the ordered set where companyId = ?.static CTRemotefindByPrimaryKey(long ctRemoteId) Returns the ct remote with the primary key or throws aNoSuchRemoteExceptionif it could not be found.findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) static CTRemotePersistencestatic CTRemoteremove(long ctRemoteId) Removes the ct remote with the primary key from the database.static voidremoveByCompanyId(long companyId) Removes all the ct remotes where companyId = ? from the database.static voidsetPersistence(CTRemotePersistence persistence) static CTRemotestatic CTRemotestatic CTRemoteupdateImpl(CTRemote ctRemote)
-
Constructor Details
-
CTRemoteUtil
public CTRemoteUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<CTRemote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CTRemote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CTRemote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CTRemote update(CTRemote ctRemote, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByCompanyId
public static List<CTRemote> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct remotes where companyId = ?.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.CTRemoteModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct remotesend- the upper bound of the range of ct remotes (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 remotes
-
findByCompanyId_First
public static CTRemote findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) throws NoSuchRemoteException Returns the first ct remote in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct remote
-
fetchByCompanyId_First
public static CTRemote fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns the first ct remote in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct remote, or
nullif a matching ct remote could not be found
-
filterFindByCompanyId
public static List<CTRemote> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns an ordered range of all the ct remotes that the user has permissions to view where companyId = ?.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.CTRemoteModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct remotesend- the upper bound of the range of ct remotes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ct remotes that the user has permission to view
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the ct remotes where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of ct remotes where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching ct remotes
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) Returns the number of ct remotes that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching ct remotes that the user has permission to view
-
create
Creates a new ct remote with the primary key. Does not add the ct remote to the database.- Parameters:
ctRemoteId- the primary key for the new ct remote- Returns:
- the new ct remote
-
remove
Removes the ct remote with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
ctRemoteId- the primary key of the ct remote- Returns:
- the ct remote that was removed
-
updateImpl
-
findByPrimaryKey
Returns the ct remote with the primary key or throws aNoSuchRemoteExceptionif it could not be found.- Parameters:
ctRemoteId- the primary key of the ct remote- Returns:
- the ct remote
-
fetchByPrimaryKey
Returns the ct remote with the primary key or returnsnullif it could not be found.- Parameters:
ctRemoteId- the primary key of the ct remote- Returns:
- the ct remote, or
nullif a ct remote with the primary key could not be found
-
findByCompanyId
Returns all the ct remotes where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching ct remotes
-
findByCompanyId
Returns a range of all the ct remotes where companyId = ?.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.CTRemoteModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct remotesend- the upper bound of the range of ct remotes (not inclusive)- Returns:
- the range of matching ct remotes
-
findByCompanyId
public static List<CTRemote> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns an ordered range of all the ct remotes where companyId = ?.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.CTRemoteModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct remotesend- the upper bound of the range of ct remotes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ct remotes
-
filterFindByCompanyId
Returns all the ct remotes that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching ct remotes that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the ct remotes that the user has permission to view where companyId = ?.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.CTRemoteModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct remotesend- the upper bound of the range of ct remotes (not inclusive)- Returns:
- the range of matching ct remotes that the user has permission to view
-
getPersistence
-
setPersistence
-