Class DLStorageQuotaUtil
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) Caches the dl storage quota in the entity cache if it is enabled.static voidcacheResult(List<DLStorageQuota> dlStorageQuotas) Caches the dl storage quotas in the entity cache if it is enabled.static voidstatic voidclearCache(DLStorageQuota dlStorageQuota) static intcountAll()Returns the number of dl storage quotas.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 List<DLStorageQuota>findAll()Returns all the dl storage quotas.static List<DLStorageQuota>findAll(int start, int end) Returns a range of all the dl storage quotas.static 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.static 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.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 voidRemoves all the dl storage quotas 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
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DLStorageQuota> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DLStorageQuota> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
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:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DLStorageQuota update(DLStorageQuota dlStorageQuota, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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 foundNoSuchStorageQuotaException
-
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
-
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
-
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 foundNoSuchStorageQuotaException
-
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
- Throws:
NoSuchStorageQuotaException- if a dl storage quota with the primary key could not be foundNoSuchStorageQuotaException
-
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
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static void removeAll()Removes all the dl storage quotas from the database. -
countAll
public static int countAll()Returns the number of dl storage quotas.- Returns:
- the number of dl storage quotas
-
getPersistence
-
setPersistence
-