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 void
cacheResult
(DLStorageQuota dlStorageQuota) Caches the dl storage quota in the entity cache if it is enabled.static void
cacheResult
(List<DLStorageQuota> dlStorageQuotas) Caches the dl storage quotas in the entity cache if it is enabled.static void
static void
clearCache
(DLStorageQuota dlStorageQuota) static int
countAll()
Returns the number of dl storage quotas.static int
countByCompanyId
(long companyId) Returns the number of dl storage quotas where companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DLStorageQuota
create
(long dlStorageQuotaId) Creates a new dl storage quota with the primary key.static DLStorageQuota
fetchByCompanyId
(long companyId) Returns the dl storage quota where companyId = ? or returnsnull
if it could not be found.static DLStorageQuota
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.static DLStorageQuota
fetchByPrimaryKey
(long dlStorageQuotaId) Returns the dl storage quota with the primary key or returnsnull
if 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 DLStorageQuota
findByCompanyId
(long companyId) Returns the dl storage quota where companyId = ? or throws aNoSuchStorageQuotaException
if it could not be found.static DLStorageQuota
findByPrimaryKey
(long dlStorageQuotaId) Returns the dl storage quota with the primary key or throws aNoSuchStorageQuotaException
if 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 DLStorageQuotaPersistence
static DLStorageQuota
remove
(long dlStorageQuotaId) Removes the dl storage quota with the primary key from the database.static void
Removes all the dl storage quotas from the database.static DLStorageQuota
removeByCompanyId
(long companyId) Removes the dl storage quota where companyId = ? from the database.static void
setPersistence
(DLStorageQuotaPersistence persistence) static DLStorageQuota
update
(DLStorageQuota dlStorageQuota) static DLStorageQuota
update
(DLStorageQuota dlStorageQuota, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DLStorageQuota
updateImpl
(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 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 foundNoSuchStorageQuotaException
-
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
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 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 foundNoSuchStorageQuotaException
-
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
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
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 - 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
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 - 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
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
-