Liferay 7.0-ce-m3

com.liferay.portlet.asset.service.persistence
Class AssetTagPropertyUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.persistence.AssetTagPropertyUtil

@ProviderType
public class AssetTagPropertyUtil
extends Object

The persistence utility for the asset tag property service. This utility wraps AssetTagPropertyPersistenceImpl 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:
AssetTagPropertyPersistence, AssetTagPropertyPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
AssetTagPropertyUtil()
           
 
Method Summary
static void cacheResult(AssetTagProperty assetTagProperty)
          Caches the asset tag property in the entity cache if it is enabled.
static void cacheResult(List<AssetTagProperty> assetTagProperties)
          Caches the asset tag properties in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(AssetTagProperty assetTagProperty)
           
static int countAll()
          Returns the number of asset tag properties.
static int countByC_K(long companyId, String key)
          Returns the number of asset tag properties where companyId = ? and key = ?.
static int countByCompanyId(long companyId)
          Returns the number of asset tag properties where companyId = ?.
static int countByT_K(long tagId, String key)
          Returns the number of asset tag properties where tagId = ? and key = ?.
static int countByTagId(long tagId)
          Returns the number of asset tag properties where tagId = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static AssetTagProperty create(long tagPropertyId)
          Creates a new asset tag property with the primary key.
