Interface DLStorageQuotaPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DLStorageQuota>
@ProviderType
public interface DLStorageQuotaPersistence
extends com.liferay.portal.kernel.service.persistence.BasePersistence<DLStorageQuota>
The persistence interface for the dl storage quota service.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCompanyId(long companyId) Returns the number of dl storage quotas where companyId = ?.create(long dlStorageQuotaId) Creates a new dl storage quota with the primary key.default DLStorageQuotafetchByCompanyId(long companyId) Returns the dl storage quota where companyId = ? or returnsnullif it could not be found.fetchByCompanyId(long companyId, boolean useFinderCache) Returns the dl storage quota where companyId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByPrimaryKey(long dlStorageQuotaId) Returns the dl storage quota with the primary key or returnsnullif it could not be found.findByCompanyId(long companyId) Returns the dl storage quota where companyId = ? or throws aNoSuchStorageQuotaExceptionif it could not be found.findByPrimaryKey(long dlStorageQuotaId) Returns the dl storage quota with the primary key or throws aNoSuchStorageQuotaExceptionif it could not be found.remove(long dlStorageQuotaId) Removes the dl storage quota with the primary key 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
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByCompanyId
Returns the dl storage quota where companyId = ? or throws aNoSuchStorageQuotaExceptionif 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 returnsnullif 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
nullif 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
-
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 aNoSuchStorageQuotaExceptionif 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 returnsnullif it could not be found.- Parameters:
dlStorageQuotaId- the primary key of the dl storage quota- Returns:
- the dl storage quota, or
nullif a dl storage quota with the primary key could not be found
-
fetchByCompanyId
Returns the dl storage quota where companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company ID- Returns:
- the matching dl storage quota, or
nullif a matching dl storage quota could not be found
-