public class CTRemoteUtil
extends java.lang.Object
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
CTRemotePersistence
Constructor and Description |
---|
CTRemoteUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CTRemote ctRemote)
Caches the ct remote in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CTRemote> ctRemotes)
Caches the ct remotes in the entity cache if it is enabled.
|
static void |
clearCache() |
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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CTRemote> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByCompanyId(long companyId)
Returns the number of ct remotes that the user has permission 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 = ?.
|
static java.util.List<CTRemote> |
filterFindByCompanyId(long companyId)
Returns all the ct remotes that the user has permission to view where companyId = ?.
|
static java.util.List<CTRemote> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct remotes that the user has permission to view where companyId = ?.
|
static java.util.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 = ?.
|
static java.util.List<CTRemote> |
findAll()
Returns all the ct remotes.
|
static java.util.List<CTRemote> |
findAll(int start,
int end)
Returns a range of all the ct remotes.
|
static java.util.List<CTRemote> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
Returns an ordered range of all the ct remotes.
|
static java.util.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.
|
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 java.util.List<CTRemote> |
findByCompanyId(long companyId)
Returns all the ct remotes where companyId = ?.
|
static java.util.List<CTRemote> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct remotes where companyId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CTRemote |
findByPrimaryKey(long ctRemoteId)
Returns the ct remote with the primary key or throws a
NoSuchRemoteException if it could not be found. |
static java.util.List<CTRemote> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CTRemote> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CTRemote> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) |
static CTRemotePersistence |
getPersistence() |
static CTRemote |
remove(long ctRemoteId)
Removes the ct remote with the primary key from the database.
|
static void |
removeAll()
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 |
update(CTRemote ctRemote) |
static CTRemote |
update(CTRemote ctRemote,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CTRemote |
updateImpl(CTRemote ctRemote) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CTRemote ctRemote)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CTRemote> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CTRemote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CTRemote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CTRemote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CTRemote update(CTRemote ctRemote)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CTRemote update(CTRemote ctRemote, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CTRemote> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CTRemote> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTRemoteModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct remotesend
- the upper bound of the range of ct remotes (not inclusive)public static java.util.List<CTRemote> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTRemoteModelImpl
.
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 (optionally null
)public static java.util.List<CTRemote> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTRemoteModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTRemote findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) throws NoSuchRemoteException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRemoteException
- if a matching ct remote could not be foundpublic static CTRemote fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct remote could not be foundpublic static CTRemote findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) throws NoSuchRemoteException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRemoteException
- if a matching ct remote could not be foundpublic static CTRemote fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct remote could not be foundpublic static CTRemote[] findByCompanyId_PrevAndNext(long ctRemoteId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) throws NoSuchRemoteException
ctRemoteId
- the primary key of the current ct remotecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRemoteException
- if a ct remote with the primary key could not be foundpublic static java.util.List<CTRemote> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CTRemote> filterFindByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTRemoteModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct remotesend
- the upper bound of the range of ct remotes (not inclusive)public static java.util.List<CTRemote> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTRemoteModelImpl
.
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 (optionally null
)public static CTRemote[] filterFindByCompanyId_PrevAndNext(long ctRemoteId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator) throws NoSuchRemoteException
ctRemoteId
- the primary key of the current ct remotecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRemoteException
- if a ct remote with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static void cacheResult(CTRemote ctRemote)
ctRemote
- the ct remotepublic static void cacheResult(java.util.List<CTRemote> ctRemotes)
ctRemotes
- the ct remotespublic static CTRemote create(long ctRemoteId)
ctRemoteId
- the primary key for the new ct remotepublic static CTRemote remove(long ctRemoteId) throws NoSuchRemoteException
ctRemoteId
- the primary key of the ct remoteNoSuchRemoteException
- if a ct remote with the primary key could not be foundpublic static CTRemote findByPrimaryKey(long ctRemoteId) throws NoSuchRemoteException
NoSuchRemoteException
if it could not be found.ctRemoteId
- the primary key of the ct remoteNoSuchRemoteException
- if a ct remote with the primary key could not be foundpublic static CTRemote fetchByPrimaryKey(long ctRemoteId)
null
if it could not be found.ctRemoteId
- the primary key of the ct remotenull
if a ct remote with the primary key could not be foundpublic static java.util.List<CTRemote> findAll()
public static java.util.List<CTRemote> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTRemoteModelImpl
.
start
- the lower bound of the range of ct remotesend
- the upper bound of the range of ct remotes (not inclusive)public static java.util.List<CTRemote> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTRemoteModelImpl
.
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 (optionally null
)public static java.util.List<CTRemote> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTRemoteModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CTRemotePersistence getPersistence()
public static void setPersistence(CTRemotePersistence persistence)