static AssetTagProperty fetchByC_K_First(long companyId, String key, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the first asset tag property in the ordered set where companyId = ? and key = ?.
static AssetTagProperty fetchByC_K_Last(long companyId, String key, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the last asset tag property in the ordered set where companyId = ? and key = ?.
static AssetTagProperty fetchByCompanyId_First(long companyId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the first asset tag property in the ordered set where companyId = ?.
static AssetTagProperty fetchByCompanyId_Last(long companyId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the last asset tag property in the ordered set where companyId = ?.
static AssetTagProperty fetchByPrimaryKey(long tagPropertyId)
          Returns the asset tag property with the primary key or returns null if it could not be found.
static Map<Serializable,AssetTagProperty> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static AssetTagProperty fetchByT_K(long tagId, String key)
          Returns the asset tag property where tagId = ? and key = ? or returns null if it could not be found.
static AssetTagProperty fetchByT_K(long tagId, String key, boolean retrieveFromCache)
          Returns the asset tag property where tagId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
static AssetTagProperty fetchByTagId_First(long tagId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the first asset tag property in the ordered set where tagId = ?.
static AssetTagProperty fetchByTagId_Last(long tagId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the last asset tag property in the ordered set where tagId = ?.
static List<AssetTagProperty> findAll()
          Returns all the asset tag properties.
static List<AssetTagProperty> findAll(int start, int end)
          Returns a range of all the asset tag properties.
static List<AssetTagProperty> findAll(int start, int end, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns an ordered range of all the asset tag properties.
static AssetTagProperty findByC_K_First(long companyId, String key, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the first asset tag property in the ordered set where companyId = ? and key = ?.
static AssetTagProperty findByC_K_Last(long companyId, String key, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the last asset tag property in the ordered set where companyId = ? and key = ?.
static AssetTagProperty[] findByC_K_PrevAndNext(long tagPropertyId, long companyId, String key, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ? and key = ?.
static List<AssetTagProperty> findByC_K(long companyId, String key)
          Returns all the asset tag properties where companyId = ? and key = ?.
static List<AssetTagProperty> findByC_K(long companyId, String key, int start, int end)
          Returns a range of all the asset tag properties where companyId = ? and key = ?.
static List<AssetTagProperty> findByC_K(long companyId, String key, int start, int end, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns an ordered range of all the asset tag properties where companyId = ? and key = ?.
static AssetTagProperty findByCompanyId_First(long companyId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the first asset tag property in the ordered set where companyId = ?.
static AssetTagProperty findByCompanyId_Last(long companyId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the last asset tag property in the ordered set where companyId = ?.
static AssetTagProperty[] findByCompanyId_PrevAndNext(long tagPropertyId, long companyId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ?.
static List<AssetTagProperty> findByCompanyId(long companyId)
          Returns all the asset tag properties where companyId = ?.
static List<AssetTagProperty> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the asset tag properties where companyId = ?.
static List<AssetTagProperty> findByCompanyId(long companyId, int start, int end, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns an ordered range of all the asset tag properties where companyId = ?.
static AssetTagProperty findByPrimaryKey(long tagPropertyId)
          Returns the asset tag property with the primary key or throws a NoSuchTagPropertyException if it could not be found.
static AssetTagProperty findByT_K(long tagId, String key)
          Returns the asset tag property where tagId = ? and key = ? or throws a NoSuchTagPropertyException if it could not be found.
static AssetTagProperty findByTagId_First(long tagId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the first asset tag property in the ordered set where tagId = ?.
static AssetTagProperty findByTagId_Last(long tagId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the last asset tag property in the ordered set where tagId = ?.
static AssetTagProperty[] findByTagId_PrevAndNext(long tagPropertyId, long tagId, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns the asset tag properties before and after the current asset tag property in the ordered set where tagId = ?.
static List<AssetTagProperty> findByTagId(long tagId)
          Returns all the asset tag properties where tagId = ?.
static List<AssetTagProperty> findByTagId(long tagId, int start, int end)
          Returns a range of all the asset tag properties where tagId = ?.
static List<AssetTagProperty> findByTagId(long tagId, int start, int end, OrderByComparator<AssetTagProperty> orderByComparator)
          Returns an ordered range of all the asset tag properties where tagId = ?.
static List<AssetTagProperty> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<AssetTagProperty> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<AssetTagProperty> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<AssetTagProperty> orderByComparator)
           
static AssetTagPropertyPersistence getPersistence()
           
static AssetTagProperty remove(long tagPropertyId)
          Removes the asset tag property with the primary key from the database.
static void removeAll()
          Removes all the asset tag properties from the database.
static void removeByC_K(long companyId, String key)
          Removes all the asset tag properties where companyId = ? and key = ? from the database.
static void removeByCompanyId(long companyId)
          Removes all the asset tag properties where companyId = ? from the database.
static AssetTagProperty removeByT_K(long tagId, String key)
          Removes the asset tag property where tagId = ? and key = ? from the database.
static void removeByTagId(long tagId)
          Removes all the asset tag properties where tagId = ? from the database.
 void setPersistence(AssetTagPropertyPersistence persistence)
          Deprecated. As of 6.2.0
static AssetTagProperty update(AssetTagProperty assetTagProperty)
           
static AssetTagProperty update(AssetTagProperty assetTagProperty, ServiceContext serviceContext)
           
static AssetTagProperty updateImpl(AssetTagProperty assetTagProperty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagPropertyUtil

public AssetTagPropertyUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(AssetTagProperty assetTagProperty)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetTagProperty> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetTagProperty> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                          int start,
                                                          int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<AssetTagProperty> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                          int start,
                                                          int end,
                                                          OrderByComparator<AssetTagProperty> orderByComparator)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static AssetTagProperty update(AssetTagProperty assetTagProperty)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static AssetTagProperty update(AssetTagProperty assetTagProperty,
                                      ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByCompanyId

public static List<AssetTagProperty> findByCompanyId(long companyId)
Returns all the asset tag properties where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching asset tag properties

findByCompanyId

public static List<AssetTagProperty> findByCompanyId(long companyId,
                                                     int start,
                                                     int end)
Returns a range of all the asset tag properties where companyId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
Returns:
the range of matching asset tag properties

findByCompanyId

public static List<AssetTagProperty> findByCompanyId(long companyId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<AssetTagProperty> orderByComparator)
Returns an ordered range of all the asset tag properties where companyId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tag properties

findByCompanyId_First

public static AssetTagProperty findByCompanyId_First(long companyId,
                                                     OrderByComparator<AssetTagProperty> orderByComparator)
                                              throws NoSuchTagPropertyException
Returns the first asset tag property in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found

fetchByCompanyId_First

public static AssetTagProperty fetchByCompanyId_First(long companyId,
                                                      OrderByComparator<AssetTagProperty> orderByComparator)
Returns the first asset tag property in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property, or null if a matching asset tag property could not be found

findByCompanyId_Last

public static AssetTagProperty findByCompanyId_Last(long companyId,
                                                    OrderByComparator<AssetTagProperty> orderByComparator)
                                             throws NoSuchTagPropertyException
Returns the last asset tag property in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found

fetchByCompanyId_Last

public static AssetTagProperty fetchByCompanyId_Last(long companyId,
                                                     OrderByComparator<AssetTagProperty> orderByComparator)
Returns the last asset tag property in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property, or null if a matching asset tag property could not be found

findByCompanyId_PrevAndNext

public static AssetTagProperty[] findByCompanyId_PrevAndNext(long tagPropertyId,
                                                             long companyId,
                                                             OrderByComparator<AssetTagProperty> orderByComparator)
                                                      throws NoSuchTagPropertyException
Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ?.

Parameters:
tagPropertyId - the primary key of the current asset tag property
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag property
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found

removeByCompanyId

public static void removeByCompanyId(long companyId)
Removes all the asset tag properties where companyId = ? from the database.

Parameters:
companyId - the company ID

countByCompanyId

public static int countByCompanyId(long companyId)
Returns the number of asset tag properties where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching asset tag properties

findByTagId

public static List<AssetTagProperty> findByTagId(long tagId)
Returns all the asset tag properties where tagId = ?.

Parameters:
tagId - the tag ID
Returns:
the matching asset tag properties

findByTagId

public static List<AssetTagProperty> findByTagId(long tagId,
                                                 int start,
                                                 int end)
Returns a range of all the asset tag properties where tagId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
tagId - the tag ID
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
Returns:
the range of matching asset tag properties

findByTagId

public static List<AssetTagProperty> findByTagId(long tagId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<AssetTagProperty> orderByComparator)
Returns an ordered range of all the asset tag properties where tagId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
tagId - the tag ID
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tag properties

findByTagId_First

public static AssetTagProperty findByTagId_First(long tagId,
                                                 OrderByComparator<AssetTagProperty> orderByComparator)
                                          throws NoSuchTagPropertyException
Returns the first asset tag property in the ordered set where tagId = ?.

Parameters:
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found

fetchByTagId_First

public static AssetTagProperty fetchByTagId_First(long tagId,
                                                  OrderByComparator<AssetTagProperty> orderByComparator)
Returns the first asset tag property in the ordered set where tagId = ?.

Parameters:
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property, or null if a matching asset tag property could not be found

findByTagId_Last

public static AssetTagProperty findByTagId_Last(long tagId,
                                                OrderByComparator<AssetTagProperty> orderByComparator)
                                         throws NoSuchTagPropertyException
Returns the last asset tag property in the ordered set where tagId = ?.

Parameters:
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found

fetchByTagId_Last

public static AssetTagProperty fetchByTagId_Last(long tagId,
                                                 OrderByComparator<AssetTagProperty> orderByComparator)
Returns the last asset tag property in the ordered set where tagId = ?.

Parameters:
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property, or null if a matching asset tag property could not be found

findByTagId_PrevAndNext

public static AssetTagProperty[] findByTagId_PrevAndNext(long tagPropertyId,
                                                         long tagId,
                                                         OrderByComparator<AssetTagProperty> orderByComparator)
                                                  throws NoSuchTagPropertyException
Returns the asset tag properties before and after the current asset tag property in the ordered set where tagId = ?.

Parameters:
tagPropertyId - the primary key of the current asset tag property
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag property
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found

removeByTagId

public static void removeByTagId(long tagId)
Removes all the asset tag properties where tagId = ? from the database.

Parameters:
tagId - the tag ID

countByTagId

public static int countByTagId(long tagId)
Returns the number of asset tag properties where tagId = ?.

Parameters:
tagId - the tag ID
Returns:
the number of matching asset tag properties

findByC_K

public static List<AssetTagProperty> findByC_K(long companyId,
                                               String key)
Returns all the asset tag properties where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
Returns:
the matching asset tag properties

findByC_K

public static List<AssetTagProperty> findByC_K(long companyId,
                                               String key,
                                               int start,
                                               int end)
Returns a range of all the asset tag properties where companyId = ? and key = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
key - the key
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
Returns:
the range of matching asset tag properties

findByC_K

public static List<AssetTagProperty> findByC_K(long companyId,
                                               String key,
                                               int start,
                                               int end,
                                               OrderByComparator<AssetTagProperty> orderByComparator)
Returns an ordered range of all the asset tag properties where companyId = ? and key = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
key - the key
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tag properties

findByC_K_First

public static AssetTagProperty findByC_K_First(long companyId,
                                               String key,
                                               OrderByComparator<AssetTagProperty> orderByComparator)
                                        throws NoSuchTagPropertyException
Returns the first asset tag property in the ordered set where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found

fetchByC_K_First

public static AssetTagProperty fetchByC_K_First(long companyId,
                                                String key,
                                                OrderByComparator<AssetTagProperty> orderByComparator)
Returns the first asset tag property in the ordered set where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property, or null if a matching asset tag property could not be found

findByC_K_Last

public static AssetTagProperty findByC_K_Last(long companyId,
                                              String key,
                                              OrderByComparator<AssetTagProperty> orderByComparator)
                                       throws NoSuchTagPropertyException
Returns the last asset tag property in the ordered set where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found

fetchByC_K_Last

public static AssetTagProperty fetchByC_K_Last(long companyId,
                                               String key,
                                               OrderByComparator<AssetTagProperty> orderByComparator)
Returns the last asset tag property in the ordered set where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property, or null if a matching asset tag property could not be found

findByC_K_PrevAndNext

public static AssetTagProperty[] findByC_K_PrevAndNext(long tagPropertyId,
                                                       long companyId,
                                                       String key,
                                                       OrderByComparator<AssetTagProperty> orderByComparator)
                                                throws NoSuchTagPropertyException
Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ? and key = ?.

Parameters:
tagPropertyId - the primary key of the current asset tag property
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag property
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found

removeByC_K

public static void removeByC_K(long companyId,
                               String key)
Removes all the asset tag properties where companyId = ? and key = ? from the database.

Parameters:
companyId - the company ID
key - the key

countByC_K

public static int countByC_K(long companyId,
                             String key)
Returns the number of asset tag properties where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
Returns:
the number of matching asset tag properties

findByT_K

public static AssetTagProperty findByT_K(long tagId,
                                         String key)
                                  throws NoSuchTagPropertyException
Returns the asset tag property where tagId = ? and key = ? or throws a NoSuchTagPropertyException if it could not be found.

Parameters:
tagId - the tag ID
key - the key
Returns:
the matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found

fetchByT_K

public static AssetTagProperty fetchByT_K(long tagId,
                                          String key)
Returns the asset tag property where tagId = ? and key = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
tagId - the tag ID
key - the key
Returns:
the matching asset tag property, or null if a matching asset tag property could not be found

fetchByT_K

public static AssetTagProperty fetchByT_K(long tagId,
                                          String key,
                                          boolean retrieveFromCache)
Returns the asset tag property where tagId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
tagId - the tag ID
key - the key
retrieveFromCache - whether to use the finder cache
Returns:
the matching asset tag property, or null if a matching asset tag property could not be found

removeByT_K

public static AssetTagProperty removeByT_K(long tagId,
                                           String key)
                                    throws NoSuchTagPropertyException
Removes the asset tag property where tagId = ? and key = ? from the database.

Parameters:
tagId - the tag ID
key - the key
Returns:
the asset tag property that was removed
Throws:
NoSuchTagPropertyException

countByT_K

public static int countByT_K(long tagId,
                             String key)
Returns the number of asset tag properties where tagId = ? and key = ?.

Parameters:
tagId - the tag ID
key - the key
Returns:
the number of matching asset tag properties

cacheResult

public static void cacheResult(AssetTagProperty assetTagProperty)
Caches the asset tag property in the entity cache if it is enabled.

Parameters:
assetTagProperty - the asset tag property

cacheResult

public static void cacheResult(List<AssetTagProperty> assetTagProperties)
Caches the asset tag properties in the entity cache if it is enabled.

Parameters:
assetTagProperties - the asset tag properties

create

public static AssetTagProperty create(long tagPropertyId)
Creates a new asset tag property with the primary key. Does not add the asset tag property to the database.

Parameters:
tagPropertyId - the primary key for the new asset tag property
Returns:
the new asset tag property

remove

public static AssetTagProperty remove(long tagPropertyId)
                               throws NoSuchTagPropertyException
Removes the asset tag property with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
tagPropertyId - the primary key of the asset tag property
Returns:
the asset tag property that was removed
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found

updateImpl

public static AssetTagProperty updateImpl(AssetTagProperty assetTagProperty)

findByPrimaryKey

public static AssetTagProperty findByPrimaryKey(long tagPropertyId)
                                         throws NoSuchTagPropertyException
Returns the asset tag property with the primary key or throws a NoSuchTagPropertyException if it could not be found.

Parameters:
tagPropertyId - the primary key of the asset tag property
Returns:
the asset tag property
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found

fetchByPrimaryKey

public static AssetTagProperty fetchByPrimaryKey(long tagPropertyId)
Returns the asset tag property with the primary key or returns null if it could not be found.

Parameters:
tagPropertyId - the primary key of the asset tag property
Returns:
the asset tag property, or null if a asset tag property with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,AssetTagProperty> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<AssetTagProperty> findAll()
Returns all the asset tag properties.

Returns:
the asset tag properties

findAll

public static List<AssetTagProperty> findAll(int start,
                                             int end)
Returns a range of all the asset tag properties.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
Returns:
the range of asset tag properties

findAll

public static List<AssetTagProperty> findAll(int start,
                                             int end,
                                             OrderByComparator<AssetTagProperty> orderByComparator)
Returns an ordered range of all the asset tag properties.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset tag properties

removeAll

public static void removeAll()
Removes all the asset tag properties from the database.


countAll

public static int countAll()
Returns the number of asset tag properties.

Returns:
the number of asset tag properties

getPersistence

public static AssetTagPropertyPersistence getPersistence()

setPersistence

@Deprecated
public void setPersistence(AssetTagPropertyPersistence persistence)
Deprecated. As of 6.2.0


Liferay 7.0-ce-m3