@ProviderType public interface CTRemotePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTRemote>
Caching information and settings can be found in portal.properties
CTRemoteUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CTRemote ctRemote)
Caches the ct remote in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CTRemote> ctRemotes)
Caches the ct remotes in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of ct remotes.
|
int |
countByCompanyId(long companyId)
Returns the number of ct remotes where companyId = ?.
|
CTRemote |
create(long ctRemoteId)
Creates a new ct remote with the primary key.
|
CTRemote |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
Returns the first ct remote in the ordered set where companyId = ?.
|
CTRemote |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
Returns the last ct remote in the ordered set where companyId = ?.
|
CTRemote |
fetchByPrimaryKey(long ctRemoteId)
Returns the ct remote with the primary key or returns
null if it could not be found. |
int |
filterCountByCompanyId(long companyId)
Returns the number of ct remotes that the user has permission to view where companyId = ?.
|
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 = ?.
|
java.util.List<CTRemote> |
filterFindByCompanyId(long companyId)
Returns all the ct remotes that the user has permission to view where companyId = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CTRemote> |
findAll()
Returns all the ct remotes.
|
java.util.List<CTRemote> |
findAll(int start,
int end)
Returns a range of all the ct remotes.
|
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.
|
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.
|
CTRemote |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
Returns the first ct remote in the ordered set where companyId = ?.
|
CTRemote |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTRemote> orderByComparator)
Returns the last ct remote in the ordered set where companyId = ?.
|
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 = ?.
|
java.util.List<CTRemote> |
findByCompanyId(long companyId)
Returns all the ct remotes where companyId = ?.
|
java.util.List<CTRemote> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct remotes where companyId = ?.
|
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 = ?.
|
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 = ?.
|
CTRemote |
findByPrimaryKey(long ctRemoteId)
Returns the ct remote with the primary key or throws a
NoSuchRemoteException if it could not be found. |
CTRemote |
remove(long ctRemoteId)
Removes the ct remote with the primary key from the database.
|
void |
removeAll()
Removes all the ct remotes from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the ct remotes where companyId = ? from the database.
|
CTRemote |
updateImpl(CTRemote ctRemote) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CTRemote> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheCTRemote 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 foundCTRemote 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 foundCTRemote 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 foundCTRemote 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 foundCTRemote[] 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 foundjava.util.List<CTRemote> filterFindByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDint filterCountByCompanyId(long companyId)
companyId
- the company IDvoid cacheResult(CTRemote ctRemote)
ctRemote
- the ct remotevoid cacheResult(java.util.List<CTRemote> ctRemotes)
ctRemotes
- the ct remotesCTRemote create(long ctRemoteId)
ctRemoteId
- the primary key for the new ct remoteCTRemote remove(long ctRemoteId) throws NoSuchRemoteException
ctRemoteId
- the primary key of the ct remoteNoSuchRemoteException
- if a ct remote with the primary key could not be foundCTRemote 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 foundCTRemote 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 foundjava.util.List<CTRemote> findAll()
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)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
)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 cachevoid removeAll()
int countAll()