|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetCategoryProperty>
com.liferay.portlet.asset.service.persistence.impl.AssetCategoryPropertyPersistenceImpl
@ProviderType public class AssetCategoryPropertyPersistenceImpl
The persistence implementation for the asset category property service.
Caching information and settings can be found in portal.properties
AssetCategoryPropertyPersistence,
AssetCategoryPropertyUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
AssetCategoryPropertyPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the asset category property persistence. |
void |
cacheResult(AssetCategoryProperty assetCategoryProperty)
Caches the asset category property in the entity cache if it is enabled. |
void |
cacheResult(List<AssetCategoryProperty> assetCategoryProperties)
Caches the asset category properties in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(AssetCategoryPropertyModelImpl assetCategoryPropertyModelImpl,
boolean isNew)
|
void |
clearCache()
Clears the cache for all asset category properties. |
void |
clearCache(AssetCategoryProperty assetCategoryProperty)
Clears the cache for the asset category property. |
void |
clearCache(List<AssetCategoryProperty> assetCategoryProperties)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(AssetCategoryPropertyModelImpl assetCategoryPropertyModelImpl)
|
int |
countAll()
Returns the number of asset category properties. |
int |
countByC_K(long companyId,
String key)
Returns the number of asset category properties where companyId = ? and key = ?. |
int |
countByCA_K(long categoryId,
String key)
Returns the number of asset category properties where categoryId = ? and key = ?. |
int |
countByCategoryId(long categoryId)
Returns the number of asset category properties where categoryId = ?. |
int |
countByCompanyId(long companyId)
Returns the number of asset category properties where companyId = ?. |
AssetCategoryProperty |
create(long categoryPropertyId)
Creates a new asset category property with the primary key. |
void |
destroy()
|
AssetCategoryProperty |
fetchByC_K_First(long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where companyId = ? and key = ?. |
AssetCategoryProperty |
fetchByC_K_Last(long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where companyId = ? and key = ?. |
AssetCategoryProperty |
fetchByCA_K(long categoryId,
String key)
Returns the asset category property where categoryId = ? and key = ? or returns null if it could not be found. |
AssetCategoryProperty |
fetchByCA_K(long categoryId,
String key,
boolean retrieveFromCache)
Returns the asset category property where categoryId = ? and key = ? or returns null if it could not be found, optionally using the finder cache. |
AssetCategoryProperty |
fetchByCategoryId_First(long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where categoryId = ?. |
AssetCategoryProperty |
fetchByCategoryId_Last(long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where categoryId = ?. |
AssetCategoryProperty |
fetchByCompanyId_First(long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where companyId = ?. |
AssetCategoryProperty |
fetchByCompanyId_Last(long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where companyId = ?. |
AssetCategoryProperty |
fetchByPrimaryKey(long categoryPropertyId)
Returns the asset category property with the primary key or returns null if it could not be found. |
AssetCategoryProperty |
fetchByPrimaryKey(Serializable primaryKey)
Returns the asset category property with the primary key or returns null if it could not be found. |
Map<Serializable,AssetCategoryProperty> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
List<AssetCategoryProperty> |
findAll()
Returns all the asset category properties. |
List<AssetCategoryProperty> |
findAll(int start,
int end)
Returns a range of all the asset category properties. |
List<AssetCategoryProperty> |
findAll(int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns an ordered range of all the asset category properties. |
List<AssetCategoryProperty> |
findAll(int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the asset category properties. |
AssetCategoryProperty |
findByC_K_First(long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where companyId = ? and key = ?. |
AssetCategoryProperty |
findByC_K_Last(long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where companyId = ? and key = ?. |
AssetCategoryProperty[] |
findByC_K_PrevAndNext(long categoryPropertyId,
long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?. |
List<AssetCategoryProperty> |
findByC_K(long companyId,
String key)
Returns all the asset category properties where companyId = ? and key = ?. |
List<AssetCategoryProperty> |
findByC_K(long companyId,
String key,
int start,
int end)
Returns a range of all the asset category properties where companyId = ? and key = ?. |
List<AssetCategoryProperty> |
findByC_K(long companyId,
String key,
int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns an ordered range of all the asset category properties where companyId = ? and key = ?. |
List<AssetCategoryProperty> |
findByC_K(long companyId,
String key,
int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the asset category properties where companyId = ? and key = ?. |
AssetCategoryProperty |
findByCA_K(long categoryId,
String key)
Returns the asset category property where categoryId = ? and key = ? or throws a NoSuchCategoryPropertyException if it could not be found. |
AssetCategoryProperty |
findByCategoryId_First(long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where categoryId = ?. |
AssetCategoryProperty |
findByCategoryId_Last(long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where categoryId = ?. |
AssetCategoryProperty[] |
findByCategoryId_PrevAndNext(long categoryPropertyId,
long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = ?. |
List<AssetCategoryProperty> |
findByCategoryId(long categoryId)
Returns all the asset category properties where categoryId = ?. |
List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end)
Returns a range of all the asset category properties where categoryId = ?. |
List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns an ordered range of all the asset category properties where categoryId = ?. |
List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the asset category properties where categoryId = ?. |
AssetCategoryProperty |
findByCompanyId_First(long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where companyId = ?. |
AssetCategoryProperty |
findByCompanyId_Last(long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where companyId = ?. |
AssetCategoryProperty[] |
findByCompanyId_PrevAndNext(long categoryPropertyId,
long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ?. |
List<AssetCategoryProperty> |
findByCompanyId(long companyId)
Returns all the asset category properties where companyId = ?. |
List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the asset category properties where companyId = ?. |
List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns an ordered range of all the asset category properties where companyId = ?. |
List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the asset category properties where companyId = ?. |
AssetCategoryProperty |
findByPrimaryKey(long categoryPropertyId)
Returns the asset category property with the primary key or throws a NoSuchCategoryPropertyException if it could not be found. |
AssetCategoryProperty |
findByPrimaryKey(Serializable primaryKey)
Returns the asset category property with the primary key or throws a NoSuchModelException if it could not be found. |
Set<String> |
getBadColumnNames()
|
protected AssetCategoryProperty |
getByC_K_PrevAndNext(Session session,
AssetCategoryProperty assetCategoryProperty,
long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean previous)
|
protected AssetCategoryProperty |
getByCategoryId_PrevAndNext(Session session,
AssetCategoryProperty assetCategoryProperty,
long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean previous)
|
protected AssetCategoryProperty |
getByCompanyId_PrevAndNext(Session session,
AssetCategoryProperty assetCategoryProperty,
long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean previous)
|
protected Map<String,Integer> |
getTableColumnsMap()
|
AssetCategoryProperty |
remove(long categoryPropertyId)
Removes the asset category property with the primary key from the database. |
AssetCategoryProperty |
remove(Serializable primaryKey)
Removes the asset category property with the primary key from the database. |
void |
removeAll()
Removes all the asset category properties from the database. |
void |
removeByC_K(long companyId,
String key)
Removes all the asset category properties where companyId = ? and key = ? from the database. |
AssetCategoryProperty |
removeByCA_K(long categoryId,
String key)
Removes the asset category property where categoryId = ? and key = ? from the database. |
void |
removeByCategoryId(long categoryId)
Removes all the asset category properties where categoryId = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the asset category properties where companyId = ? from the database. |
protected AssetCategoryProperty |
removeImpl(AssetCategoryProperty assetCategoryProperty)
Removes the model instance from the database. |
protected AssetCategoryProperty |
toUnwrappedModel(AssetCategoryProperty assetCategoryProperty)
|
AssetCategoryProperty |
updateImpl(AssetCategoryProperty assetCategoryProperty)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CATEGORYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CATEGORYID
public static final FinderPath FINDER_PATH_COUNT_BY_CATEGORYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_K
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_K
public static final FinderPath FINDER_PATH_COUNT_BY_C_K
public static final FinderPath FINDER_PATH_FETCH_BY_CA_K
public static final FinderPath FINDER_PATH_COUNT_BY_CA_K
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public AssetCategoryPropertyPersistenceImpl()
| Method Detail |
|---|
public List<AssetCategoryProperty> findByCompanyId(long companyId)
findByCompanyId in interface AssetCategoryPropertyPersistencecompanyId - the company ID
public List<AssetCategoryProperty> findByCompanyId(long companyId,
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. 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.
findByCompanyId in interface AssetCategoryPropertyPersistencecompanyId - the company IDstart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)
public List<AssetCategoryProperty> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<AssetCategoryProperty> 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. 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.
findByCompanyId in interface AssetCategoryPropertyPersistencecompanyId - the company IDstart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<AssetCategoryProperty> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean retrieveFromCache)
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 AssetCategoryPropertyModelImpl. 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.
findByCompanyId in interface AssetCategoryPropertyPersistencecompanyId - the company IDstart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public AssetCategoryProperty findByCompanyId_First(long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
throws NoSuchCategoryPropertyException
findByCompanyId_First in interface AssetCategoryPropertyPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryPropertyException - if a matching asset category property could not be found
public AssetCategoryProperty fetchByCompanyId_First(long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
fetchByCompanyId_First in interface AssetCategoryPropertyPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching asset category property could not be found
public AssetCategoryProperty findByCompanyId_Last(long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
throws NoSuchCategoryPropertyException
findByCompanyId_Last in interface AssetCategoryPropertyPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryPropertyException - if a matching asset category property could not be found
public AssetCategoryProperty fetchByCompanyId_Last(long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
fetchByCompanyId_Last in interface AssetCategoryPropertyPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching asset category property could not be found
public AssetCategoryProperty[] findByCompanyId_PrevAndNext(long categoryPropertyId,
long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
throws NoSuchCategoryPropertyException
findByCompanyId_PrevAndNext in interface AssetCategoryPropertyPersistencecategoryPropertyId - the primary key of the current asset category propertycompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
protected AssetCategoryProperty getByCompanyId_PrevAndNext(Session session,
AssetCategoryProperty assetCategoryProperty,
long companyId,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean previous)
public void removeByCompanyId(long companyId)
removeByCompanyId in interface AssetCategoryPropertyPersistencecompanyId - the company IDpublic int countByCompanyId(long companyId)
countByCompanyId in interface AssetCategoryPropertyPersistencecompanyId - the company ID
public List<AssetCategoryProperty> findByCategoryId(long categoryId)
findByCategoryId in interface AssetCategoryPropertyPersistencecategoryId - the category ID
public List<AssetCategoryProperty> findByCategoryId(long categoryId,
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. 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.
findByCategoryId in interface AssetCategoryPropertyPersistencecategoryId - the category IDstart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)
public List<AssetCategoryProperty> findByCategoryId(long categoryId,
int start,
int end,
OrderByComparator<AssetCategoryProperty> 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. 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.
findByCategoryId in interface AssetCategoryPropertyPersistencecategoryId - the category IDstart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<AssetCategoryProperty> findByCategoryId(long categoryId,
int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean retrieveFromCache)
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 AssetCategoryPropertyModelImpl. 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.
findByCategoryId in interface AssetCategoryPropertyPersistencecategoryId - the category IDstart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public AssetCategoryProperty findByCategoryId_First(long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
throws NoSuchCategoryPropertyException
findByCategoryId_First in interface AssetCategoryPropertyPersistencecategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryPropertyException - if a matching asset category property could not be found
public AssetCategoryProperty fetchByCategoryId_First(long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
fetchByCategoryId_First in interface AssetCategoryPropertyPersistencecategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching asset category property could not be found
public AssetCategoryProperty findByCategoryId_Last(long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
throws NoSuchCategoryPropertyException
findByCategoryId_Last in interface AssetCategoryPropertyPersistencecategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryPropertyException - if a matching asset category property could not be found
public AssetCategoryProperty fetchByCategoryId_Last(long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
fetchByCategoryId_Last in interface AssetCategoryPropertyPersistencecategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching asset category property could not be found
public AssetCategoryProperty[] findByCategoryId_PrevAndNext(long categoryPropertyId,
long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator)
throws NoSuchCategoryPropertyException
findByCategoryId_PrevAndNext in interface AssetCategoryPropertyPersistencecategoryPropertyId - the primary key of the current asset category propertycategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
protected AssetCategoryProperty getByCategoryId_PrevAndNext(Session session,
AssetCategoryProperty assetCategoryProperty,
long categoryId,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean previous)
public void removeByCategoryId(long categoryId)
removeByCategoryId in interface AssetCategoryPropertyPersistencecategoryId - the category IDpublic int countByCategoryId(long categoryId)
countByCategoryId in interface AssetCategoryPropertyPersistencecategoryId - the category ID
public List<AssetCategoryProperty> findByC_K(long companyId,
String key)
findByC_K in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the key
public List<AssetCategoryProperty> findByC_K(long companyId,
String key,
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. 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.
findByC_K in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the keystart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)
public List<AssetCategoryProperty> findByC_K(long companyId,
String key,
int start,
int end,
OrderByComparator<AssetCategoryProperty> 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. 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.
findByC_K in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the keystart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<AssetCategoryProperty> findByC_K(long companyId,
String key,
int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean retrieveFromCache)
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 AssetCategoryPropertyModelImpl. 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.
findByC_K in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the keystart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public AssetCategoryProperty findByC_K_First(long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
throws NoSuchCategoryPropertyException
findByC_K_First in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the keyorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryPropertyException - if a matching asset category property could not be found
public AssetCategoryProperty fetchByC_K_First(long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
fetchByC_K_First in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the keyorderByComparator - the comparator to order the set by (optionally null)
null if a matching asset category property could not be found
public AssetCategoryProperty findByC_K_Last(long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
throws NoSuchCategoryPropertyException
findByC_K_Last in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the keyorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryPropertyException - if a matching asset category property could not be found
public AssetCategoryProperty fetchByC_K_Last(long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
fetchByC_K_Last in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the keyorderByComparator - the comparator to order the set by (optionally null)
null if a matching asset category property could not be found
public AssetCategoryProperty[] findByC_K_PrevAndNext(long categoryPropertyId,
long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator)
throws NoSuchCategoryPropertyException
findByC_K_PrevAndNext in interface AssetCategoryPropertyPersistencecategoryPropertyId - the primary key of the current asset category propertycompanyId - the company IDkey - the keyorderByComparator - the comparator to order the set by (optionally null)
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
protected AssetCategoryProperty getByC_K_PrevAndNext(Session session,
AssetCategoryProperty assetCategoryProperty,
long companyId,
String key,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean previous)
public void removeByC_K(long companyId,
String key)
removeByC_K in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the key
public int countByC_K(long companyId,
String key)
countByC_K in interface AssetCategoryPropertyPersistencecompanyId - the company IDkey - the key
public AssetCategoryProperty findByCA_K(long categoryId,
String key)
throws NoSuchCategoryPropertyException
NoSuchCategoryPropertyException if it could not be found.
findByCA_K in interface AssetCategoryPropertyPersistencecategoryId - the category IDkey - the key
NoSuchCategoryPropertyException - if a matching asset category property could not be found
public AssetCategoryProperty fetchByCA_K(long categoryId,
String key)
null if it could not be found. Uses the finder cache.
fetchByCA_K in interface AssetCategoryPropertyPersistencecategoryId - the category IDkey - the key
null if a matching asset category property could not be found
public AssetCategoryProperty fetchByCA_K(long categoryId,
String key,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByCA_K in interface AssetCategoryPropertyPersistencecategoryId - the category IDkey - the keyretrieveFromCache - whether to retrieve from the finder cache
null if a matching asset category property could not be found
public AssetCategoryProperty removeByCA_K(long categoryId,
String key)
throws NoSuchCategoryPropertyException
removeByCA_K in interface AssetCategoryPropertyPersistencecategoryId - the category IDkey - the key
NoSuchCategoryPropertyException
public int countByCA_K(long categoryId,
String key)
countByCA_K in interface AssetCategoryPropertyPersistencecategoryId - the category IDkey - the key
public void cacheResult(AssetCategoryProperty assetCategoryProperty)
cacheResult in interface AssetCategoryPropertyPersistenceassetCategoryProperty - the asset category propertypublic void cacheResult(List<AssetCategoryProperty> assetCategoryProperties)
cacheResult in interface AssetCategoryPropertyPersistenceassetCategoryProperties - the asset category propertiespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<AssetCategoryProperty>clearCache in class BasePersistenceImpl<AssetCategoryProperty>public void clearCache(AssetCategoryProperty assetCategoryProperty)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<AssetCategoryProperty>clearCache in class BasePersistenceImpl<AssetCategoryProperty>assetCategoryProperty - the instance of this model to clear the cache forpublic void clearCache(List<AssetCategoryProperty> assetCategoryProperties)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<AssetCategoryProperty>clearCache in class BasePersistenceImpl<AssetCategoryProperty>assetCategoryProperties - the List instances of this model to clear the cache for
protected void cacheUniqueFindersCache(AssetCategoryPropertyModelImpl assetCategoryPropertyModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(AssetCategoryPropertyModelImpl assetCategoryPropertyModelImpl)
public AssetCategoryProperty create(long categoryPropertyId)
create in interface AssetCategoryPropertyPersistencecategoryPropertyId - the primary key for the new asset category property
public AssetCategoryProperty remove(long categoryPropertyId)
throws NoSuchCategoryPropertyException
remove in interface AssetCategoryPropertyPersistencecategoryPropertyId - the primary key of the asset category property
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
public AssetCategoryProperty remove(Serializable primaryKey)
throws NoSuchCategoryPropertyException
remove in interface BasePersistence<AssetCategoryProperty>remove in class BasePersistenceImpl<AssetCategoryProperty>primaryKey - the primary key of the asset category property
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be foundprotected AssetCategoryProperty removeImpl(AssetCategoryProperty assetCategoryProperty)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<AssetCategoryProperty>assetCategoryProperty - the model instance to remove
public AssetCategoryProperty updateImpl(AssetCategoryProperty assetCategoryProperty)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface AssetCategoryPropertyPersistenceupdateImpl in class BasePersistenceImpl<AssetCategoryProperty>assetCategoryProperty - the model instance to update
protected AssetCategoryProperty toUnwrappedModel(AssetCategoryProperty assetCategoryProperty)
public AssetCategoryProperty findByPrimaryKey(Serializable primaryKey)
throws NoSuchCategoryPropertyException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<AssetCategoryProperty>findByPrimaryKey in class BasePersistenceImpl<AssetCategoryProperty>primaryKey - the primary key of the asset category property
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
public AssetCategoryProperty findByPrimaryKey(long categoryPropertyId)
throws NoSuchCategoryPropertyException
NoSuchCategoryPropertyException if it could not be found.
findByPrimaryKey in interface AssetCategoryPropertyPersistencecategoryPropertyId - the primary key of the asset category property
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be foundpublic AssetCategoryProperty fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<AssetCategoryProperty>fetchByPrimaryKey in class BasePersistenceImpl<AssetCategoryProperty>primaryKey - the primary key of the asset category property
null if a asset category property with the primary key could not be foundpublic AssetCategoryProperty fetchByPrimaryKey(long categoryPropertyId)
null if it could not be found.
fetchByPrimaryKey in interface AssetCategoryPropertyPersistencecategoryPropertyId - the primary key of the asset category property
null if a asset category property with the primary key could not be foundpublic Map<Serializable,AssetCategoryProperty> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<AssetCategoryProperty>fetchByPrimaryKeys in interface AssetCategoryPropertyPersistencefetchByPrimaryKeys in class BasePersistenceImpl<AssetCategoryProperty>public List<AssetCategoryProperty> findAll()
findAll in interface AssetCategoryPropertyPersistence
public List<AssetCategoryProperty> 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. 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.
findAll in interface AssetCategoryPropertyPersistencestart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)
public List<AssetCategoryProperty> findAll(int start,
int end,
OrderByComparator<AssetCategoryProperty> 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. 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.
findAll in interface AssetCategoryPropertyPersistencestart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<AssetCategoryProperty> findAll(int start,
int end,
OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean retrieveFromCache)
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 AssetCategoryPropertyModelImpl. 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.
findAll in interface AssetCategoryPropertyPersistencestart - the lower bound of the range of asset category propertiesend - the upper bound of the range of asset category properties (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface AssetCategoryPropertyPersistencepublic int countAll()
countAll in interface AssetCategoryPropertyPersistencepublic Set<String> getBadColumnNames()
getBadColumnNames in interface BasePersistence<AssetCategoryProperty>getBadColumnNames in interface AssetCategoryPropertyPersistencegetBadColumnNames in class BasePersistenceImpl<AssetCategoryProperty>protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<AssetCategoryProperty>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||