Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.service.persistence.impl
Class DDMTemplateLinkPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DDMTemplateLink>
      extended by com.liferay.portlet.dynamicdatamapping.service.persistence.impl.DDMTemplateLinkPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<DDMTemplateLink>, DDMTemplateLinkPersistence

@ProviderType
public class DDMTemplateLinkPersistenceImpl
extends BasePersistenceImpl<DDMTemplateLink>
implements DDMTemplateLinkPersistence

The persistence implementation for the d d m template link service.

Caching information and settings can be found in portal.properties

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

Field Summary
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_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_COUNT_BY_TEMPLATEID
           
static FinderPath FINDER_PATH_FETCH_BY_C_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEID
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
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
DDMTemplateLinkPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d d m template link persistence.
 void cacheResult(DDMTemplateLink ddmTemplateLink)
          Caches the d d m template link in the entity cache if it is enabled.
 void cacheResult(List<DDMTemplateLink> ddmTemplateLinks)
          Caches the d d m template links in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(DDMTemplateLink ddmTemplateLink)
           
 void clearCache()
          Clears the cache for all d d m template links.
 void clearCache(DDMTemplateLink ddmTemplateLink)
          Clears the cache for the d d m template link.
 void clearCache(List<DDMTemplateLink> ddmTemplateLinks)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(DDMTemplateLink ddmTemplateLink)
           
 int countAll()
          Returns the number of d d m template links.
 int countByC_C(long classNameId, long classPK)
          Returns the number of d d m template links where classNameId = ? and classPK = ?.
 int countByClassNameId(long classNameId)
          Returns the number of d d m template links where classNameId = ?.
 int countByTemplateId(long templateId)
          Returns the number of d d m template links where templateId = ?.
 DDMTemplateLink create(long templateLinkId)
          Creates a new d d m template link with the primary key.
 void destroy()
           
 DDMTemplateLink fetchByC_C(long classNameId, long classPK)
          Returns the d d m template link where classNameId = ? and classPK = ? or returns null if it could not be found.
 DDMTemplateLink fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
          Returns the d d m template link where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
 DDMTemplateLink fetchByClassNameId_First(long classNameId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the first d d m template link in the ordered set where classNameId = ?.
 DDMTemplateLink fetchByClassNameId_Last(long classNameId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the last d d m template link in the ordered set where classNameId = ?.
 DDMTemplateLink fetchByPrimaryKey(long templateLinkId)
          Returns the d d m template link with the primary key or returns null if it could not be found.
 DDMTemplateLink fetchByPrimaryKey(Serializable primaryKey)
          Returns the d d m template link with the primary key or returns null if it could not be found.
 Map<Serializable,DDMTemplateLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 DDMTemplateLink fetchByTemplateId_First(long templateId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the first d d m template link in the ordered set where templateId = ?.
 DDMTemplateLink fetchByTemplateId_Last(long templateId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the last d d m template link in the ordered set where templateId = ?.
 List<DDMTemplateLink> findAll()
          Returns all the d d m template links.
 List<DDMTemplateLink> findAll(int start, int end)
          Returns a range of all the d d m template links.
 List<DDMTemplateLink> findAll(int start, int end, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns an ordered range of all the d d m template links.
 DDMTemplateLink findByC_C(long classNameId, long classPK)
          Returns the d d m template link where classNameId = ? and classPK = ? or throws a NoSuchTemplateLinkException if it could not be found.
 DDMTemplateLink findByClassNameId_First(long classNameId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the first d d m template link in the ordered set where classNameId = ?.
 DDMTemplateLink findByClassNameId_Last(long classNameId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the last d d m template link in the ordered set where classNameId = ?.
 DDMTemplateLink[] findByClassNameId_PrevAndNext(long templateLinkId, long classNameId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the d d m template links before and after the current d d m template link in the ordered set where classNameId = ?.
 List<DDMTemplateLink> findByClassNameId(long classNameId)
          Returns all the d d m template links where classNameId = ?.
 List<DDMTemplateLink> findByClassNameId(long classNameId, int start, int end)
          Returns a range of all the d d m template links where classNameId = ?.
 List<DDMTemplateLink> findByClassNameId(long classNameId, int start, int end, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns an ordered range of all the d d m template links where classNameId = ?.
 DDMTemplateLink findByPrimaryKey(long templateLinkId)
          Returns the d d m template link with the primary key or throws a NoSuchTemplateLinkException if it could not be found.
 DDMTemplateLink findByPrimaryKey(Serializable primaryKey)
          Returns the d d m template link with the primary key or throws a NoSuchModelException if it could not be found.
 DDMTemplateLink findByTemplateId_First(long templateId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the first d d m template link in the ordered set where templateId = ?.
 DDMTemplateLink findByTemplateId_Last(long templateId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the last d d m template link in the ordered set where templateId = ?.
 DDMTemplateLink[] findByTemplateId_PrevAndNext(long templateLinkId, long templateId, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns the d d m template links before and after the current d d m template link in the ordered set where templateId = ?.
 List<DDMTemplateLink> findByTemplateId(long templateId)
          Returns all the d d m template links where templateId = ?.
 List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end)
          Returns a range of all the d d m template links where templateId = ?.
 List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, OrderByComparator<DDMTemplateLink> orderByComparator)
          Returns an ordered range of all the d d m template links where templateId = ?.
protected  DDMTemplateLink getByClassNameId_PrevAndNext(Session session, DDMTemplateLink ddmTemplateLink, long classNameId, OrderByComparator<DDMTemplateLink> orderByComparator, boolean previous)
           
protected  DDMTemplateLink getByTemplateId_PrevAndNext(Session session, DDMTemplateLink ddmTemplateLink, long templateId, OrderByComparator<DDMTemplateLink> orderByComparator, boolean previous)
           
 DDMTemplateLink remove(long templateLinkId)
          Removes the d d m template link with the primary key from the database.
 DDMTemplateLink remove(Serializable primaryKey)
          Removes the d d m template link with the primary key from the database.
 void removeAll()
          Removes all the d d m template links from the database.
 DDMTemplateLink removeByC_C(long classNameId, long classPK)
          Removes the d d m template link where classNameId = ? and classPK = ? from the database.
 void removeByClassNameId(long classNameId)
          Removes all the d d m template links where classNameId = ? from the database.
 void removeByTemplateId(long templateId)
          Removes all the d d m template links where templateId = ? from the database.
protected  DDMTemplateLink removeImpl(DDMTemplateLink ddmTemplateLink)
          Removes the model instance from the database.
protected  DDMTemplateLink toUnwrappedModel(DDMTemplateLink ddmTemplateLink)
           
 DDMTemplateLink updateImpl(DDMTemplateLink ddmTemplateLink)
          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, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

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_CLASSNAMEID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_COUNT_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID

FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEID

FINDER_PATH_COUNT_BY_TEMPLATEID

public static final FinderPath FINDER_PATH_COUNT_BY_TEMPLATEID

FINDER_PATH_FETCH_BY_C_C

public static final FinderPath FINDER_PATH_FETCH_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C
Constructor Detail

DDMTemplateLinkPersistenceImpl

public DDMTemplateLinkPersistenceImpl()
Method Detail

findByClassNameId

public List<DDMTemplateLink> findByClassNameId(long classNameId)
Returns all the d d m template links where classNameId = ?.

Specified by:
findByClassNameId in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
Returns:
the matching d d m template links

findByClassNameId

public List<DDMTemplateLink> findByClassNameId(long classNameId,
                                               int start,
                                               int end)
Returns a range of all the d d m template links where classNameId = ?.

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 DDMTemplateLinkModelImpl. 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:
findByClassNameId in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of d d m template links
end - the upper bound of the range of d d m template links (not inclusive)
Returns:
the range of matching d d m template links

findByClassNameId

public List<DDMTemplateLink> findByClassNameId(long classNameId,
                                               int start,
                                               int end,
                                               OrderByComparator<DDMTemplateLink> orderByComparator)
Returns an ordered range of all the d d m template links where classNameId = ?.

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 DDMTemplateLinkModelImpl. 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:
findByClassNameId in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of d d m template links
end - the upper bound of the range of d d m template links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m template links

findByClassNameId_First

public DDMTemplateLink findByClassNameId_First(long classNameId,
                                               OrderByComparator<DDMTemplateLink> orderByComparator)
                                        throws NoSuchTemplateLinkException
Returns the first d d m template link in the ordered set where classNameId = ?.

Specified by:
findByClassNameId_First in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template link
Throws:
NoSuchTemplateLinkException - if a matching d d m template link could not be found

fetchByClassNameId_First

public DDMTemplateLink fetchByClassNameId_First(long classNameId,
                                                OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where classNameId = ?.

Specified by:
fetchByClassNameId_First in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template link, or null if a matching d d m template link could not be found

findByClassNameId_Last

public DDMTemplateLink findByClassNameId_Last(long classNameId,
                                              OrderByComparator<DDMTemplateLink> orderByComparator)
                                       throws NoSuchTemplateLinkException
Returns the last d d m template link in the ordered set where classNameId = ?.

Specified by:
findByClassNameId_Last in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template link
Throws:
NoSuchTemplateLinkException - if a matching d d m template link could not be found

fetchByClassNameId_Last

public DDMTemplateLink fetchByClassNameId_Last(long classNameId,
                                               OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the last d d m template link in the ordered set where classNameId = ?.

Specified by:
fetchByClassNameId_Last in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template link, or null if a matching d d m template link could not be found

findByClassNameId_PrevAndNext

public DDMTemplateLink[] findByClassNameId_PrevAndNext(long templateLinkId,
                                                       long classNameId,
                                                       OrderByComparator<DDMTemplateLink> orderByComparator)
                                                throws NoSuchTemplateLinkException
Returns the d d m template links before and after the current d d m template link in the ordered set where classNameId = ?.

Specified by:
findByClassNameId_PrevAndNext in interface DDMTemplateLinkPersistence
Parameters:
templateLinkId - the primary key of the current d d m template link
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template link
Throws:
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be found

getByClassNameId_PrevAndNext

protected DDMTemplateLink getByClassNameId_PrevAndNext(Session session,
                                                       DDMTemplateLink ddmTemplateLink,
                                                       long classNameId,
                                                       OrderByComparator<DDMTemplateLink> orderByComparator,
                                                       boolean previous)

removeByClassNameId

public void removeByClassNameId(long classNameId)
Removes all the d d m template links where classNameId = ? from the database.

Specified by:
removeByClassNameId in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID

countByClassNameId

public int countByClassNameId(long classNameId)
Returns the number of d d m template links where classNameId = ?.

Specified by:
countByClassNameId in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
Returns:
the number of matching d d m template links

findByTemplateId

public List<DDMTemplateLink> findByTemplateId(long templateId)
Returns all the d d m template links where templateId = ?.

Specified by:
findByTemplateId in interface DDMTemplateLinkPersistence
Parameters:
templateId - the template ID
Returns:
the matching d d m template links

findByTemplateId

public List<DDMTemplateLink> findByTemplateId(long templateId,
                                              int start,
                                              int end)
Returns a range of all the d d m template links where templateId = ?.

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 DDMTemplateLinkModelImpl. 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:
findByTemplateId in interface DDMTemplateLinkPersistence
Parameters:
templateId - the template ID
start - the lower bound of the range of d d m template links
end - the upper bound of the range of d d m template links (not inclusive)
Returns:
the range of matching d d m template links

findByTemplateId

public List<DDMTemplateLink> findByTemplateId(long templateId,
                                              int start,
                                              int end,
                                              OrderByComparator<DDMTemplateLink> orderByComparator)
Returns an ordered range of all the d d m template links where templateId = ?.

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 DDMTemplateLinkModelImpl. 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:
findByTemplateId in interface DDMTemplateLinkPersistence
Parameters:
templateId - the template ID
start - the lower bound of the range of d d m template links
end - the upper bound of the range of d d m template links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m template links

findByTemplateId_First

public DDMTemplateLink findByTemplateId_First(long templateId,
                                              OrderByComparator<DDMTemplateLink> orderByComparator)
                                       throws NoSuchTemplateLinkException
Returns the first d d m template link in the ordered set where templateId = ?.

Specified by:
findByTemplateId_First in interface DDMTemplateLinkPersistence
Parameters:
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template link
Throws:
NoSuchTemplateLinkException - if a matching d d m template link could not be found

fetchByTemplateId_First

public DDMTemplateLink fetchByTemplateId_First(long templateId,
                                               OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where templateId = ?.

Specified by:
fetchByTemplateId_First in interface DDMTemplateLinkPersistence
Parameters:
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template link, or null if a matching d d m template link could not be found

findByTemplateId_Last

public DDMTemplateLink findByTemplateId_Last(long templateId,
                                             OrderByComparator<DDMTemplateLink> orderByComparator)
                                      throws NoSuchTemplateLinkException
Returns the last d d m template link in the ordered set where templateId = ?.

Specified by:
findByTemplateId_Last in interface DDMTemplateLinkPersistence
Parameters:
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template link
Throws:
NoSuchTemplateLinkException - if a matching d d m template link could not be found

fetchByTemplateId_Last

public DDMTemplateLink fetchByTemplateId_Last(long templateId,
                                              OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the last d d m template link in the ordered set where templateId = ?.

Specified by:
fetchByTemplateId_Last in interface DDMTemplateLinkPersistence
Parameters:
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template link, or null if a matching d d m template link could not be found

findByTemplateId_PrevAndNext

public DDMTemplateLink[] findByTemplateId_PrevAndNext(long templateLinkId,
                                                      long templateId,
                                                      OrderByComparator<DDMTemplateLink> orderByComparator)
                                               throws NoSuchTemplateLinkException
Returns the d d m template links before and after the current d d m template link in the ordered set where templateId = ?.

Specified by:
findByTemplateId_PrevAndNext in interface DDMTemplateLinkPersistence
Parameters:
templateLinkId - the primary key of the current d d m template link
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template link
Throws:
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be found

getByTemplateId_PrevAndNext

protected DDMTemplateLink getByTemplateId_PrevAndNext(Session session,
                                                      DDMTemplateLink ddmTemplateLink,
                                                      long templateId,
                                                      OrderByComparator<DDMTemplateLink> orderByComparator,
                                                      boolean previous)

removeByTemplateId

public void removeByTemplateId(long templateId)
Removes all the d d m template links where templateId = ? from the database.

Specified by:
removeByTemplateId in interface DDMTemplateLinkPersistence
Parameters:
templateId - the template ID

countByTemplateId

public int countByTemplateId(long templateId)
Returns the number of d d m template links where templateId = ?.

Specified by:
countByTemplateId in interface DDMTemplateLinkPersistence
Parameters:
templateId - the template ID
Returns:
the number of matching d d m template links

findByC_C

public DDMTemplateLink findByC_C(long classNameId,
                                 long classPK)
                          throws NoSuchTemplateLinkException
Returns the d d m template link where classNameId = ? and classPK = ? or throws a NoSuchTemplateLinkException if it could not be found.

Specified by:
findByC_C in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching d d m template link
Throws:
NoSuchTemplateLinkException - if a matching d d m template link could not be found

fetchByC_C

public DDMTemplateLink fetchByC_C(long classNameId,
                                  long classPK)
Returns the d d m template link where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_C in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching d d m template link, or null if a matching d d m template link could not be found

fetchByC_C

public DDMTemplateLink fetchByC_C(long classNameId,
                                  long classPK,
                                  boolean retrieveFromCache)
Returns the d d m template link where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_C in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m template link, or null if a matching d d m template link could not be found

removeByC_C

public DDMTemplateLink removeByC_C(long classNameId,
                                   long classPK)
                            throws NoSuchTemplateLinkException
Removes the d d m template link where classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_C in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the d d m template link that was removed
Throws:
NoSuchTemplateLinkException

countByC_C

public int countByC_C(long classNameId,
                      long classPK)
Returns the number of d d m template links where classNameId = ? and classPK = ?.

Specified by:
countByC_C in interface DDMTemplateLinkPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching d d m template links

cacheResult

public void cacheResult(DDMTemplateLink ddmTemplateLink)
Caches the d d m template link in the entity cache if it is enabled.

Specified by:
cacheResult in interface DDMTemplateLinkPersistence
Parameters:
ddmTemplateLink - the d d m template link

cacheResult

public void cacheResult(List<DDMTemplateLink> ddmTemplateLinks)
Caches the d d m template links in the entity cache if it is enabled.

Specified by:
cacheResult in interface DDMTemplateLinkPersistence
Parameters:
ddmTemplateLinks - the d d m template links

clearCache

public void clearCache()
Clears the cache for all d d m template links.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(DDMTemplateLink ddmTemplateLink)
Clears the cache for the d d m template link.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(List<DDMTemplateLink> ddmTemplateLinks)
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<DDMTemplateLink>
Overrides:
clearCache in class BasePersistenceImpl<DDMTemplateLink>
Parameters:
ddmTemplateLinks - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(DDMTemplateLink ddmTemplateLink)

clearUniqueFindersCache

protected void clearUniqueFindersCache(DDMTemplateLink ddmTemplateLink)

create

public DDMTemplateLink create(long templateLinkId)
Creates a new d d m template link with the primary key. Does not add the d d m template link to the database.

Specified by:
create in interface DDMTemplateLinkPersistence
Parameters:
templateLinkId - the primary key for the new d d m template link
Returns:
the new d d m template link

remove

public DDMTemplateLink remove(long templateLinkId)
                       throws NoSuchTemplateLinkException
Removes the d d m template link with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface DDMTemplateLinkPersistence
Parameters:
templateLinkId - the primary key of the d d m template link
Returns:
the d d m template link that was removed
Throws:
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be found

remove

public DDMTemplateLink remove(Serializable primaryKey)
                       throws NoSuchTemplateLinkException
Removes the d d m template link with the primary key from the database. Also notifies the appropriate model listeners.

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

removeImpl

protected DDMTemplateLink removeImpl(DDMTemplateLink ddmTemplateLink)
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<DDMTemplateLink>
Parameters:
ddmTemplateLink - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public DDMTemplateLink updateImpl(DDMTemplateLink ddmTemplateLink)
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 DDMTemplateLinkPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DDMTemplateLink>
Parameters:
ddmTemplateLink - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected DDMTemplateLink toUnwrappedModel(DDMTemplateLink ddmTemplateLink)

findByPrimaryKey

public DDMTemplateLink findByPrimaryKey(Serializable primaryKey)
                                 throws NoSuchTemplateLinkException
Returns the d d m template link with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<DDMTemplateLink>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DDMTemplateLink>
Parameters:
primaryKey - the primary key of the d d m template link
Returns:
the d d m template link
Throws:
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be found

findByPrimaryKey

public DDMTemplateLink findByPrimaryKey(long templateLinkId)
                                 throws NoSuchTemplateLinkException
Returns the d d m template link with the primary key or throws a NoSuchTemplateLinkException if it could not be found.

Specified by:
findByPrimaryKey in interface DDMTemplateLinkPersistence
Parameters:
templateLinkId - the primary key of the d d m template link
Returns:
the d d m template link
Throws:
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be found

fetchByPrimaryKey

public DDMTemplateLink fetchByPrimaryKey(Serializable primaryKey)
Returns the d d m template link with the primary key or returns null if it could not be found.

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

fetchByPrimaryKey

public DDMTemplateLink fetchByPrimaryKey(long templateLinkId)
Returns the d d m template link with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface DDMTemplateLinkPersistence
Parameters:
templateLinkId - the primary key of the d d m template link
Returns:
the d d m template link, or null if a d d m template link with the primary key could not be found

fetchByPrimaryKeys

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

findAll

public List<DDMTemplateLink> findAll()
Returns all the d d m template links.

Specified by:
findAll in interface DDMTemplateLinkPersistence
Returns:
the d d m template links

findAll

public List<DDMTemplateLink> findAll(int start,
                                     int end)
Returns a range of all the d d m template 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 DDMTemplateLinkModelImpl. 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 DDMTemplateLinkPersistence
Parameters:
start - the lower bound of the range of d d m template links
end - the upper bound of the range of d d m template links (not inclusive)
Returns:
the range of d d m template links

findAll

public List<DDMTemplateLink> findAll(int start,
                                     int end,
                                     OrderByComparator<DDMTemplateLink> orderByComparator)
Returns an ordered range of all the d d m template 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 DDMTemplateLinkModelImpl. 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 DDMTemplateLinkPersistence
Parameters:
start - the lower bound of the range of d d m template links
end - the upper bound of the range of d d m template links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m template links

removeAll

public void removeAll()
Removes all the d d m template links from the database.

Specified by:
removeAll in interface DDMTemplateLinkPersistence

countAll

public int countAll()
Returns the number of d d m template links.

Specified by:
countAll in interface DDMTemplateLinkPersistence
Returns:
the number of d d m template links

afterPropertiesSet

public void afterPropertiesSet()
Initializes the d d m template link persistence.


destroy

public void destroy()

Liferay 7.0-ce-m6