|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<DDMTemplateLink>
com.liferay.portlet.dynamicdatamapping.service.persistence.impl.DDMTemplateLinkPersistenceImpl
@ProviderType public class DDMTemplateLinkPersistenceImpl
The persistence implementation for the d d m template link service.
Caching information and settings can be found in portal.properties
DDMTemplateLinkPersistence,
DDMTemplateLinkUtil| 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 |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID
public static final FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEID
public static final FinderPath FINDER_PATH_COUNT_BY_TEMPLATEID
public static final FinderPath FINDER_PATH_FETCH_BY_C_C
public static final FinderPath FINDER_PATH_COUNT_BY_C_C
| Constructor Detail |
|---|
public DDMTemplateLinkPersistenceImpl()
| Method Detail |
|---|
public List<DDMTemplateLink> findByClassNameId(long classNameId)
findByClassNameId in interface DDMTemplateLinkPersistenceclassNameId - the class name ID
public List<DDMTemplateLink> findByClassNameId(long classNameId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from 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.
findByClassNameId in interface DDMTemplateLinkPersistenceclassNameId - the class name IDstart - the lower bound of the range of d d m template linksend - the upper bound of the range of d d m template links (not inclusive)
public List<DDMTemplateLink> findByClassNameId(long classNameId,
int start,
int end,
OrderByComparator<DDMTemplateLink> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from 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.
findByClassNameId in interface DDMTemplateLinkPersistenceclassNameId - the class name IDstart - the lower bound of the range of d d m template linksend - the upper bound of the range of d d m template links (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public DDMTemplateLink findByClassNameId_First(long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator)
throws NoSuchTemplateLinkException
findByClassNameId_First in interface DDMTemplateLinkPersistenceclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateLinkException - if a matching d d m template link could not be found
public DDMTemplateLink fetchByClassNameId_First(long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator)
fetchByClassNameId_First in interface DDMTemplateLinkPersistenceclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m template link could not be found
public DDMTemplateLink findByClassNameId_Last(long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator)
throws NoSuchTemplateLinkException
findByClassNameId_Last in interface DDMTemplateLinkPersistenceclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateLinkException - if a matching d d m template link could not be found
public DDMTemplateLink fetchByClassNameId_Last(long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator)
fetchByClassNameId_Last in interface DDMTemplateLinkPersistenceclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m template link could not be found
public DDMTemplateLink[] findByClassNameId_PrevAndNext(long templateLinkId,
long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator)
throws NoSuchTemplateLinkException
findByClassNameId_PrevAndNext in interface DDMTemplateLinkPersistencetemplateLinkId - the primary key of the current d d m template linkclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be found
protected DDMTemplateLink getByClassNameId_PrevAndNext(Session session,
DDMTemplateLink ddmTemplateLink,
long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator,
boolean previous)
public void removeByClassNameId(long classNameId)
removeByClassNameId in interface DDMTemplateLinkPersistenceclassNameId - the class name IDpublic int countByClassNameId(long classNameId)
countByClassNameId in interface DDMTemplateLinkPersistenceclassNameId - the class name ID
public List<DDMTemplateLink> findByTemplateId(long templateId)
findByTemplateId in interface DDMTemplateLinkPersistencetemplateId - the template ID
public List<DDMTemplateLink> findByTemplateId(long templateId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from 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.
findByTemplateId in interface DDMTemplateLinkPersistencetemplateId - the template IDstart - the lower bound of the range of d d m template linksend - the upper bound of the range of d d m template links (not inclusive)
public List<DDMTemplateLink> findByTemplateId(long templateId,
int start,
int end,
OrderByComparator<DDMTemplateLink> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from 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.
findByTemplateId in interface DDMTemplateLinkPersistencetemplateId - the template IDstart - the lower bound of the range of d d m template linksend - the upper bound of the range of d d m template links (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public DDMTemplateLink findByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator)
throws NoSuchTemplateLinkException
findByTemplateId_First in interface DDMTemplateLinkPersistencetemplateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateLinkException - if a matching d d m template link could not be found
public DDMTemplateLink fetchByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator)
fetchByTemplateId_First in interface DDMTemplateLinkPersistencetemplateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m template link could not be found
public DDMTemplateLink findByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator)
throws NoSuchTemplateLinkException
findByTemplateId_Last in interface DDMTemplateLinkPersistencetemplateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateLinkException - if a matching d d m template link could not be found
public DDMTemplateLink fetchByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator)
fetchByTemplateId_Last in interface DDMTemplateLinkPersistencetemplateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m template link could not be found
public DDMTemplateLink[] findByTemplateId_PrevAndNext(long templateLinkId,
long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator)
throws NoSuchTemplateLinkException
findByTemplateId_PrevAndNext in interface DDMTemplateLinkPersistencetemplateLinkId - the primary key of the current d d m template linktemplateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be found
protected DDMTemplateLink getByTemplateId_PrevAndNext(Session session,
DDMTemplateLink ddmTemplateLink,
long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator,
boolean previous)
public void removeByTemplateId(long templateId)
removeByTemplateId in interface DDMTemplateLinkPersistencetemplateId - the template IDpublic int countByTemplateId(long templateId)
countByTemplateId in interface DDMTemplateLinkPersistencetemplateId - the template ID
public DDMTemplateLink findByC_C(long classNameId,
long classPK)
throws NoSuchTemplateLinkException
NoSuchTemplateLinkException if it could not be found.
findByC_C in interface DDMTemplateLinkPersistenceclassNameId - the class name IDclassPK - the class p k
NoSuchTemplateLinkException - if a matching d d m template link could not be found
public DDMTemplateLink fetchByC_C(long classNameId,
long classPK)
null if it could not be found. Uses the finder cache.
fetchByC_C in interface DDMTemplateLinkPersistenceclassNameId - the class name IDclassPK - the class p k
null if a matching d d m template link could not be found
public DDMTemplateLink fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByC_C in interface DDMTemplateLinkPersistenceclassNameId - the class name IDclassPK - the class p kretrieveFromCache - whether to use the finder cache
null if a matching d d m template link could not be found
public DDMTemplateLink removeByC_C(long classNameId,
long classPK)
throws NoSuchTemplateLinkException
removeByC_C in interface DDMTemplateLinkPersistenceclassNameId - the class name IDclassPK - the class p k
NoSuchTemplateLinkException
public int countByC_C(long classNameId,
long classPK)
countByC_C in interface DDMTemplateLinkPersistenceclassNameId - the class name IDclassPK - the class p k
public void cacheResult(DDMTemplateLink ddmTemplateLink)
cacheResult in interface DDMTemplateLinkPersistenceddmTemplateLink - the d d m template linkpublic void cacheResult(List<DDMTemplateLink> ddmTemplateLinks)
cacheResult in interface DDMTemplateLinkPersistenceddmTemplateLinks - the d d m template linkspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DDMTemplateLink>clearCache in class BasePersistenceImpl<DDMTemplateLink>public void clearCache(DDMTemplateLink ddmTemplateLink)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DDMTemplateLink>clearCache in class BasePersistenceImpl<DDMTemplateLink>ddmTemplateLink - the instance of this model to clear the cache forpublic void clearCache(List<DDMTemplateLink> ddmTemplateLinks)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<DDMTemplateLink>clearCache in class BasePersistenceImpl<DDMTemplateLink>ddmTemplateLinks - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DDMTemplateLink ddmTemplateLink)
protected void clearUniqueFindersCache(DDMTemplateLink ddmTemplateLink)
public DDMTemplateLink create(long templateLinkId)
create in interface DDMTemplateLinkPersistencetemplateLinkId - the primary key for the new d d m template link
public DDMTemplateLink remove(long templateLinkId)
throws NoSuchTemplateLinkException
remove in interface DDMTemplateLinkPersistencetemplateLinkId - the primary key of the d d m template link
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be found
public DDMTemplateLink remove(Serializable primaryKey)
throws NoSuchTemplateLinkException
remove in interface BasePersistence<DDMTemplateLink>remove in class BasePersistenceImpl<DDMTemplateLink>primaryKey - the primary key of the d d m template link
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be foundprotected DDMTemplateLink removeImpl(DDMTemplateLink ddmTemplateLink)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<DDMTemplateLink>ddmTemplateLink - the model instance to remove
public DDMTemplateLink updateImpl(DDMTemplateLink ddmTemplateLink)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface DDMTemplateLinkPersistenceupdateImpl in class BasePersistenceImpl<DDMTemplateLink>ddmTemplateLink - the model instance to update
protected DDMTemplateLink toUnwrappedModel(DDMTemplateLink ddmTemplateLink)
public DDMTemplateLink findByPrimaryKey(Serializable primaryKey)
throws NoSuchTemplateLinkException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<DDMTemplateLink>findByPrimaryKey in class BasePersistenceImpl<DDMTemplateLink>primaryKey - the primary key of the d d m template link
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be found
public DDMTemplateLink findByPrimaryKey(long templateLinkId)
throws NoSuchTemplateLinkException
NoSuchTemplateLinkException if it could not be found.
findByPrimaryKey in interface DDMTemplateLinkPersistencetemplateLinkId - the primary key of the d d m template link
NoSuchTemplateLinkException - if a d d m template link with the primary key could not be foundpublic DDMTemplateLink fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<DDMTemplateLink>fetchByPrimaryKey in class BasePersistenceImpl<DDMTemplateLink>primaryKey - the primary key of the d d m template link
null if a d d m template link with the primary key could not be foundpublic DDMTemplateLink fetchByPrimaryKey(long templateLinkId)
null if it could not be found.
fetchByPrimaryKey in interface DDMTemplateLinkPersistencetemplateLinkId - the primary key of the d d m template link
null if a d d m template link with the primary key could not be foundpublic Map<Serializable,DDMTemplateLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<DDMTemplateLink>fetchByPrimaryKeys in interface DDMTemplateLinkPersistencefetchByPrimaryKeys in class BasePersistenceImpl<DDMTemplateLink>public List<DDMTemplateLink> findAll()
findAll in interface DDMTemplateLinkPersistence
public List<DDMTemplateLink> findAll(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from 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.
findAll in interface DDMTemplateLinkPersistencestart - the lower bound of the range of d d m template linksend - the upper bound of the range of d d m template links (not inclusive)
public List<DDMTemplateLink> findAll(int start,
int end,
OrderByComparator<DDMTemplateLink> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from 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.
findAll in interface DDMTemplateLinkPersistencestart - the lower bound of the range of d d m template linksend - the upper bound of the range of d d m template links (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public void removeAll()
removeAll in interface DDMTemplateLinkPersistencepublic int countAll()
countAll in interface DDMTemplateLinkPersistencepublic void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||