|
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.portlet.asset.service.persistence.AssetLinkUtil
@ProviderType public class AssetLinkUtil
The persistence utility for the asset link service. This utility wraps AssetLinkPersistenceImpl
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
AssetLinkPersistence
,
AssetLinkPersistenceImpl
Constructor Summary | |
---|---|
AssetLinkUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(AssetLink assetLink)
Caches the asset link in the entity cache if it is enabled. |
static void |
cacheResult(List<AssetLink> assetLinks)
Caches the asset links in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(AssetLink assetLink)
|
static int |
countAll()
Returns the number of asset links. |
static int |
countByE_E_T(long entryId1,
long entryId2,
int type)
Returns the number of asset links where entryId1 = ? and entryId2 = ? and type = ?. |
static int |
countByE_E(long entryId1,
long entryId2)
Returns the number of asset links where entryId1 = ? and entryId2 = ?. |
static int |
countByE1_T(long entryId1,
int type)
Returns the number of asset links where entryId1 = ? and type = ?. |
static int |
countByE1(long entryId1)
Returns the number of asset links where entryId1 = ?. |
static int |
countByE2_T(long entryId2,
int type)
Returns the number of asset links where entryId2 = ? and type = ?. |
static int |
countByE2(long entryId2)
Returns the number of asset links where entryId2 = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static AssetLink |
create(long linkId)
Creates a new asset link with the primary key. |
static AssetLink |
fetchByE_E_First(long entryId1,
long entryId2,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?. |
static AssetLink |
fetchByE_E_Last(long entryId1,
long entryId2,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?. |
static AssetLink |
fetchByE_E_T(long entryId1,
long entryId2,
int type)
Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns null if it could not be found. |
static AssetLink |
fetchByE_E_T(long entryId1,
long entryId2,
int type,
boolean retrieveFromCache)
Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache. |
static AssetLink |
fetchByE1_First(long entryId1,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId1 = ?. |
static AssetLink |
fetchByE1_Last(long entryId1,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId1 = ?. |
static AssetLink |
fetchByE1_T_First(long entryId1,
int type,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId1 = ? and type = ?. |
static AssetLink |
fetchByE1_T_Last(long entryId1,
int type,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId1 = ? and type = ?. |
static AssetLink |
fetchByE2_First(long entryId2,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId2 = ?. |
static AssetLink |
fetchByE2_Last(long entryId2,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId2 = ?. |
static AssetLink |
fetchByE2_T_First(long entryId2,
int type,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId2 = ? and type = ?. |
static AssetLink |
fetchByE2_T_Last(long entryId2,
int type,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId2 = ? and type = ?. |
static AssetLink |
fetchByPrimaryKey(long linkId)
Returns the asset link with the primary key or returns null if it could not be found. |
static List<AssetLink> |
findAll()
Returns all the asset links. |
static List<AssetLink> |
findAll(int start,
int end)
Returns a range of all the asset links. |
static List<AssetLink> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset links. |
static AssetLink |
findByE_E_First(long entryId1,
long entryId2,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?. |
static AssetLink |
findByE_E_Last(long entryId1,
long entryId2,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?. |
static AssetLink[] |
findByE_E_PrevAndNext(long linkId,
long entryId1,
long entryId2,
OrderByComparator orderByComparator)
Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ?. |
static AssetLink |
findByE_E_T(long entryId1,
long entryId2,
int type)
Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or throws a NoSuchLinkException if it could not be found. |
static List<AssetLink> |
findByE_E(long entryId1,
long entryId2)
Returns all the asset links where entryId1 = ? and entryId2 = ?. |
static List<AssetLink> |
findByE_E(long entryId1,
long entryId2,
int start,
int end)
Returns a range of all the asset links where entryId1 = ? and entryId2 = ?. |
static List<AssetLink> |
findByE_E(long entryId1,
long entryId2,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?. |
static AssetLink |
findByE1_First(long entryId1,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId1 = ?. |
static AssetLink |
findByE1_Last(long entryId1,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId1 = ?. |
static AssetLink[] |
findByE1_PrevAndNext(long linkId,
long entryId1,
OrderByComparator orderByComparator)
Returns the asset links before and after the current asset link in the ordered set where entryId1 = ?. |
static AssetLink |
findByE1_T_First(long entryId1,
int type,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId1 = ? and type = ?. |
static AssetLink |
findByE1_T_Last(long entryId1,
int type,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId1 = ? and type = ?. |
static AssetLink[] |
findByE1_T_PrevAndNext(long linkId,
long entryId1,
int type,
OrderByComparator orderByComparator)
Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and type = ?. |
static List<AssetLink> |
findByE1_T(long entryId1,
int type)
Returns all the asset links where entryId1 = ? and type = ?. |
static List<AssetLink> |
findByE1_T(long entryId1,
int type,
int start,
int end)
Returns a range of all the asset links where entryId1 = ? and type = ?. |
static List<AssetLink> |
findByE1_T(long entryId1,
int type,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset links where entryId1 = ? and type = ?. |
static List<AssetLink> |
findByE1(long entryId1)
Returns all the asset links where entryId1 = ?. |
static List<AssetLink> |
findByE1(long entryId1,
int start,
int end)
Returns a range of all the asset links where entryId1 = ?. |
static List<AssetLink> |
findByE1(long entryId1,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset links where entryId1 = ?. |
static AssetLink |
findByE2_First(long entryId2,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId2 = ?. |
static AssetLink |
findByE2_Last(long entryId2,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId2 = ?. |
static AssetLink[] |
findByE2_PrevAndNext(long linkId,
long entryId2,
OrderByComparator orderByComparator)
Returns the asset links before and after the current asset link in the ordered set where entryId2 = ?. |
static AssetLink |
findByE2_T_First(long entryId2,
int type,
OrderByComparator orderByComparator)
Returns the first asset link in the ordered set where entryId2 = ? and type = ?. |
static AssetLink |
findByE2_T_Last(long entryId2,
int type,
OrderByComparator orderByComparator)
Returns the last asset link in the ordered set where entryId2 = ? and type = ?. |
static AssetLink[] |
findByE2_T_PrevAndNext(long linkId,
long entryId2,
int type,
OrderByComparator orderByComparator)
Returns the asset links before and after the current asset link in the ordered set where entryId2 = ? and type = ?. |
static List<AssetLink> |
findByE2_T(long entryId2,
int type)
Returns all the asset links where entryId2 = ? and type = ?. |
static List<AssetLink> |
findByE2_T(long entryId2,
int type,
int start,
int end)
Returns a range of all the asset links where entryId2 = ? and type = ?. |
static List<AssetLink> |
findByE2_T(long entryId2,
int type,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset links where entryId2 = ? and type = ?. |
static List<AssetLink> |
findByE2(long entryId2)
Returns all the asset links where entryId2 = ?. |
static List<AssetLink> |
findByE2(long entryId2,
int start,
int end)
Returns a range of all the asset links where entryId2 = ?. |
static List<AssetLink> |
findByE2(long entryId2,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the asset links where entryId2 = ?. |
static AssetLink |
findByPrimaryKey(long linkId)
Returns the asset link with the primary key or throws a NoSuchLinkException if it could not be found. |
static List<AssetLink> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<AssetLink> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<AssetLink> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static AssetLinkPersistence |
getPersistence()
|
static AssetLink |
remove(long linkId)
Removes the asset link with the primary key from the database. |
static void |
removeAll()
Removes all the asset links from the database. |
static AssetLink |
removeByE_E_T(long entryId1,
long entryId2,
int type)
Removes the asset link where entryId1 = ? and entryId2 = ? and type = ? from the database. |
static void |
removeByE_E(long entryId1,
long entryId2)
Removes all the asset links where entryId1 = ? and entryId2 = ? from the database. |
static void |
removeByE1_T(long entryId1,
int type)
Removes all the asset links where entryId1 = ? and type = ? from the database. |
static void |
removeByE1(long entryId1)
Removes all the asset links where entryId1 = ? from the database. |
static void |
removeByE2_T(long entryId2,
int type)
Removes all the asset links where entryId2 = ? and type = ? from the database. |
static void |
removeByE2(long entryId2)
Removes all the asset links where entryId2 = ? from the database. |
void |
setPersistence(AssetLinkPersistence persistence)
Deprecated. As of 6.2.0 |
static AssetLink |
update(AssetLink assetLink)
|
static AssetLink |
update(AssetLink assetLink,
ServiceContext serviceContext)
|
static AssetLink |
updateImpl(AssetLink assetLink)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetLinkUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AssetLink assetLink)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<AssetLink> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<AssetLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<AssetLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AssetLink update(AssetLink assetLink) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static AssetLink update(AssetLink assetLink, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)
public static List<AssetLink> findByE1(long entryId1) throws SystemException
entryId1
- the entry id1
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE1(long entryId1, 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 AssetLinkModelImpl
. 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.
entryId1
- the entry id1start
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE1(long entryId1, 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 AssetLinkModelImpl
. 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.
entryId1
- the entry id1start
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetLink findByE1_First(long entryId1, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId1
- the entry id1orderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE1_First(long entryId1, OrderByComparator orderByComparator) throws SystemException
entryId1
- the entry id1orderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink findByE1_Last(long entryId1, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId1
- the entry id1orderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE1_Last(long entryId1, OrderByComparator orderByComparator) throws SystemException
entryId1
- the entry id1orderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink[] findByE1_PrevAndNext(long linkId, long entryId1, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
linkId
- the primary key of the current asset linkentryId1
- the entry id1orderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByE1(long entryId1) throws SystemException
entryId1
- the entry id1
SystemException
- if a system exception occurredpublic static int countByE1(long entryId1) throws SystemException
entryId1
- the entry id1
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE2(long entryId2) throws SystemException
entryId2
- the entry id2
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE2(long entryId2, 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 AssetLinkModelImpl
. 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.
entryId2
- the entry id2start
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE2(long entryId2, 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 AssetLinkModelImpl
. 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.
entryId2
- the entry id2start
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetLink findByE2_First(long entryId2, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE2_First(long entryId2, OrderByComparator orderByComparator) throws SystemException
entryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink findByE2_Last(long entryId2, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE2_Last(long entryId2, OrderByComparator orderByComparator) throws SystemException
entryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink[] findByE2_PrevAndNext(long linkId, long entryId2, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
linkId
- the primary key of the current asset linkentryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByE2(long entryId2) throws SystemException
entryId2
- the entry id2
SystemException
- if a system exception occurredpublic static int countByE2(long entryId2) throws SystemException
entryId2
- the entry id2
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE_E(long entryId1, long entryId2) throws SystemException
entryId1
- the entry id1entryId2
- the entry id2
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE_E(long entryId1, long entryId2, 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 AssetLinkModelImpl
. 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.
entryId1
- the entry id1entryId2
- the entry id2start
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE_E(long entryId1, long entryId2, 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 AssetLinkModelImpl
. 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.
entryId1
- the entry id1entryId2
- the entry id2start
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetLink findByE_E_First(long entryId1, long entryId2, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId1
- the entry id1entryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE_E_First(long entryId1, long entryId2, OrderByComparator orderByComparator) throws SystemException
entryId1
- the entry id1entryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink findByE_E_Last(long entryId1, long entryId2, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId1
- the entry id1entryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE_E_Last(long entryId1, long entryId2, OrderByComparator orderByComparator) throws SystemException
entryId1
- the entry id1entryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink[] findByE_E_PrevAndNext(long linkId, long entryId1, long entryId2, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
linkId
- the primary key of the current asset linkentryId1
- the entry id1entryId2
- the entry id2orderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByE_E(long entryId1, long entryId2) throws SystemException
entryId1
- the entry id1entryId2
- the entry id2
SystemException
- if a system exception occurredpublic static int countByE_E(long entryId1, long entryId2) throws SystemException
entryId1
- the entry id1entryId2
- the entry id2
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE1_T(long entryId1, int type) throws SystemException
entryId1
- the entry id1type
- the type
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE1_T(long entryId1, int type, 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 AssetLinkModelImpl
. 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.
entryId1
- the entry id1type
- the typestart
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE1_T(long entryId1, int type, 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 AssetLinkModelImpl
. 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.
entryId1
- the entry id1type
- the typestart
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetLink findByE1_T_First(long entryId1, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId1
- the entry id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE1_T_First(long entryId1, int type, OrderByComparator orderByComparator) throws SystemException
entryId1
- the entry id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink findByE1_T_Last(long entryId1, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId1
- the entry id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE1_T_Last(long entryId1, int type, OrderByComparator orderByComparator) throws SystemException
entryId1
- the entry id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink[] findByE1_T_PrevAndNext(long linkId, long entryId1, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
linkId
- the primary key of the current asset linkentryId1
- the entry id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByE1_T(long entryId1, int type) throws SystemException
entryId1
- the entry id1type
- the type
SystemException
- if a system exception occurredpublic static int countByE1_T(long entryId1, int type) throws SystemException
entryId1
- the entry id1type
- the type
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE2_T(long entryId2, int type) throws SystemException
entryId2
- the entry id2type
- the type
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE2_T(long entryId2, int type, 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 AssetLinkModelImpl
. 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.
entryId2
- the entry id2type
- the typestart
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetLink> findByE2_T(long entryId2, int type, 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 AssetLinkModelImpl
. 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.
entryId2
- the entry id2type
- the typestart
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static AssetLink findByE2_T_First(long entryId2, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId2
- the entry id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE2_T_First(long entryId2, int type, OrderByComparator orderByComparator) throws SystemException
entryId2
- the entry id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink findByE2_T_Last(long entryId2, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
entryId2
- the entry id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE2_T_Last(long entryId2, int type, OrderByComparator orderByComparator) throws SystemException
entryId2
- the entry id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink[] findByE2_T_PrevAndNext(long linkId, long entryId2, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchLinkException
linkId
- the primary key of the current asset linkentryId2
- the entry id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchLinkException
- if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic static void removeByE2_T(long entryId2, int type) throws SystemException
entryId2
- the entry id2type
- the type
SystemException
- if a system exception occurredpublic static int countByE2_T(long entryId2, int type) throws SystemException
entryId2
- the entry id2type
- the type
SystemException
- if a system exception occurredpublic static AssetLink findByE_E_T(long entryId1, long entryId2, int type) throws SystemException, NoSuchLinkException
NoSuchLinkException
if it could not be found.
entryId1
- the entry id1entryId2
- the entry id2type
- the type
NoSuchLinkException
- if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE_E_T(long entryId1, long entryId2, int type) throws SystemException
null
if it could not be found. Uses the finder cache.
entryId1
- the entry id1entryId2
- the entry id2type
- the type
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByE_E_T(long entryId1, long entryId2, int type, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
entryId1
- the entry id1entryId2
- the entry id2type
- the typeretrieveFromCache
- whether to use the finder cache
null
if a matching asset link could not be found
SystemException
- if a system exception occurredpublic static AssetLink removeByE_E_T(long entryId1, long entryId2, int type) throws SystemException, NoSuchLinkException
entryId1
- the entry id1entryId2
- the entry id2type
- the type
SystemException
- if a system exception occurred
NoSuchLinkException
public static int countByE_E_T(long entryId1, long entryId2, int type) throws SystemException
entryId1
- the entry id1entryId2
- the entry id2type
- the type
SystemException
- if a system exception occurredpublic static void cacheResult(AssetLink assetLink)
assetLink
- the asset linkpublic static void cacheResult(List<AssetLink> assetLinks)
assetLinks
- the asset linkspublic static AssetLink create(long linkId)
linkId
- the primary key for the new asset link
public static AssetLink remove(long linkId) throws SystemException, NoSuchLinkException
linkId
- the primary key of the asset link
NoSuchLinkException
- if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic static AssetLink updateImpl(AssetLink assetLink) throws SystemException
SystemException
public static AssetLink findByPrimaryKey(long linkId) throws SystemException, NoSuchLinkException
NoSuchLinkException
if it could not be found.
linkId
- the primary key of the asset link
NoSuchLinkException
- if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic static AssetLink fetchByPrimaryKey(long linkId) throws SystemException
null
if it could not be found.
linkId
- the primary key of the asset link
null
if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<AssetLink> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<AssetLink> 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 AssetLinkModelImpl
. 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.
start
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)
SystemException
- if a system exception occurredpublic static List<AssetLink> 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 AssetLinkModelImpl
. 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.
start
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static AssetLinkPersistence getPersistence()
public void setPersistence(AssetLinkPersistence persistence)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |