Class DepotAppCustomizationUtil
com.liferay.depot.service.persistence.impl.DepotAppCustomizationPersistenceImpl
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
(DepotAppCustomization depotAppCustomization) Caches the depot app customization in the entity cache if it is enabled.static void
cacheResult
(List<DepotAppCustomization> depotAppCustomizations) Caches the depot app customizations in the entity cache if it is enabled.static void
static void
clearCache
(DepotAppCustomization depotAppCustomization) static int
countAll()
Returns the number of depot app customizations.static int
countByD_E
(long depotEntryId, boolean enabled) Returns the number of depot app customizations where depotEntryId = ? and enabled = ?.static int
countByD_P
(long depotEntryId, String portletId) Returns the number of depot app customizations where depotEntryId = ? and portletId = ?.static int
countByDepotEntryId
(long depotEntryId) Returns the number of depot app customizations where depotEntryId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DepotAppCustomization
create
(long depotAppCustomizationId) Creates a new depot app customization with the primary key.static DepotAppCustomization
fetchByD_E
(long depotEntryId, boolean enabled) Returns the depot app customization where depotEntryId = ? and enabled = ? or returnsnull
if it could not be found.static DepotAppCustomization
fetchByD_E
(long depotEntryId, boolean enabled, boolean useFinderCache) Returns the depot app customization where depotEntryId = ? and enabled = ? or returnsnull
if it could not be found, optionally using the finder cache.static DepotAppCustomization
fetchByD_P
(long depotEntryId, String portletId) Returns the depot app customization where depotEntryId = ? and portletId = ? or returnsnull
if it could not be found.static DepotAppCustomization
fetchByD_P
(long depotEntryId, String portletId, boolean useFinderCache) Returns the depot app customization where depotEntryId = ? and portletId = ? or returnsnull
if it could not be found, optionally using the finder cache.static DepotAppCustomization
fetchByDepotEntryId_First
(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns the first depot app customization in the ordered set where depotEntryId = ?.static DepotAppCustomization
fetchByDepotEntryId_Last
(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns the last depot app customization in the ordered set where depotEntryId = ?.static DepotAppCustomization
fetchByPrimaryKey
(long depotAppCustomizationId) Returns the depot app customization with the primary key or returnsnull
if it could not be found.static Map<Serializable,
DepotAppCustomization> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<DepotAppCustomization>
findAll()
Returns all the depot app customizations.static List<DepotAppCustomization>
findAll
(int start, int end) Returns a range of all the depot app customizations.static List<DepotAppCustomization>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns an ordered range of all the depot app customizations.static List<DepotAppCustomization>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the depot app customizations.static DepotAppCustomization
findByD_E
(long depotEntryId, boolean enabled) Returns the depot app customization where depotEntryId = ? and enabled = ? or throws aNoSuchAppCustomizationException
if it could not be found.static DepotAppCustomization
Returns the depot app customization where depotEntryId = ? and portletId = ? or throws aNoSuchAppCustomizationException
if it could not be found.static List<DepotAppCustomization>
findByDepotEntryId
(long depotEntryId) Returns all the depot app customizations where depotEntryId = ?.static List<DepotAppCustomization>
findByDepotEntryId
(long depotEntryId, int start, int end) Returns a range of all the depot app customizations where depotEntryId = ?.static List<DepotAppCustomization>
findByDepotEntryId
(long depotEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns an ordered range of all the depot app customizations where depotEntryId = ?.static List<DepotAppCustomization>
findByDepotEntryId
(long depotEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the depot app customizations where depotEntryId = ?.static DepotAppCustomization
findByDepotEntryId_First
(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns the first depot app customization in the ordered set where depotEntryId = ?.static DepotAppCustomization
findByDepotEntryId_Last
(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns the last depot app customization in the ordered set where depotEntryId = ?.static DepotAppCustomization[]
findByDepotEntryId_PrevAndNext
(long depotAppCustomizationId, long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns the depot app customizations before and after the current depot app customization in the ordered set where depotEntryId = ?.static DepotAppCustomization
findByPrimaryKey
(long depotAppCustomizationId) Returns the depot app customization with the primary key or throws aNoSuchAppCustomizationException
if it could not be found.static List<DepotAppCustomization>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DepotAppCustomization>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DepotAppCustomization>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) static DepotAppCustomization
remove
(long depotAppCustomizationId) Removes the depot app customization with the primary key from the database.static void
Removes all the depot app customizations from the database.static DepotAppCustomization
removeByD_E
(long depotEntryId, boolean enabled) Removes the depot app customization where depotEntryId = ? and enabled = ? from the database.static DepotAppCustomization
removeByD_P
(long depotEntryId, String portletId) Removes the depot app customization where depotEntryId = ? and portletId = ? from the database.static void
removeByDepotEntryId
(long depotEntryId) Removes all the depot app customizations where depotEntryId = ? from the database.static void
setPersistence
(DepotAppCustomizationPersistence persistence) static DepotAppCustomization
update
(DepotAppCustomization depotAppCustomization) static DepotAppCustomization
update
(DepotAppCustomization depotAppCustomization, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DepotAppCustomization
updateImpl
(DepotAppCustomization depotAppCustomization)
-
Constructor Details
-
DepotAppCustomizationUtil
public DepotAppCustomizationUtil()
-
-
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
public static Map<Serializable,DepotAppCustomization> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DepotAppCustomization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DepotAppCustomization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DepotAppCustomization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DepotAppCustomization update(DepotAppCustomization depotAppCustomization, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByDepotEntryId
Returns all the depot app customizations where depotEntryId = ?.- Parameters:
depotEntryId
- the depot entry ID- Returns:
- the matching depot app customizations
-
findByDepotEntryId
Returns a range of all the depot app customizations where depotEntryId = ?.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 fromDepotAppCustomizationModelImpl
.- Parameters:
depotEntryId
- the depot entry IDstart
- the lower bound of the range of depot app customizationsend
- the upper bound of the range of depot app customizations (not inclusive)- Returns:
- the range of matching depot app customizations
-
findByDepotEntryId
public static List<DepotAppCustomization> findByDepotEntryId(long depotEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns an ordered range of all the depot app customizations where depotEntryId = ?.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 fromDepotAppCustomizationModelImpl
.- Parameters:
depotEntryId
- the depot entry IDstart
- the lower bound of the range of depot app customizationsend
- the upper bound of the range of depot app customizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching depot app customizations
-
findByDepotEntryId
public static List<DepotAppCustomization> findByDepotEntryId(long depotEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the depot app customizations where depotEntryId = ?.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 fromDepotAppCustomizationModelImpl
.- Parameters:
depotEntryId
- the depot entry IDstart
- the lower bound of the range of depot app customizationsend
- the upper bound of the range of depot app customizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching depot app customizations
-
findByDepotEntryId_First
public static DepotAppCustomization findByDepotEntryId_First(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) throws NoSuchAppCustomizationException Returns the first depot app customization in the ordered set where depotEntryId = ?.- Parameters:
depotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching depot app customization
- Throws:
NoSuchAppCustomizationException
- if a matching depot app customization could not be foundNoSuchAppCustomizationException
-
fetchByDepotEntryId_First
public static DepotAppCustomization fetchByDepotEntryId_First(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns the first depot app customization in the ordered set where depotEntryId = ?.- Parameters:
depotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching depot app customization, or
null
if a matching depot app customization could not be found
-
findByDepotEntryId_Last
public static DepotAppCustomization findByDepotEntryId_Last(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) throws NoSuchAppCustomizationException Returns the last depot app customization in the ordered set where depotEntryId = ?.- Parameters:
depotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching depot app customization
- Throws:
NoSuchAppCustomizationException
- if a matching depot app customization could not be foundNoSuchAppCustomizationException
-
fetchByDepotEntryId_Last
public static DepotAppCustomization fetchByDepotEntryId_Last(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns the last depot app customization in the ordered set where depotEntryId = ?.- Parameters:
depotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching depot app customization, or
null
if a matching depot app customization could not be found
-
findByDepotEntryId_PrevAndNext
public static DepotAppCustomization[] findByDepotEntryId_PrevAndNext(long depotAppCustomizationId, long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) throws NoSuchAppCustomizationException Returns the depot app customizations before and after the current depot app customization in the ordered set where depotEntryId = ?.- Parameters:
depotAppCustomizationId
- the primary key of the current depot app customizationdepotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next depot app customization
- Throws:
NoSuchAppCustomizationException
- if a depot app customization with the primary key could not be foundNoSuchAppCustomizationException
-
removeByDepotEntryId
public static void removeByDepotEntryId(long depotEntryId) Removes all the depot app customizations where depotEntryId = ? from the database.- Parameters:
depotEntryId
- the depot entry ID
-
countByDepotEntryId
public static int countByDepotEntryId(long depotEntryId) Returns the number of depot app customizations where depotEntryId = ?.- Parameters:
depotEntryId
- the depot entry ID- Returns:
- the number of matching depot app customizations
-
findByD_E
public static DepotAppCustomization findByD_E(long depotEntryId, boolean enabled) throws NoSuchAppCustomizationException Returns the depot app customization where depotEntryId = ? and enabled = ? or throws aNoSuchAppCustomizationException
if it could not be found.- Parameters:
depotEntryId
- the depot entry IDenabled
- the enabled- Returns:
- the matching depot app customization
- Throws:
NoSuchAppCustomizationException
- if a matching depot app customization could not be foundNoSuchAppCustomizationException
-
fetchByD_E
Returns the depot app customization where depotEntryId = ? and enabled = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
depotEntryId
- the depot entry IDenabled
- the enabled- Returns:
- the matching depot app customization, or
null
if a matching depot app customization could not be found
-
fetchByD_E
public static DepotAppCustomization fetchByD_E(long depotEntryId, boolean enabled, boolean useFinderCache) Returns the depot app customization where depotEntryId = ? and enabled = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
depotEntryId
- the depot entry IDenabled
- the enableduseFinderCache
- whether to use the finder cache- Returns:
- the matching depot app customization, or
null
if a matching depot app customization could not be found
-
removeByD_E
public static DepotAppCustomization removeByD_E(long depotEntryId, boolean enabled) throws NoSuchAppCustomizationException Removes the depot app customization where depotEntryId = ? and enabled = ? from the database.- Parameters:
depotEntryId
- the depot entry IDenabled
- the enabled- Returns:
- the depot app customization that was removed
- Throws:
NoSuchAppCustomizationException
-
countByD_E
public static int countByD_E(long depotEntryId, boolean enabled) Returns the number of depot app customizations where depotEntryId = ? and enabled = ?.- Parameters:
depotEntryId
- the depot entry IDenabled
- the enabled- Returns:
- the number of matching depot app customizations
-
findByD_P
public static DepotAppCustomization findByD_P(long depotEntryId, String portletId) throws NoSuchAppCustomizationException Returns the depot app customization where depotEntryId = ? and portletId = ? or throws aNoSuchAppCustomizationException
if it could not be found.- Parameters:
depotEntryId
- the depot entry IDportletId
- the portlet ID- Returns:
- the matching depot app customization
- Throws:
NoSuchAppCustomizationException
- if a matching depot app customization could not be foundNoSuchAppCustomizationException
-
fetchByD_P
Returns the depot app customization where depotEntryId = ? and portletId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
depotEntryId
- the depot entry IDportletId
- the portlet ID- Returns:
- the matching depot app customization, or
null
if a matching depot app customization could not be found
-
fetchByD_P
public static DepotAppCustomization fetchByD_P(long depotEntryId, String portletId, boolean useFinderCache) Returns the depot app customization where depotEntryId = ? and portletId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
depotEntryId
- the depot entry IDportletId
- the portlet IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching depot app customization, or
null
if a matching depot app customization could not be found
-
removeByD_P
public static DepotAppCustomization removeByD_P(long depotEntryId, String portletId) throws NoSuchAppCustomizationException Removes the depot app customization where depotEntryId = ? and portletId = ? from the database.- Parameters:
depotEntryId
- the depot entry IDportletId
- the portlet ID- Returns:
- the depot app customization that was removed
- Throws:
NoSuchAppCustomizationException
-
countByD_P
Returns the number of depot app customizations where depotEntryId = ? and portletId = ?.- Parameters:
depotEntryId
- the depot entry IDportletId
- the portlet ID- Returns:
- the number of matching depot app customizations
-
cacheResult
Caches the depot app customization in the entity cache if it is enabled.- Parameters:
depotAppCustomization
- the depot app customization
-
cacheResult
Caches the depot app customizations in the entity cache if it is enabled.- Parameters:
depotAppCustomizations
- the depot app customizations
-
create
Creates a new depot app customization with the primary key. Does not add the depot app customization to the database.- Parameters:
depotAppCustomizationId
- the primary key for the new depot app customization- Returns:
- the new depot app customization
-
remove
public static DepotAppCustomization remove(long depotAppCustomizationId) throws NoSuchAppCustomizationException Removes the depot app customization with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
depotAppCustomizationId
- the primary key of the depot app customization- Returns:
- the depot app customization that was removed
- Throws:
NoSuchAppCustomizationException
- if a depot app customization with the primary key could not be foundNoSuchAppCustomizationException
-
updateImpl
-
findByPrimaryKey
public static DepotAppCustomization findByPrimaryKey(long depotAppCustomizationId) throws NoSuchAppCustomizationException Returns the depot app customization with the primary key or throws aNoSuchAppCustomizationException
if it could not be found.- Parameters:
depotAppCustomizationId
- the primary key of the depot app customization- Returns:
- the depot app customization
- Throws:
NoSuchAppCustomizationException
- if a depot app customization with the primary key could not be foundNoSuchAppCustomizationException
-
fetchByPrimaryKey
Returns the depot app customization with the primary key or returnsnull
if it could not be found.- Parameters:
depotAppCustomizationId
- the primary key of the depot app customization- Returns:
- the depot app customization, or
null
if a depot app customization with the primary key could not be found
-
findAll
Returns all the depot app customizations.- Returns:
- the depot app customizations
-
findAll
Returns a range of all the depot app customizations.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 fromDepotAppCustomizationModelImpl
.- Parameters:
start
- the lower bound of the range of depot app customizationsend
- the upper bound of the range of depot app customizations (not inclusive)- Returns:
- the range of depot app customizations
-
findAll
public static List<DepotAppCustomization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) Returns an ordered range of all the depot app customizations.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 fromDepotAppCustomizationModelImpl
.- Parameters:
start
- the lower bound of the range of depot app customizationsend
- the upper bound of the range of depot app customizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of depot app customizations
-
findAll
public static List<DepotAppCustomization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the depot app customizations.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 fromDepotAppCustomizationModelImpl
.- Parameters:
start
- the lower bound of the range of depot app customizationsend
- the upper bound of the range of depot app customizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of depot app customizations
-
removeAll
public static void removeAll()Removes all the depot app customizations from the database. -
countAll
public static int countAll()Returns the number of depot app customizations.- Returns:
- the number of depot app customizations
-
getPersistence
-
setPersistence
-