Liferay 7.0-ce-b4

com.liferay.portlet.asset.service.persistence.impl
Class AssetLinkPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetLink>
      extended by com.liferay.portlet.asset.service.persistence.impl.AssetLinkPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<AssetLink>, AssetLinkPersistence

@ProviderType
public class AssetLinkPersistenceImpl
extends BasePersistenceImpl<AssetLink>
implements AssetLinkPersistence

The persistence implementation for the asset link service.

Caching information and settings can be found in portal.properties

See Also:
AssetLinkPersistence, AssetLinkUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  CompanyProvider companyProvider
           
protected  EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_E_E
           
static FinderPath FINDER_PATH_COUNT_BY_E_E_T
           
static FinderPath FINDER_PATH_COUNT_BY_E1
           
static FinderPath FINDER_PATH_COUNT_BY_E1_T
           
static FinderPath FINDER_PATH_COUNT_BY_E2
           
static FinderPath FINDER_PATH_COUNT_BY_E2_T
           
static FinderPath FINDER_PATH_FETCH_BY_E_E_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E_E
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E1
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E1_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E2
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E2_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E_E
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E1
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E1_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E2
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E2_T
           
protected  FinderCache finderCache
           
 
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
AssetLinkPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the asset link persistence.
 void cacheResult(AssetLink assetLink)
          Caches the asset link in the entity cache if it is enabled.
 void cacheResult(List<AssetLink> assetLinks)
          Caches the asset links in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(AssetLinkModelImpl assetLinkModelImpl, boolean isNew)
           
 void clearCache()
          Clears the cache for all asset links.
 void clearCache(AssetLink assetLink)
          Clears the cache for the asset link.
 void clearCache(List<AssetLink> assetLinks)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(AssetLinkModelImpl assetLinkModelImpl)
           
 int countAll()
          Returns the number of asset links.
 int countByE_E_T(long entryId1, long entryId2, int type)
          Returns the number of asset links where entryId1 = ? and entryId2 = ? and type = ?.
 int countByE_E(long entryId1, long entryId2)
          Returns the number of asset links where entryId1 = ? and entryId2 = ?.
 int countByE1_T(long entryId1, int type)
          Returns the number of asset links where entryId1 = ? and type = ?.
 int countByE1(long entryId1)
          Returns the number of asset links where entryId1 = ?.
 int countByE2_T(long entryId2, int type)
          Returns the number of asset links where entryId2 = ? and type = ?.
 int countByE2(long entryId2)
          Returns the number of asset links where entryId2 = ?.
 AssetLink create(long linkId)
          Creates a new asset link with the primary key.
 void destroy()
           
 AssetLink fetchByE_E_First(long entryId1, long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 AssetLink fetchByE_E_Last(long entryId1, long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 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.
 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.
 AssetLink fetchByE1_First(long entryId1, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ?.
 AssetLink fetchByE1_Last(long entryId1, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ?.
 AssetLink fetchByE1_T_First(long entryId1, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ? and type = ?.
 AssetLink fetchByE1_T_Last(long entryId1, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ? and type = ?.
 AssetLink fetchByE2_First(long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId2 = ?.
 AssetLink fetchByE2_Last(long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId2 = ?.
 AssetLink fetchByE2_T_First(long entryId2, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId2 = ? and type = ?.
 AssetLink fetchByE2_T_Last(long entryId2, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId2 = ? and type = ?.
 AssetLink fetchByPrimaryKey(long linkId)
          Returns the asset link with the primary key or returns null if it could not be found.
 AssetLink fetchByPrimaryKey(Serializable primaryKey)
          Returns the asset link with the primary key or returns null if it could not be found.
 Map<Serializable,AssetLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 List<AssetLink> findAll()
          Returns all the asset links.
 List<AssetLink> findAll(int start, int end)
          Returns a range of all the asset links.
 List<AssetLink> findAll(int start, int end, OrderByComparator<AssetLink> orderByComparator)
          Returns an ordered range of all the asset links.
 List<AssetLink> findAll(int start, int end, OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset links.
 AssetLink findByE_E_First(long entryId1, long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 AssetLink findByE_E_Last(long entryId1, long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 AssetLink[] findByE_E_PrevAndNext(long linkId, long entryId1, long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 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.
 List<AssetLink> findByE_E(long entryId1, long entryId2)
          Returns all the asset links where entryId1 = ? and entryId2 = ?.
 List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end)
          Returns a range of all the asset links where entryId1 = ? and entryId2 = ?.
 List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end, OrderByComparator<AssetLink> orderByComparator)
          Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.
 List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end, OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.
 AssetLink findByE1_First(long entryId1, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ?.
 AssetLink findByE1_Last(long entryId1, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ?.
 AssetLink[] findByE1_PrevAndNext(long linkId, long entryId1, OrderByComparator<AssetLink> orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId1 = ?.
 AssetLink findByE1_T_First(long entryId1, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ? and type = ?.
 AssetLink findByE1_T_Last(long entryId1, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ? and type = ?.
 AssetLink[] findByE1_T_PrevAndNext(long linkId, long entryId1, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and type = ?.
 List<AssetLink> findByE1_T(long entryId1, int type)
          Returns all the asset links where entryId1 = ? and type = ?.
 List<AssetLink> findByE1_T(long entryId1, int type, int start, int end)
          Returns a range of all the asset links where entryId1 = ? and type = ?.
 List<AssetLink> findByE1_T(long entryId1, int type, int start, int end, OrderByComparator<AssetLink> orderByComparator)
          Returns an ordered range of all the asset links where entryId1 = ? and type = ?.
 List<AssetLink> findByE1_T(long entryId1, int type, int start, int end, OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset links where entryId1 = ? and type = ?.
 List<AssetLink> findByE1(long entryId1)
          Returns all the asset links where entryId1 = ?.
 List<AssetLink> findByE1(long entryId1, int start, int end)
          Returns a range of all the asset links where entryId1 = ?.
 List<AssetLink> findByE1(long entryId1, int start, int end, OrderByComparator<AssetLink> orderByComparator)
          Returns an ordered range of all the asset links where entryId1 = ?.
 List<AssetLink> findByE1(long entryId1, int start, int end, OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset links where entryId1 = ?.
 AssetLink findByE2_First(long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId2 = ?.
 AssetLink findByE2_Last(long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId2 = ?.
 AssetLink[] findByE2_PrevAndNext(long linkId, long entryId2, OrderByComparator<AssetLink> orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId2 = ?.
 AssetLink findByE2_T_First(long entryId2, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the first asset link in the ordered set where entryId2 = ? and type = ?.
 AssetLink findByE2_T_Last(long entryId2, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the last asset link in the ordered set where entryId2 = ? and type = ?.
 AssetLink[] findByE2_T_PrevAndNext(long linkId, long entryId2, int type, OrderByComparator<AssetLink> orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId2 = ? and type = ?.
 List<AssetLink> findByE2_T(long entryId2, int type)
          Returns all the asset links where entryId2 = ? and type = ?.
 List<AssetLink> findByE2_T(long entryId2, int type, int start, int end)
          Returns a range of all the asset links where entryId2 = ? and type = ?.
 List<AssetLink> findByE2_T(long entryId2, int type, int start, int end, OrderByComparator<AssetLink> orderByComparator)
          Returns an ordered range of all the asset links where entryId2 = ? and type = ?.
 List<AssetLink> findByE2_T(long entryId2, int type, int start, int end, OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset links where entryId2 = ? and type = ?.
 List<AssetLink> findByE2(long entryId2)
          Returns all the asset links where entryId2 = ?.
 List<AssetLink> findByE2(long entryId2, int start, int end)
          Returns a range of all the asset links where entryId2 = ?.
 List<AssetLink> findByE2(long entryId2, int start, int end, OrderByComparator<AssetLink> orderByComparator)
          Returns an ordered range of all the asset links where entryId2 = ?.
 List<AssetLink> findByE2(long entryId2, int start, int end, OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset links where entryId2 = ?.
 AssetLink findByPrimaryKey(long linkId)
          Returns the asset link with the primary key or throws a NoSuchLinkException if it could not be found.
 AssetLink findByPrimaryKey(Serializable primaryKey)
          Returns the asset link with the primary key or throws a NoSuchModelException if it could not be found.
 Set<String> getBadColumnNames()
           
protected  AssetLink getByE_E_PrevAndNext(Session session, AssetLink assetLink, long entryId1, long entryId2, OrderByComparator<AssetLink> orderByComparator, boolean previous)
           
protected  AssetLink getByE1_PrevAndNext(Session session, AssetLink assetLink, long entryId1, OrderByComparator<AssetLink> orderByComparator, boolean previous)
           
protected  AssetLink getByE1_T_PrevAndNext(Session session, AssetLink assetLink, long entryId1, int type, OrderByComparator<AssetLink> orderByComparator, boolean previous)
           
protected  AssetLink getByE2_PrevAndNext(Session session, AssetLink assetLink, long entryId2, OrderByComparator<AssetLink> orderByComparator, boolean previous)
           
protected  AssetLink getByE2_T_PrevAndNext(Session session, AssetLink assetLink, long entryId2, int type, OrderByComparator<AssetLink> orderByComparator, boolean previous)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 AssetLink remove(long linkId)
          Removes the asset link with the primary key from the database.
 AssetLink remove(Serializable primaryKey)
          Removes the asset link with the primary key from the database.
 void removeAll()
          Removes all the asset links from the database.
 AssetLink removeByE_E_T(long entryId1, long entryId2, int type)
          Removes the asset link where entryId1 = ? and entryId2 = ? and type = ? from the database.
 void removeByE_E(long entryId1, long entryId2)
          Removes all the asset links where entryId1 = ? and entryId2 = ? from the database.
 void removeByE1_T(long entryId1, int type)
          Removes all the asset links where entryId1 = ? and type = ? from the database.
 void removeByE1(long entryId1)
          Removes all the asset links where entryId1 = ? from the database.
 void removeByE2_T(long entryId2, int type)
          Removes all the asset links where entryId2 = ? and type = ? from the database.
 void removeByE2(long entryId2)
          Removes all the asset links where entryId2 = ? from the database.
protected  AssetLink removeImpl(AssetLink assetLink)
          Removes the model instance from the database.
protected  AssetLink toUnwrappedModel(AssetLink assetLink)
           
 AssetLink updateImpl(AssetLink assetLink)
          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

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_E1

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E1

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E1

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E1

FINDER_PATH_COUNT_BY_E1

public static final FinderPath FINDER_PATH_COUNT_BY_E1

FINDER_PATH_WITH_PAGINATION_FIND_BY_E2

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E2

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E2

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E2

FINDER_PATH_COUNT_BY_E2

public static final FinderPath FINDER_PATH_COUNT_BY_E2

FINDER_PATH_WITH_PAGINATION_FIND_BY_E_E

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E_E

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E_E

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E_E

FINDER_PATH_COUNT_BY_E_E

public static final FinderPath FINDER_PATH_COUNT_BY_E_E

FINDER_PATH_WITH_PAGINATION_FIND_BY_E1_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E1_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E1_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E1_T

FINDER_PATH_COUNT_BY_E1_T

public static final FinderPath FINDER_PATH_COUNT_BY_E1_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_E2_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_E2_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E2_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_E2_T

FINDER_PATH_COUNT_BY_E2_T

public static final FinderPath FINDER_PATH_COUNT_BY_E2_T

FINDER_PATH_FETCH_BY_E_E_T

public static final FinderPath FINDER_PATH_FETCH_BY_E_E_T

FINDER_PATH_COUNT_BY_E_E_T

public static final FinderPath FINDER_PATH_COUNT_BY_E_E_T

companyProvider

@BeanReference(type=CompanyProviderWrapper.class)
protected CompanyProvider companyProvider

entityCache

protected EntityCache entityCache

finderCache

protected FinderCache finderCache
Constructor Detail

AssetLinkPersistenceImpl

public AssetLinkPersistenceImpl()
Method Detail

findByE1

public List<AssetLink> findByE1(long entryId1)
Returns all the asset links where entryId1 = ?.

Specified by:
findByE1 in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
Returns:
the matching asset links

findByE1

public List<AssetLink> findByE1(long entryId1,
                                int start,
                                int end)
Returns a range of all the asset links where entryId1 = ?.

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.

Specified by:
findByE1 in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links

findByE1

public List<AssetLink> findByE1(long entryId1,
                                int start,
                                int end,
                                OrderByComparator<AssetLink> orderByComparator)
Returns an ordered range of all the asset links where entryId1 = ?.

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.

Specified by:
findByE1 in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links

findByE1

public List<AssetLink> findByE1(long entryId1,
                                int start,
                                int end,
                                OrderByComparator<AssetLink> orderByComparator,
                                boolean retrieveFromCache)
Returns an ordered range of all the asset links where entryId1 = ?.

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.

Specified by:
findByE1 in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset links

findByE1_First

public AssetLink findByE1_First(long entryId1,
                                OrderByComparator<AssetLink> orderByComparator)
                         throws NoSuchLinkException
Returns the first asset link in the ordered set where entryId1 = ?.

Specified by:
findByE1_First in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE1_First

public AssetLink fetchByE1_First(long entryId1,
                                 OrderByComparator<AssetLink> orderByComparator)
Returns the first asset link in the ordered set where entryId1 = ?.

Specified by:
fetchByE1_First in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found

findByE1_Last

public AssetLink findByE1_Last(long entryId1,
                               OrderByComparator<AssetLink> orderByComparator)
                        throws NoSuchLinkException
Returns the last asset link in the ordered set where entryId1 = ?.

Specified by:
findByE1_Last in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE1_Last

public AssetLink fetchByE1_Last(long entryId1,
                                OrderByComparator<AssetLink> orderByComparator)
Returns the last asset link in the ordered set where entryId1 = ?.

Specified by:
fetchByE1_Last in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found

findByE1_PrevAndNext

public AssetLink[] findByE1_PrevAndNext(long linkId,
                                        long entryId1,
                                        OrderByComparator<AssetLink> orderByComparator)
                                 throws NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId1 = ?.

Specified by:
findByE1_PrevAndNext in interface AssetLinkPersistence
Parameters:
linkId - the primary key of the current asset link
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found

getByE1_PrevAndNext

protected AssetLink getByE1_PrevAndNext(Session session,
                                        AssetLink assetLink,
                                        long entryId1,
                                        OrderByComparator<AssetLink> orderByComparator,
                                        boolean previous)

removeByE1

public void removeByE1(long entryId1)
Removes all the asset links where entryId1 = ? from the database.

Specified by:
removeByE1 in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1

countByE1

public int countByE1(long entryId1)
Returns the number of asset links where entryId1 = ?.

Specified by:
countByE1 in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
Returns:
the number of matching asset links

findByE2

public List<AssetLink> findByE2(long entryId2)
Returns all the asset links where entryId2 = ?.

Specified by:
findByE2 in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
Returns:
the matching asset links

findByE2

public List<AssetLink> findByE2(long entryId2,
                                int start,
                                int end)
Returns a range of all the asset links where entryId2 = ?.

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.

Specified by:
findByE2 in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links

findByE2

public List<AssetLink> findByE2(long entryId2,
                                int start,
                                int end,
                                OrderByComparator<AssetLink> orderByComparator)
Returns an ordered range of all the asset links where entryId2 = ?.

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.

Specified by:
findByE2 in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links

findByE2

public List<AssetLink> findByE2(long entryId2,
                                int start,
                                int end,
                                OrderByComparator<AssetLink> orderByComparator,
                                boolean retrieveFromCache)
Returns an ordered range of all the asset links where entryId2 = ?.

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.

Specified by:
findByE2 in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset links

findByE2_First

public AssetLink findByE2_First(long entryId2,
                                OrderByComparator<AssetLink> orderByComparator)
                         throws NoSuchLinkException
Returns the first asset link in the ordered set where entryId2 = ?.

Specified by:
findByE2_First in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE2_First

public AssetLink fetchByE2_First(long entryId2,
                                 OrderByComparator<AssetLink> orderByComparator)
Returns the first asset link in the ordered set where entryId2 = ?.

Specified by:
fetchByE2_First in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found

findByE2_Last

public AssetLink findByE2_Last(long entryId2,
                               OrderByComparator<AssetLink> orderByComparator)
                        throws NoSuchLinkException
Returns the last asset link in the ordered set where entryId2 = ?.

Specified by:
findByE2_Last in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE2_Last

public AssetLink fetchByE2_Last(long entryId2,
                                OrderByComparator<AssetLink> orderByComparator)
Returns the last asset link in the ordered set where entryId2 = ?.

Specified by:
fetchByE2_Last in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found

findByE2_PrevAndNext

public AssetLink[] findByE2_PrevAndNext(long linkId,
                                        long entryId2,
                                        OrderByComparator<AssetLink> orderByComparator)
                                 throws NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId2 = ?.

Specified by:
findByE2_PrevAndNext in interface AssetLinkPersistence
Parameters:
linkId - the primary key of the current asset link
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found

getByE2_PrevAndNext

protected AssetLink getByE2_PrevAndNext(Session session,
                                        AssetLink assetLink,
                                        long entryId2,
                                        OrderByComparator<AssetLink> orderByComparator,
                                        boolean previous)

removeByE2

public void removeByE2(long entryId2)
Removes all the asset links where entryId2 = ? from the database.

Specified by:
removeByE2 in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2

countByE2

public int countByE2(long entryId2)
Returns the number of asset links where entryId2 = ?.

Specified by:
countByE2 in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
Returns:
the number of matching asset links

findByE_E

public List<AssetLink> findByE_E(long entryId1,
                                 long entryId2)
Returns all the asset links where entryId1 = ? and entryId2 = ?.

Specified by:
findByE_E in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
Returns:
the matching asset links

findByE_E

public List<AssetLink> findByE_E(long entryId1,
                                 long entryId2,
                                 int start,
                                 int end)
Returns a range of all the asset links where entryId1 = ? and entryId2 = ?.

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.

Specified by:
findByE_E in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links

findByE_E

public List<AssetLink> findByE_E(long entryId1,
                                 long entryId2,
                                 int start,
                                 int end,
                                 OrderByComparator<AssetLink> orderByComparator)
Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.

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.

Specified by:
findByE_E in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links

findByE_E

public List<AssetLink> findByE_E(long entryId1,
                                 long entryId2,
                                 int start,
                                 int end,
                                 OrderByComparator<AssetLink> orderByComparator,
                                 boolean retrieveFromCache)
Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.

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.

Specified by:
findByE_E in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset links

findByE_E_First

public AssetLink findByE_E_First(long entryId1,
                                 long entryId2,
                                 OrderByComparator<AssetLink> orderByComparator)
                          throws NoSuchLinkException
Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Specified by:
findByE_E_First in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE_E_First

public AssetLink fetchByE_E_First(long entryId1,
                                  long entryId2,
                                  OrderByComparator<AssetLink> orderByComparator)
Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Specified by:
fetchByE_E_First in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found

findByE_E_Last

public AssetLink findByE_E_Last(long entryId1,
                                long entryId2,
                                OrderByComparator<AssetLink> orderByComparator)
                         throws NoSuchLinkException
Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Specified by:
findByE_E_Last in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE_E_Last

public AssetLink fetchByE_E_Last(long entryId1,
                                 long entryId2,
                                 OrderByComparator<AssetLink> orderByComparator)
Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Specified by:
fetchByE_E_Last in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found

findByE_E_PrevAndNext

public AssetLink[] findByE_E_PrevAndNext(long linkId,
                                         long entryId1,
                                         long entryId2,
                                         OrderByComparator<AssetLink> orderByComparator)
                                  throws NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Specified by:
findByE_E_PrevAndNext in interface AssetLinkPersistence
Parameters:
linkId - the primary key of the current asset link
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found

getByE_E_PrevAndNext

protected AssetLink getByE_E_PrevAndNext(Session session,
                                         AssetLink assetLink,
                                         long entryId1,
                                         long entryId2,
                                         OrderByComparator<AssetLink> orderByComparator,
                                         boolean previous)

removeByE_E

public void removeByE_E(long entryId1,
                        long entryId2)
Removes all the asset links where entryId1 = ? and entryId2 = ? from the database.

Specified by:
removeByE_E in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2

countByE_E

public int countByE_E(long entryId1,
                      long entryId2)
Returns the number of asset links where entryId1 = ? and entryId2 = ?.

Specified by:
countByE_E in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
Returns:
the number of matching asset links

findByE1_T

public List<AssetLink> findByE1_T(long entryId1,
                                  int type)
Returns all the asset links where entryId1 = ? and type = ?.

Specified by:
findByE1_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type
Returns:
the matching asset links

findByE1_T

public List<AssetLink> findByE1_T(long entryId1,
                                  int type,
                                  int start,
                                  int end)
Returns a range of all the asset links where entryId1 = ? and type = ?.

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.

Specified by:
findByE1_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links

findByE1_T

public List<AssetLink> findByE1_T(long entryId1,
                                  int type,
                                  int start,
                                  int end,
                                  OrderByComparator<AssetLink> orderByComparator)
Returns an ordered range of all the asset links where entryId1 = ? and type = ?.

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.

Specified by:
findByE1_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links

findByE1_T

public List<AssetLink> findByE1_T(long entryId1,
                                  int type,
                                  int start,
                                  int end,
                                  OrderByComparator<AssetLink> orderByComparator,
                                  boolean retrieveFromCache)
Returns an ordered range of all the asset links where entryId1 = ? and type = ?.

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.

Specified by:
findByE1_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset links

findByE1_T_First

public AssetLink findByE1_T_First(long entryId1,
                                  int type,
                                  OrderByComparator<AssetLink> orderByComparator)
                           throws NoSuchLinkException
Returns the first asset link in the ordered set where entryId1 = ? and type = ?.

Specified by:
findByE1_T_First in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE1_T_First

public AssetLink fetchByE1_T_First(long entryId1,
                                   int type,
                                   OrderByComparator<AssetLink> orderByComparator)
Returns the first asset link in the ordered set where entryId1 = ? and type = ?.

Specified by:
fetchByE1_T_First in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found

findByE1_T_Last

public AssetLink findByE1_T_Last(long entryId1,
                                 int type,
                                 OrderByComparator<AssetLink> orderByComparator)
                          throws NoSuchLinkException
Returns the last asset link in the ordered set where entryId1 = ? and type = ?.

Specified by:
findByE1_T_Last in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE1_T_Last

public AssetLink fetchByE1_T_Last(long entryId1,
                                  int type,
                                  OrderByComparator<AssetLink> orderByComparator)
Returns the last asset link in the ordered set where entryId1 = ? and type = ?.

Specified by:
fetchByE1_T_Last in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found

findByE1_T_PrevAndNext

public AssetLink[] findByE1_T_PrevAndNext(long linkId,
                                          long entryId1,
                                          int type,
                                          OrderByComparator<AssetLink> orderByComparator)
                                   throws NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and type = ?.

Specified by:
findByE1_T_PrevAndNext in interface AssetLinkPersistence
Parameters:
linkId - the primary key of the current asset link
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found

getByE1_T_PrevAndNext

protected AssetLink getByE1_T_PrevAndNext(Session session,
                                          AssetLink assetLink,
                                          long entryId1,
                                          int type,
                                          OrderByComparator<AssetLink> orderByComparator,
                                          boolean previous)

removeByE1_T

public void removeByE1_T(long entryId1,
                         int type)
Removes all the asset links where entryId1 = ? and type = ? from the database.

Specified by:
removeByE1_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type

countByE1_T

public int countByE1_T(long entryId1,
                       int type)
Returns the number of asset links where entryId1 = ? and type = ?.

Specified by:
countByE1_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
type - the type
Returns:
the number of matching asset links

findByE2_T

public List<AssetLink> findByE2_T(long entryId2,
                                  int type)
Returns all the asset links where entryId2 = ? and type = ?.

Specified by:
findByE2_T in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type
Returns:
the matching asset links

findByE2_T

public List<AssetLink> findByE2_T(long entryId2,
                                  int type,
                                  int start,
                                  int end)
Returns a range of all the asset links where entryId2 = ? and type = ?.

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.

Specified by:
findByE2_T in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links

findByE2_T

public List<AssetLink> findByE2_T(long entryId2,
                                  int type,
                                  int start,
                                  int end,
                                  OrderByComparator<AssetLink> orderByComparator)
Returns an ordered range of all the asset links where entryId2 = ? and type = ?.

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.

Specified by:
findByE2_T in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links

findByE2_T

public List<AssetLink> findByE2_T(long entryId2,
                                  int type,
                                  int start,
                                  int end,
                                  OrderByComparator<AssetLink> orderByComparator,
                                  boolean retrieveFromCache)
Returns an ordered range of all the asset links where entryId2 = ? and type = ?.

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.

Specified by:
findByE2_T in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset links

findByE2_T_First

public AssetLink findByE2_T_First(long entryId2,
                                  int type,
                                  OrderByComparator<AssetLink> orderByComparator)
                           throws NoSuchLinkException
Returns the first asset link in the ordered set where entryId2 = ? and type = ?.

Specified by:
findByE2_T_First in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE2_T_First

public AssetLink fetchByE2_T_First(long entryId2,
                                   int type,
                                   OrderByComparator<AssetLink> orderByComparator)
Returns the first asset link in the ordered set where entryId2 = ? and type = ?.

Specified by:
fetchByE2_T_First in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found

findByE2_T_Last

public AssetLink findByE2_T_Last(long entryId2,
                                 int type,
                                 OrderByComparator<AssetLink> orderByComparator)
                          throws NoSuchLinkException
Returns the last asset link in the ordered set where entryId2 = ? and type = ?.

Specified by:
findByE2_T_Last in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE2_T_Last

public AssetLink fetchByE2_T_Last(long entryId2,
                                  int type,
                                  OrderByComparator<AssetLink> orderByComparator)
Returns the last asset link in the ordered set where entryId2 = ? and type = ?.

Specified by:
fetchByE2_T_Last in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found

findByE2_T_PrevAndNext

public AssetLink[] findByE2_T_PrevAndNext(long linkId,
                                          long entryId2,
                                          int type,
                                          OrderByComparator<AssetLink> orderByComparator)
                                   throws NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId2 = ? and type = ?.

Specified by:
findByE2_T_PrevAndNext in interface AssetLinkPersistence
Parameters:
linkId - the primary key of the current asset link
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found

getByE2_T_PrevAndNext

protected AssetLink getByE2_T_PrevAndNext(Session session,
                                          AssetLink assetLink,
                                          long entryId2,
                                          int type,
                                          OrderByComparator<AssetLink> orderByComparator,
                                          boolean previous)

removeByE2_T

public void removeByE2_T(long entryId2,
                         int type)
Removes all the asset links where entryId2 = ? and type = ? from the database.

Specified by:
removeByE2_T in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type

countByE2_T

public int countByE2_T(long entryId2,
                       int type)
Returns the number of asset links where entryId2 = ? and type = ?.

Specified by:
countByE2_T in interface AssetLinkPersistence
Parameters:
entryId2 - the entry id2
type - the type
Returns:
the number of matching asset links

findByE_E_T

public AssetLink findByE_E_T(long entryId1,
                             long entryId2,
                             int type)
                      throws NoSuchLinkException
Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or throws a NoSuchLinkException if it could not be found.

Specified by:
findByE_E_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
Returns:
the matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found

fetchByE_E_T

public 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. Uses the finder cache.

Specified by:
fetchByE_E_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
Returns:
the matching asset link, or null if a matching asset link could not be found

fetchByE_E_T

public 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.

Specified by:
fetchByE_E_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching asset link, or null if a matching asset link could not be found

removeByE_E_T

public AssetLink removeByE_E_T(long entryId1,
                               long entryId2,
                               int type)
                        throws NoSuchLinkException
Removes the asset link where entryId1 = ? and entryId2 = ? and type = ? from the database.

Specified by:
removeByE_E_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
Returns:
the asset link that was removed
Throws:
NoSuchLinkException

countByE_E_T

public int countByE_E_T(long entryId1,
                        long entryId2,
                        int type)
Returns the number of asset links where entryId1 = ? and entryId2 = ? and type = ?.

Specified by:
countByE_E_T in interface AssetLinkPersistence
Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
Returns:
the number of matching asset links

cacheResult

public void cacheResult(AssetLink assetLink)
Caches the asset link in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetLinkPersistence
Parameters:
assetLink - the asset link

cacheResult

public void cacheResult(List<AssetLink> assetLinks)
Caches the asset links in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetLinkPersistence
Parameters:
assetLinks - the asset links

clearCache

public void clearCache()
Clears the cache for all asset links.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetLink>
Overrides:
clearCache in class BasePersistenceImpl<AssetLink>

clearCache

public void clearCache(AssetLink assetLink)
Clears the cache for the asset link.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetLink>
Overrides:
clearCache in class BasePersistenceImpl<AssetLink>
Parameters:
assetLink - the instance of this model to clear the cache for

clearCache

public void clearCache(List<AssetLink> assetLinks)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetLink>
Overrides:
clearCache in class BasePersistenceImpl<AssetLink>
Parameters:
assetLinks - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(AssetLinkModelImpl assetLinkModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(AssetLinkModelImpl assetLinkModelImpl)

create

public AssetLink create(long linkId)
Creates a new asset link with the primary key. Does not add the asset link to the database.

Specified by:
create in interface AssetLinkPersistence
Parameters:
linkId - the primary key for the new asset link
Returns:
the new asset link

remove

public AssetLink remove(long linkId)
                 throws NoSuchLinkException
Removes the asset link with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface AssetLinkPersistence
Parameters:
linkId - the primary key of the asset link
Returns:
the asset link that was removed
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found

remove

public AssetLink remove(Serializable primaryKey)
                 throws NoSuchLinkException
Removes the asset link with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<AssetLink>
Overrides:
remove in class BasePersistenceImpl<AssetLink>
Parameters:
primaryKey - the primary key of the asset link
Returns:
the asset link that was removed
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found

removeImpl

protected AssetLink removeImpl(AssetLink assetLink)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<AssetLink>
Parameters:
assetLink - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public AssetLink updateImpl(AssetLink assetLink)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface AssetLinkPersistence
Overrides:
updateImpl in class BasePersistenceImpl<AssetLink>
Parameters:
assetLink - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected AssetLink toUnwrappedModel(AssetLink assetLink)

findByPrimaryKey

public AssetLink findByPrimaryKey(Serializable primaryKey)
                           throws NoSuchLinkException
Returns the asset link with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<AssetLink>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<AssetLink>
Parameters:
primaryKey - the primary key of the asset link
Returns:
the asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found

findByPrimaryKey

public AssetLink findByPrimaryKey(long linkId)
                           throws NoSuchLinkException
Returns the asset link with the primary key or throws a NoSuchLinkException if it could not be found.

Specified by:
findByPrimaryKey in interface AssetLinkPersistence
Parameters:
linkId - the primary key of the asset link
Returns:
the asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found

fetchByPrimaryKey

public AssetLink fetchByPrimaryKey(Serializable primaryKey)
Returns the asset link with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<AssetLink>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<AssetLink>
Parameters:
primaryKey - the primary key of the asset link
Returns:
the asset link, or null if a asset link with the primary key could not be found

fetchByPrimaryKey

public AssetLink fetchByPrimaryKey(long linkId)
Returns the asset link with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface AssetLinkPersistence
Parameters:
linkId - the primary key of the asset link
Returns:
the asset link, or null if a asset link with the primary key could not be found

fetchByPrimaryKeys

public Map<Serializable,AssetLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<AssetLink>
Specified by:
fetchByPrimaryKeys in interface AssetLinkPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<AssetLink>

findAll

public List<AssetLink> findAll()
Returns all the asset links.

Specified by:
findAll in interface AssetLinkPersistence
Returns:
the asset links

findAll

public List<AssetLink> findAll(int start,
                               int end)
Returns a range of all the asset links.

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.

Specified by:
findAll in interface AssetLinkPersistence
Parameters:
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of asset links

findAll

public List<AssetLink> findAll(int start,
                               int end,
                               OrderByComparator<AssetLink> orderByComparator)
Returns an ordered range of all the asset links.

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.

Specified by:
findAll in interface AssetLinkPersistence
Parameters:
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset links

findAll

public List<AssetLink> findAll(int start,
                               int end,
                               OrderByComparator<AssetLink> orderByComparator,
                               boolean retrieveFromCache)
Returns an ordered range of all the asset links.

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.

Specified by:
findAll in interface AssetLinkPersistence
Parameters:
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of asset links

removeAll

public void removeAll()
Removes all the asset links from the database.

Specified by:
removeAll in interface AssetLinkPersistence

countAll

public int countAll()
Returns the number of asset links.

Specified by:
countAll in interface AssetLinkPersistence
Returns:
the number of asset links

getBadColumnNames

public Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<AssetLink>
Specified by:
getBadColumnNames in interface AssetLinkPersistence
Overrides:
getBadColumnNames in class BasePersistenceImpl<AssetLink>

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class BasePersistenceImpl<AssetLink>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the asset link persistence.


destroy

public void destroy()

Liferay 7.0-ce-b4