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 void
cacheResult
(CTRemote ctRemote) Caches the ct remote in the entity cache if it is enabled.static void
cacheResult
(List<CTRemote> ctRemotes) Caches the ct remotes in the entity cache if it is enabled.static void
static void
clearCache
(CTRemote ctRemote) static int
countAll()
Returns the number of ct remotes.static int
countByCompanyId
(long companyId) Returns the number of ct remotes where companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTRemote
create
(long ctRemoteId) Creates a new ct remote with the primary key.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 = ?.static CTRemote
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns the last ct remote in the ordered set where companyId = ?.static CTRemote
fetchByPrimaryKey
(long ctRemoteId) Returns the ct remote with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CTRemote> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static int
filterCountByCompanyId
(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 = ?.static CTRemote[]
filterFindByCompanyId_PrevAndNext
(long ctRemoteId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns the ct remotes before and after the current ct remote in the ordered set of ct remotes that the user has permission to view where companyId = ?.findAll()
Returns all the ct remotes.findAll
(int start, int end) Returns a range of all the ct remotes.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns an ordered range of all the ct remotes.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct remotes.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 CTRemote
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns the first ct remote in the ordered set where companyId = ?.static CTRemote
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns the last ct remote in the ordered set where companyId = ?.static CTRemote[]
findByCompanyId_PrevAndNext
(long ctRemoteId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns the ct remotes before and after the current ct remote in the ordered set where companyId = ?.static CTRemote
findByPrimaryKey
(long ctRemoteId) Returns the ct remote with the primary key or throws aNoSuchRemoteException
if 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 CTRemotePersistence
static CTRemote
remove
(long ctRemoteId) Removes the ct remote with the primary key from the database.static void
Removes all the ct remotes from the database.static void
removeByCompanyId
(long companyId) Removes all the ct remotes where companyId = ? from the database.static void
setPersistence
(CTRemotePersistence persistence) static CTRemote
static CTRemote
static CTRemote
updateImpl
(CTRemote ctRemote)
-
Constructor Details
-
CTRemoteUtil
public CTRemoteUtil()
-
-
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<CTRemote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CTRemote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
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:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CTRemote update(CTRemote ctRemote, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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 - 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 fromCTRemoteModelImpl
.- 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 - 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 fromCTRemoteModelImpl
.- 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
-
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 - 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 fromCTRemoteModelImpl
.- 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
- Throws:
NoSuchRemoteException
- if a matching ct remote could not be foundNoSuchRemoteException
-
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
null
if a matching ct remote could not be found
-
findByCompanyId_Last
public static CTRemote findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) throws NoSuchRemoteException Returns the last ct remote in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ct remote
- Throws:
NoSuchRemoteException
- if a matching ct remote could not be foundNoSuchRemoteException
-
fetchByCompanyId_Last
public static CTRemote fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns the last ct remote in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ct remote, or
null
if a matching ct remote could not be found
-
findByCompanyId_PrevAndNext
public static CTRemote[] findByCompanyId_PrevAndNext(long ctRemoteId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) throws NoSuchRemoteException Returns the ct remotes before and after the current ct remote in the ordered set where companyId = ?.- Parameters:
ctRemoteId
- the primary key of the current ct remotecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ct remote
- Throws:
NoSuchRemoteException
- if a ct remote with the primary key could not be foundNoSuchRemoteException
-
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 - 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 fromCTRemoteModelImpl
.- 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
-
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 - 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 fromCTRemoteModelImpl
.- 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
-
filterFindByCompanyId_PrevAndNext
public static CTRemote[] filterFindByCompanyId_PrevAndNext(long ctRemoteId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) throws NoSuchRemoteException Returns the ct remotes before and after the current ct remote in the ordered set of ct remotes that the user has permission to view where companyId = ?.- Parameters:
ctRemoteId
- the primary key of the current ct remotecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ct remote
- Throws:
NoSuchRemoteException
- if a ct remote with the primary key could not be foundNoSuchRemoteException
-
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
-
cacheResult
Caches the ct remote in the entity cache if it is enabled.- Parameters:
ctRemote
- the ct remote
-
cacheResult
Caches the ct remotes in the entity cache if it is enabled.- Parameters:
ctRemotes
- the ct remotes
-
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
- Throws:
NoSuchRemoteException
- if a ct remote with the primary key could not be foundNoSuchRemoteException
-
updateImpl
-
findByPrimaryKey
Returns the ct remote with the primary key or throws aNoSuchRemoteException
if it could not be found.- Parameters:
ctRemoteId
- the primary key of the ct remote- Returns:
- the ct remote
- Throws:
NoSuchRemoteException
- if a ct remote with the primary key could not be foundNoSuchRemoteException
-
fetchByPrimaryKey
Returns the ct remote with the primary key or returnsnull
if it could not be found.- Parameters:
ctRemoteId
- the primary key of the ct remote- Returns:
- the ct remote, or
null
if a ct remote with the primary key could not be found
-
findAll
Returns all the ct remotes.- Returns:
- the ct remotes
-
findAll
Returns a range of all the ct remotes.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 fromCTRemoteModelImpl
.- Parameters:
start
- the lower bound of the range of ct remotesend
- the upper bound of the range of ct remotes (not inclusive)- Returns:
- the range of ct remotes
-
findAll
public static List<CTRemote> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) Returns an ordered range of all the ct remotes.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 fromCTRemoteModelImpl
.- Parameters:
start
- 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 ct remotes
-
findAll
public static List<CTRemote> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct remotes.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 fromCTRemoteModelImpl
.- Parameters:
start
- 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 ct remotes
-
removeAll
public static void removeAll()Removes all the ct remotes from the database. -
countAll
public static int countAll()Returns the number of ct remotes.- Returns:
- the number of ct remotes
-
getPersistence
-
setPersistence
-