public class DepotAppCustomizationUtil
extends java.lang.Object
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
DepotAppCustomizationPersistence
Constructor and Description |
---|
DepotAppCustomizationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DepotAppCustomization depotAppCustomization)
Caches the depot app customization in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DepotAppCustomization> depotAppCustomizations)
Caches the depot app customizations in the entity cache if it is enabled.
|
static void |
clearCache() |
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,
java.lang.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 returns
null 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 returns
null if it could not be found, optionally using the finder cache. |
static DepotAppCustomization |
fetchByD_P(long depotEntryId,
java.lang.String portletId)
Returns the depot app customization where depotEntryId = ? and portletId = ? or returns
null if it could not be found. |
static DepotAppCustomization |
fetchByD_P(long depotEntryId,
java.lang.String portletId,
boolean useFinderCache)
Returns the depot app customization where depotEntryId = ? and portletId = ? or returns
null 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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DepotAppCustomization> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<DepotAppCustomization> |
findAll()
Returns all the depot app customizations.
|
static java.util.List<DepotAppCustomization> |
findAll(int start,
int end)
Returns a range of all the depot app customizations.
|
static java.util.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 java.util.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 a
NoSuchAppCustomizationException if it could not be found. |
static DepotAppCustomization |
findByD_P(long depotEntryId,
java.lang.String portletId)
Returns the depot app customization where depotEntryId = ? and portletId = ? or throws a
NoSuchAppCustomizationException if it could not be found. |
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 java.util.List<DepotAppCustomization> |
findByDepotEntryId(long depotEntryId)
Returns all the depot app customizations where depotEntryId = ?.
|
static java.util.List<DepotAppCustomization> |
findByDepotEntryId(long depotEntryId,
int start,
int end)
Returns a range of all the depot app customizations where depotEntryId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long depotAppCustomizationId)
Returns the depot app customization with the primary key or throws a
NoSuchAppCustomizationException if it could not be found. |
static java.util.List<DepotAppCustomization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DepotAppCustomization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DepotAppCustomization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) |
static DepotAppCustomizationPersistence |
getPersistence() |
static DepotAppCustomization |
remove(long depotAppCustomizationId)
Removes the depot app customization with the primary key from the database.
|
static void |
removeAll()
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,
java.lang.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 DepotAppCustomization |
update(DepotAppCustomization depotAppCustomization) |
static DepotAppCustomization |
update(DepotAppCustomization depotAppCustomization,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DepotAppCustomization |
updateImpl(DepotAppCustomization depotAppCustomization) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DepotAppCustomization depotAppCustomization)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,DepotAppCustomization> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DepotAppCustomization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DepotAppCustomization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DepotAppCustomization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DepotAppCustomization update(DepotAppCustomization depotAppCustomization)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DepotAppCustomization update(DepotAppCustomization depotAppCustomization, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DepotAppCustomization> findByDepotEntryId(long depotEntryId)
depotEntryId
- the depot entry IDpublic static java.util.List<DepotAppCustomization> findByDepotEntryId(long depotEntryId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DepotAppCustomizationModelImpl
.
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)public static java.util.List<DepotAppCustomization> findByDepotEntryId(long depotEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DepotAppCustomizationModelImpl
.
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 (optionally null
)public static java.util.List<DepotAppCustomization> findByDepotEntryId(long depotEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DepotAppCustomizationModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DepotAppCustomization findByDepotEntryId_First(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) throws NoSuchAppCustomizationException
depotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppCustomizationException
- if a matching depot app customization could not be foundpublic static DepotAppCustomization fetchByDepotEntryId_First(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator)
depotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching depot app customization could not be foundpublic static DepotAppCustomization findByDepotEntryId_Last(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) throws NoSuchAppCustomizationException
depotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppCustomizationException
- if a matching depot app customization could not be foundpublic static DepotAppCustomization fetchByDepotEntryId_Last(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator)
depotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching depot app customization could not be foundpublic static DepotAppCustomization[] findByDepotEntryId_PrevAndNext(long depotAppCustomizationId, long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) throws NoSuchAppCustomizationException
depotAppCustomizationId
- the primary key of the current depot app customizationdepotEntryId
- the depot entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppCustomizationException
- if a depot app customization with the primary key could not be foundpublic static void removeByDepotEntryId(long depotEntryId)
depotEntryId
- the depot entry IDpublic static int countByDepotEntryId(long depotEntryId)
depotEntryId
- the depot entry IDpublic static DepotAppCustomization findByD_E(long depotEntryId, boolean enabled) throws NoSuchAppCustomizationException
NoSuchAppCustomizationException
if it could not be found.depotEntryId
- the depot entry IDenabled
- the enabledNoSuchAppCustomizationException
- if a matching depot app customization could not be foundpublic static DepotAppCustomization fetchByD_E(long depotEntryId, boolean enabled)
null
if it could not be found. Uses the finder cache.depotEntryId
- the depot entry IDenabled
- the enablednull
if a matching depot app customization could not be foundpublic static DepotAppCustomization fetchByD_E(long depotEntryId, boolean enabled, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.depotEntryId
- the depot entry IDenabled
- the enableduseFinderCache
- whether to use the finder cachenull
if a matching depot app customization could not be foundpublic static DepotAppCustomization removeByD_E(long depotEntryId, boolean enabled) throws NoSuchAppCustomizationException
depotEntryId
- the depot entry IDenabled
- the enabledNoSuchAppCustomizationException
public static int countByD_E(long depotEntryId, boolean enabled)
depotEntryId
- the depot entry IDenabled
- the enabledpublic static DepotAppCustomization findByD_P(long depotEntryId, java.lang.String portletId) throws NoSuchAppCustomizationException
NoSuchAppCustomizationException
if it could not be found.depotEntryId
- the depot entry IDportletId
- the portlet IDNoSuchAppCustomizationException
- if a matching depot app customization could not be foundpublic static DepotAppCustomization fetchByD_P(long depotEntryId, java.lang.String portletId)
null
if it could not be found. Uses the finder cache.depotEntryId
- the depot entry IDportletId
- the portlet IDnull
if a matching depot app customization could not be foundpublic static DepotAppCustomization fetchByD_P(long depotEntryId, java.lang.String portletId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.depotEntryId
- the depot entry IDportletId
- the portlet IDuseFinderCache
- whether to use the finder cachenull
if a matching depot app customization could not be foundpublic static DepotAppCustomization removeByD_P(long depotEntryId, java.lang.String portletId) throws NoSuchAppCustomizationException
depotEntryId
- the depot entry IDportletId
- the portlet IDNoSuchAppCustomizationException
public static int countByD_P(long depotEntryId, java.lang.String portletId)
depotEntryId
- the depot entry IDportletId
- the portlet IDpublic static void cacheResult(DepotAppCustomization depotAppCustomization)
depotAppCustomization
- the depot app customizationpublic static void cacheResult(java.util.List<DepotAppCustomization> depotAppCustomizations)
depotAppCustomizations
- the depot app customizationspublic static DepotAppCustomization create(long depotAppCustomizationId)
depotAppCustomizationId
- the primary key for the new depot app customizationpublic static DepotAppCustomization remove(long depotAppCustomizationId) throws NoSuchAppCustomizationException
depotAppCustomizationId
- the primary key of the depot app customizationNoSuchAppCustomizationException
- if a depot app customization with the primary key could not be foundpublic static DepotAppCustomization updateImpl(DepotAppCustomization depotAppCustomization)
public static DepotAppCustomization findByPrimaryKey(long depotAppCustomizationId) throws NoSuchAppCustomizationException
NoSuchAppCustomizationException
if it could not be found.depotAppCustomizationId
- the primary key of the depot app customizationNoSuchAppCustomizationException
- if a depot app customization with the primary key could not be foundpublic static DepotAppCustomization fetchByPrimaryKey(long depotAppCustomizationId)
null
if it could not be found.depotAppCustomizationId
- the primary key of the depot app customizationnull
if a depot app customization with the primary key could not be foundpublic static java.util.List<DepotAppCustomization> findAll()
public static java.util.List<DepotAppCustomization> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DepotAppCustomizationModelImpl
.
start
- the lower bound of the range of depot app customizationsend
- the upper bound of the range of depot app customizations (not inclusive)public static java.util.List<DepotAppCustomization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DepotAppCustomizationModelImpl
.
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 (optionally null
)public static java.util.List<DepotAppCustomization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DepotAppCustomizationModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DepotAppCustomizationPersistence getPersistence()