Interface DLStorageQuotaPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DLStorageQuota>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(DLStorageQuota dlStorageQuota) Caches the dl storage quota in the entity cache if it is enabled.void
cacheResult
(List<DLStorageQuota> dlStorageQuotas) Caches the dl storage quotas in the entity cache if it is enabled.int
countAll()
Returns the number of dl storage quotas.int
countByCompanyId
(long companyId) Returns the number of dl storage quotas where companyId = ?.create
(long dlStorageQuotaId) Creates a new dl storage quota with the primary key.fetchByCompanyId
(long companyId) Returns the dl storage quota where companyId = ? or returnsnull
if it could not be found.fetchByCompanyId
(long companyId, boolean useFinderCache) Returns the dl storage quota where companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long dlStorageQuotaId) Returns the dl storage quota with the primary key or returnsnull
if it could not be found.findAll()
Returns all the dl storage quotas.findAll
(int start, int end) Returns a range of all the dl storage quotas.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLStorageQuota> orderByComparator) Returns an ordered range of all the dl storage quotas.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLStorageQuota> orderByComparator, boolean useFinderCache) Returns an ordered range of all the dl storage quotas.findByCompanyId
(long companyId) Returns the dl storage quota where companyId = ? or throws aNoSuchStorageQuotaException
if it could not be found.findByPrimaryKey
(long dlStorageQuotaId) Returns the dl storage quota with the primary key or throws aNoSuchStorageQuotaException
if it could not be found.remove
(long dlStorageQuotaId) Removes the dl storage quota with the primary key from the database.void
Removes all the dl storage quotas from the database.removeByCompanyId
(long companyId) Removes the dl storage quota where companyId = ? from the database.updateImpl
(DLStorageQuota dlStorageQuota) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByCompanyId
Returns the dl storage quota where companyId = ? or throws aNoSuchStorageQuotaException
if it could not be found.- Parameters:
companyId
- the company ID- Returns:
- the matching dl storage quota
- Throws:
NoSuchStorageQuotaException
- if a matching dl storage quota could not be found
-
fetchByCompanyId
Returns the dl storage quota where companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company ID- Returns:
- the matching dl storage quota, or
null
if a matching dl storage quota could not be found
-
fetchByCompanyId
Returns the dl storage quota where companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching dl storage quota, or
null
if a matching dl storage quota could not be found
-
removeByCompanyId
Removes the dl storage quota where companyId = ? from the database.- Parameters:
companyId
- the company ID- Returns:
- the dl storage quota that was removed
- Throws:
NoSuchStorageQuotaException
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of dl storage quotas where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching dl storage quotas
-
cacheResult
Caches the dl storage quota in the entity cache if it is enabled.- Parameters:
dlStorageQuota
- the dl storage quota
-
cacheResult
Caches the dl storage quotas in the entity cache if it is enabled.- Parameters:
dlStorageQuotas
- the dl storage quotas
-
create
Creates a new dl storage quota with the primary key. Does not add the dl storage quota to the database.- Parameters:
dlStorageQuotaId
- the primary key for the new dl storage quota- Returns:
- the new dl storage quota
-
remove
Removes the dl storage quota with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
dlStorageQuotaId
- the primary key of the dl storage quota- Returns:
- the dl storage quota that was removed
- Throws:
NoSuchStorageQuotaException
- if a dl storage quota with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the dl storage quota with the primary key or throws aNoSuchStorageQuotaException
if it could not be found.- Parameters:
dlStorageQuotaId
- the primary key of the dl storage quota- Returns:
- the dl storage quota
- Throws:
NoSuchStorageQuotaException
- if a dl storage quota with the primary key could not be found
-
fetchByPrimaryKey
Returns the dl storage quota with the primary key or returnsnull
if it could not be found.- Parameters:
dlStorageQuotaId
- the primary key of the dl storage quota- Returns:
- the dl storage quota, or
null
if a dl storage quota with the primary key could not be found
-
findAll
List<DLStorageQuota> findAll()Returns all the dl storage quotas.- Returns:
- the dl storage quotas
-
findAll
Returns a range of all the dl storage quotas.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 fromDLStorageQuotaModelImpl
.- Parameters:
start
- the lower bound of the range of dl storage quotasend
- the upper bound of the range of dl storage quotas (not inclusive)- Returns:
- the range of dl storage quotas
-
findAll
List<DLStorageQuota> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLStorageQuota> orderByComparator) Returns an ordered range of all the dl storage quotas.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 fromDLStorageQuotaModelImpl
.- Parameters:
start
- the lower bound of the range of dl storage quotasend
- the upper bound of the range of dl storage quotas (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of dl storage quotas
-
findAll
List<DLStorageQuota> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLStorageQuota> orderByComparator, boolean useFinderCache) Returns an ordered range of all the dl storage quotas.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 fromDLStorageQuotaModelImpl
.- Parameters:
start
- the lower bound of the range of dl storage quotasend
- the upper bound of the range of dl storage quotas (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of dl storage quotas
-
removeAll
void removeAll()Removes all the dl storage quotas from the database. -
countAll
int countAll()Returns the number of dl storage quotas.- Returns:
- the number of dl storage quotas
-