Class DLStorageQuotaUtil
java.lang.Object
com.liferay.document.library.service.persistence.DLStorageQuotaUtil
The persistence utility for the dl storage quota service. This utility wraps
com.liferay.document.library.service.persistence.impl.DLStorageQuotaPersistenceImpl 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 voidcacheResult(DLStorageQuota dlStorageQuota) static voidcacheResult(List<DLStorageQuota> dlStorageQuotas) static voidstatic voidclearCache(DLStorageQuota dlStorageQuota) static intcountByCompanyId(long companyId) Returns the number of dl storage quotas where companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DLStorageQuotacreate(long dlStorageQuotaId) Creates a new dl storage quota with the primary key.static DLStorageQuotafetchByCompanyId(long companyId) Returns the dl storage quota where companyId = ? or returnsnullif it could not be found.static DLStorageQuotafetchByCompanyId(long companyId, boolean useFinderCache) Returns the dl storage quota where companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static DLStorageQuotafetchByPrimaryKey(long dlStorageQuotaId) Returns the dl storage quota with the primary key or returnsnullif it could not be found.static Map<Serializable, DLStorageQuota> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static DLStorageQuotafindByCompanyId(long companyId) Returns the dl storage quota where companyId = ? or throws aNoSuchStorageQuotaExceptionif it could not be found.static DLStorageQuotafindByPrimaryKey(long dlStorageQuotaId) Returns the dl storage quota with the primary key or throws aNoSuchStorageQuotaExceptionif it could not be found.static List<DLStorageQuota> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DLStorageQuota> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DLStorageQuota> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLStorageQuota> orderByComparator) static DLStorageQuotaPersistencestatic DLStorageQuotaremove(long dlStorageQuotaId) Removes the dl storage quota with the primary key from the database.static DLStorageQuotaremoveByCompanyId(long companyId) Removes the dl storage quota where companyId = ? from the database.static voidsetPersistence(DLStorageQuotaPersistence persistence) static DLStorageQuotaupdate(DLStorageQuota dlStorageQuota) static DLStorageQuotaupdate(DLStorageQuota dlStorageQuota, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DLStorageQuotaupdateImpl(DLStorageQuota dlStorageQuota)
-
Constructor Details
-
DLStorageQuotaUtil
public DLStorageQuotaUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<DLStorageQuota> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<DLStorageQuota> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<DLStorageQuota> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLStorageQuota> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static DLStorageQuota update(DLStorageQuota dlStorageQuota, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
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
-
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
public static 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
-
updateImpl
-
findByPrimaryKey
public static DLStorageQuota findByPrimaryKey(long dlStorageQuotaId) throws NoSuchStorageQuotaException 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
-
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
-
getPersistence
-
setPersistence
-