|
Liferay 6.2-ce-ga5 | |||||||||
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<AssetTagProperty>
com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistenceImpl
public class AssetTagPropertyPersistenceImpl
The persistence implementation for the asset tag property service.
Caching information and settings can be found in portal.properties
AssetTagPropertyPersistence
,
AssetTagPropertyUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, 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 | |
---|---|
AssetTagPropertyPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the asset tag property persistence. |
void |
cacheResult(AssetTagProperty assetTagProperty)
Caches the asset tag property in the entity cache if it is enabled. |
void |
cacheResult(List<AssetTagProperty> assetTagProperties)
Caches the asset tag properties in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(AssetTagProperty assetTagProperty)
|
void |
clearCache()
Clears the cache for all asset tag properties. |
void |
clearCache(AssetTagProperty assetTagProperty)
Clears the cache for the asset tag property. |
void |
clearCache(List<AssetTagProperty> assetTagProperties)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(AssetTagProperty assetTagProperty)
|
int |
countAll()
Returns the number of asset tag properties. |
int |
countByC_K(long companyId,
String key)
Returns the number of asset tag properties where companyId = ? and key = ?. |
int |
countByCompanyId(long companyId)
Returns the number of asset tag properties where companyId = ?. |
int |
countByT_K(long tagId,
String key)
Returns the number of asset tag properties where tagId = ? and key = ?. |
int |
countByTagId(long tagId)
Returns the number of asset tag properties where tagId = ?. |
AssetTagProperty |
create(long tagPropertyId)
Creates a new asset tag property with the primary key. |
void |
destroy()
|
AssetTagProperty |
fetchByC_K_First(long companyId,
String key,
OrderByComparator orderByComparator)
Returns the first asset tag property in the ordered set where companyId = ? and key = ?. |
AssetTagProperty |
fetchByC_K_Last(long companyId,
String key,
OrderByComparator orderByComparator)
Returns the last asset tag property in the ordered set where companyId = ? and key = ?. |
AssetTagProperty |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first asset tag property in the ordered set where companyId = ?. |
AssetTagProperty |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last asset tag property in the ordered set where companyId = ?. |
AssetTagProperty |
fetchByPrimaryKey(long tagPropertyId)
Returns the asset tag property with the primary key or returns null if it could not be found. |
AssetTagProperty |
fetchByPrimaryKey(Serializable primaryKey)
Returns the asset tag property with the primary key or returns null if it could not be found. |
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. |
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. |
AssetTagProperty |
fetchByTagId_First(long tagId,
OrderByComparator orderByComparator)
Returns the first asset tag property in the ordered set where tagId = ?. |
AssetTagProperty |
fetchByTagId_Last(long tagId,
OrderByComparator orderByComparator)
Returns the last asset tag property in the ordered set where tagId = ?. |
List<AssetTagProperty> |
findAll()
Returns all the asset tag properties. |
List<AssetTagProperty> |
findAll(int start,
int end)
Returns a range of all the asset tag properties. |
List<AssetTagProperty> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset tag properties. |
AssetTagProperty |
findByC_K_First(long companyId,
String key,
OrderByComparator orderByComparator)
Returns the first asset tag property in the ordered set where companyId = ? and key = ?. |
AssetTagProperty |
findByC_K_Last(long companyId,
String key,
OrderByComparator orderByComparator)
Returns the last asset tag property in the ordered set where companyId = ? and key = ?. |
AssetTagProperty[] |
findByC_K_PrevAndNext(long tagPropertyId,
long companyId,
String key,
OrderByComparator orderByComparator)
Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ? and key = ?. |
List<AssetTagProperty> |
findByC_K(long companyId,
String key)
Returns all the asset tag properties where companyId = ? and key = ?. |
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 = ?. |
List<AssetTagProperty> |
findByC_K(long companyId,
String key,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset tag properties where companyId = ? and key = ?. |
AssetTagProperty |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first asset tag property in the ordered set where companyId = ?. |
AssetTagProperty |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last asset tag property in the ordered set where companyId = ?. |
AssetTagProperty[] |
findByCompanyId_PrevAndNext(long tagPropertyId,
long companyId,
OrderByComparator orderByComparator)
Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ?. |
List<AssetTagProperty> |
findByCompanyId(long companyId)
Returns all the asset tag properties where companyId = ?. |
List<AssetTagProperty> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the asset tag properties where companyId = ?. |
List<AssetTagProperty> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset tag properties where companyId = ?. |
AssetTagProperty |
findByPrimaryKey(long tagPropertyId)
Returns the asset tag property with the primary key or throws a NoSuchTagPropertyException if it could not be found. |
AssetTagProperty |
findByPrimaryKey(Serializable primaryKey)
Returns the asset tag property with the primary key or throws a NoSuchModelException if it could not be found. |
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. |
AssetTagProperty |
findByTagId_First(long tagId,
OrderByComparator orderByComparator)
Returns the first asset tag property in the ordered set where tagId = ?. |
AssetTagProperty |
findByTagId_Last(long tagId,
OrderByComparator orderByComparator)
Returns the last asset tag property in the ordered set where tagId = ?. |
AssetTagProperty[] |
findByTagId_PrevAndNext(long tagPropertyId,
long tagId,
OrderByComparator orderByComparator)
Returns the asset tag properties before and after the current asset tag property in the ordered set where tagId = ?. |
List<AssetTagProperty> |
findByTagId(long tagId)
Returns all the asset tag properties where tagId = ?. |
List<AssetTagProperty> |
findByTagId(long tagId,
int start,
int end)
Returns a range of all the asset tag properties where tagId = ?. |
List<AssetTagProperty> |
findByTagId(long tagId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset tag properties where tagId = ?. |
protected Set<String> |
getBadColumnNames()
|
protected AssetTagProperty |
getByC_K_PrevAndNext(Session session,
AssetTagProperty assetTagProperty,
long companyId,
String key,
OrderByComparator orderByComparator,
boolean previous)
|
protected AssetTagProperty |
getByCompanyId_PrevAndNext(Session session,
AssetTagProperty assetTagProperty,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected AssetTagProperty |
getByTagId_PrevAndNext(Session session,
AssetTagProperty assetTagProperty,
long tagId,
OrderByComparator orderByComparator,
boolean previous)
|
AssetTagProperty |
remove(long tagPropertyId)
Removes the asset tag property with the primary key from the database. |
AssetTagProperty |
remove(Serializable primaryKey)
Removes the asset tag property with the primary key from the database. |
void |
removeAll()
Removes all the asset tag properties from the database. |
void |
removeByC_K(long companyId,
String key)
Removes all the asset tag properties where companyId = ? and key = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the asset tag properties where companyId = ? from the database. |
AssetTagProperty |
removeByT_K(long tagId,
String key)
Removes the asset tag property where tagId = ? and key = ? from the database. |
void |
removeByTagId(long tagId)
Removes all the asset tag properties where tagId = ? from the database. |
protected AssetTagProperty |
removeImpl(AssetTagProperty assetTagProperty)
Removes the model instance from the database. |
protected AssetTagProperty |
toUnwrappedModel(AssetTagProperty assetTagProperty)
|
AssetTagProperty |
updateImpl(AssetTagProperty assetTagProperty)
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, 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_TAGID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TAGID
public static final FinderPath FINDER_PATH_COUNT_BY_TAGID
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_T_K
public static final FinderPath FINDER_PATH_COUNT_BY_T_K
Constructor Detail |
---|
public AssetTagPropertyPersistenceImpl()
Method Detail |
---|
public List<AssetTagProperty> findByCompanyId(long companyId) throws SystemException
findByCompanyId
in interface AssetTagPropertyPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findByCompanyId(long companyId, int start, int end) throws SystemException
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.
findByCompanyId
in interface AssetTagPropertyPersistence
companyId
- the company IDstart
- the lower bound of the range of asset tag propertiesend
- the upper bound of the range of asset tag properties (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByCompanyId
in interface AssetTagPropertyPersistence
companyId
- the company IDstart
- the lower bound of the range of asset tag propertiesend
- the upper bound of the range of asset tag properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic AssetTagProperty findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchTagPropertyException, SystemException
findByCompanyId_First
in interface AssetTagPropertyPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTagPropertyException
- if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByCompanyId_First
in interface AssetTagPropertyPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchTagPropertyException, SystemException
findByCompanyId_Last
in interface AssetTagPropertyPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTagPropertyException
- if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByCompanyId_Last
in interface AssetTagPropertyPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty[] findByCompanyId_PrevAndNext(long tagPropertyId, long companyId, OrderByComparator orderByComparator) throws NoSuchTagPropertyException, SystemException
findByCompanyId_PrevAndNext
in interface AssetTagPropertyPersistence
tagPropertyId
- the primary key of the current asset tag propertycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTagPropertyException
- if a asset tag property with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetTagProperty getByCompanyId_PrevAndNext(Session session, AssetTagProperty assetTagProperty, long companyId, OrderByComparator orderByComparator, boolean previous)
public void removeByCompanyId(long companyId) throws SystemException
removeByCompanyId
in interface AssetTagPropertyPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic int countByCompanyId(long companyId) throws SystemException
countByCompanyId
in interface AssetTagPropertyPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findByTagId(long tagId) throws SystemException
findByTagId
in interface AssetTagPropertyPersistence
tagId
- the tag ID
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findByTagId(long tagId, int start, int end) throws SystemException
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.
findByTagId
in interface AssetTagPropertyPersistence
tagId
- the tag IDstart
- the lower bound of the range of asset tag propertiesend
- the upper bound of the range of asset tag properties (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findByTagId(long tagId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByTagId
in interface AssetTagPropertyPersistence
tagId
- the tag IDstart
- the lower bound of the range of asset tag propertiesend
- the upper bound of the range of asset tag properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic AssetTagProperty findByTagId_First(long tagId, OrderByComparator orderByComparator) throws NoSuchTagPropertyException, SystemException
findByTagId_First
in interface AssetTagPropertyPersistence
tagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTagPropertyException
- if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByTagId_First(long tagId, OrderByComparator orderByComparator) throws SystemException
fetchByTagId_First
in interface AssetTagPropertyPersistence
tagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty findByTagId_Last(long tagId, OrderByComparator orderByComparator) throws NoSuchTagPropertyException, SystemException
findByTagId_Last
in interface AssetTagPropertyPersistence
tagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTagPropertyException
- if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByTagId_Last(long tagId, OrderByComparator orderByComparator) throws SystemException
fetchByTagId_Last
in interface AssetTagPropertyPersistence
tagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty[] findByTagId_PrevAndNext(long tagPropertyId, long tagId, OrderByComparator orderByComparator) throws NoSuchTagPropertyException, SystemException
findByTagId_PrevAndNext
in interface AssetTagPropertyPersistence
tagPropertyId
- the primary key of the current asset tag propertytagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTagPropertyException
- if a asset tag property with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetTagProperty getByTagId_PrevAndNext(Session session, AssetTagProperty assetTagProperty, long tagId, OrderByComparator orderByComparator, boolean previous)
public void removeByTagId(long tagId) throws SystemException
removeByTagId
in interface AssetTagPropertyPersistence
tagId
- the tag ID
SystemException
- if a system exception occurredpublic int countByTagId(long tagId) throws SystemException
countByTagId
in interface AssetTagPropertyPersistence
tagId
- the tag ID
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findByC_K(long companyId, String key) throws SystemException
findByC_K
in interface AssetTagPropertyPersistence
companyId
- the company IDkey
- the key
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findByC_K(long companyId, String key, int start, int end) throws SystemException
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.
findByC_K
in interface AssetTagPropertyPersistence
companyId
- the company IDkey
- the keystart
- the lower bound of the range of asset tag propertiesend
- the upper bound of the range of asset tag properties (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findByC_K(long companyId, String key, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByC_K
in interface AssetTagPropertyPersistence
companyId
- the company IDkey
- the keystart
- the lower bound of the range of asset tag propertiesend
- the upper bound of the range of asset tag properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic AssetTagProperty findByC_K_First(long companyId, String key, OrderByComparator orderByComparator) throws NoSuchTagPropertyException, SystemException
findByC_K_First
in interface AssetTagPropertyPersistence
companyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTagPropertyException
- if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByC_K_First(long companyId, String key, OrderByComparator orderByComparator) throws SystemException
fetchByC_K_First
in interface AssetTagPropertyPersistence
companyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty findByC_K_Last(long companyId, String key, OrderByComparator orderByComparator) throws NoSuchTagPropertyException, SystemException
findByC_K_Last
in interface AssetTagPropertyPersistence
companyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTagPropertyException
- if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByC_K_Last(long companyId, String key, OrderByComparator orderByComparator) throws SystemException
fetchByC_K_Last
in interface AssetTagPropertyPersistence
companyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty[] findByC_K_PrevAndNext(long tagPropertyId, long companyId, String key, OrderByComparator orderByComparator) throws NoSuchTagPropertyException, SystemException
findByC_K_PrevAndNext
in interface AssetTagPropertyPersistence
tagPropertyId
- the primary key of the current asset tag propertycompanyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTagPropertyException
- if a asset tag property with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetTagProperty getByC_K_PrevAndNext(Session session, AssetTagProperty assetTagProperty, long companyId, String key, OrderByComparator orderByComparator, boolean previous)
public void removeByC_K(long companyId, String key) throws SystemException
removeByC_K
in interface AssetTagPropertyPersistence
companyId
- the company IDkey
- the key
SystemException
- if a system exception occurredpublic int countByC_K(long companyId, String key) throws SystemException
countByC_K
in interface AssetTagPropertyPersistence
companyId
- the company IDkey
- the key
SystemException
- if a system exception occurredpublic AssetTagProperty findByT_K(long tagId, String key) throws NoSuchTagPropertyException, SystemException
NoSuchTagPropertyException
if it could not be found.
findByT_K
in interface AssetTagPropertyPersistence
tagId
- the tag IDkey
- the key
NoSuchTagPropertyException
- if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByT_K(long tagId, String key) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByT_K
in interface AssetTagPropertyPersistence
tagId
- the tag IDkey
- the key
null
if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByT_K(long tagId, String key, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByT_K
in interface AssetTagPropertyPersistence
tagId
- the tag IDkey
- the keyretrieveFromCache
- whether to use the finder cache
null
if a matching asset tag property could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty removeByT_K(long tagId, String key) throws NoSuchTagPropertyException, SystemException
removeByT_K
in interface AssetTagPropertyPersistence
tagId
- the tag IDkey
- the key
SystemException
- if a system exception occurred
NoSuchTagPropertyException
public int countByT_K(long tagId, String key) throws SystemException
countByT_K
in interface AssetTagPropertyPersistence
tagId
- the tag IDkey
- the key
SystemException
- if a system exception occurredpublic void cacheResult(AssetTagProperty assetTagProperty)
cacheResult
in interface AssetTagPropertyPersistence
assetTagProperty
- the asset tag propertypublic void cacheResult(List<AssetTagProperty> assetTagProperties)
cacheResult
in interface AssetTagPropertyPersistence
assetTagProperties
- the asset tag propertiespublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<AssetTagProperty>
clearCache
in class BasePersistenceImpl<AssetTagProperty>
public void clearCache(AssetTagProperty assetTagProperty)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<AssetTagProperty>
clearCache
in class BasePersistenceImpl<AssetTagProperty>
assetTagProperty
- the instance of this model to clear the cache forpublic void clearCache(List<AssetTagProperty> assetTagProperties)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<AssetTagProperty>
clearCache
in class BasePersistenceImpl<AssetTagProperty>
assetTagProperties
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(AssetTagProperty assetTagProperty)
protected void clearUniqueFindersCache(AssetTagProperty assetTagProperty)
public AssetTagProperty create(long tagPropertyId)
create
in interface AssetTagPropertyPersistence
tagPropertyId
- the primary key for the new asset tag property
public AssetTagProperty remove(long tagPropertyId) throws NoSuchTagPropertyException, SystemException
remove
in interface AssetTagPropertyPersistence
tagPropertyId
- the primary key of the asset tag property
NoSuchTagPropertyException
- if a asset tag property with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty remove(Serializable primaryKey) throws NoSuchTagPropertyException, SystemException
remove
in interface BasePersistence<AssetTagProperty>
remove
in class BasePersistenceImpl<AssetTagProperty>
primaryKey
- the primary key of the asset tag property
NoSuchTagPropertyException
- if a asset tag property with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetTagProperty removeImpl(AssetTagProperty assetTagProperty) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<AssetTagProperty>
assetTagProperty
- the model instance to remove
SystemException
- if a system exception occurredpublic AssetTagProperty updateImpl(AssetTagProperty assetTagProperty) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface AssetTagPropertyPersistence
updateImpl
in class BasePersistenceImpl<AssetTagProperty>
assetTagProperty
- the model instance to update
SystemException
- if a system exception occurredprotected AssetTagProperty toUnwrappedModel(AssetTagProperty assetTagProperty)
public AssetTagProperty findByPrimaryKey(Serializable primaryKey) throws NoSuchTagPropertyException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<AssetTagProperty>
findByPrimaryKey
in class BasePersistenceImpl<AssetTagProperty>
primaryKey
- the primary key of the asset tag property
NoSuchTagPropertyException
- if a asset tag property with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty findByPrimaryKey(long tagPropertyId) throws NoSuchTagPropertyException, SystemException
NoSuchTagPropertyException
if it could not be found.
findByPrimaryKey
in interface AssetTagPropertyPersistence
tagPropertyId
- the primary key of the asset tag property
NoSuchTagPropertyException
- if a asset tag property with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<AssetTagProperty>
fetchByPrimaryKey
in class BasePersistenceImpl<AssetTagProperty>
primaryKey
- the primary key of the asset tag property
null
if a asset tag property with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetTagProperty fetchByPrimaryKey(long tagPropertyId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface AssetTagPropertyPersistence
tagPropertyId
- the primary key of the asset tag property
null
if a asset tag property with the primary key could not be found
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findAll() throws SystemException
findAll
in interface AssetTagPropertyPersistence
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findAll(int start, int end) throws SystemException
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.
findAll
in interface AssetTagPropertyPersistence
start
- the lower bound of the range of asset tag propertiesend
- the upper bound of the range of asset tag properties (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetTagProperty> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findAll
in interface AssetTagPropertyPersistence
start
- the lower bound of the range of asset tag propertiesend
- the upper bound of the range of asset tag properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface AssetTagPropertyPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface AssetTagPropertyPersistence
SystemException
- if a system exception occurredprotected Set<String> getBadColumnNames()
getBadColumnNames
in class BasePersistenceImpl<AssetTagProperty>
public void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |