@ProviderType public interface DDMTemplateLinkPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<DDMTemplateLink>
Caching information and settings can be found in portal.properties
com.liferay.dynamic.data.mapping.service.persistence.impl.DDMTemplateLinkPersistenceImpl,
DDMTemplateLinkUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(DDMTemplateLink ddmTemplateLink)
Caches the d d m template link in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<DDMTemplateLink> ddmTemplateLinks)
Caches the d d m template links in the entity cache if it is enabled.
|
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.
|
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,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where classNameId = ?.
|
DDMTemplateLink |
fetchByClassNameId_Last(long classNameId,
com.liferay.portal.kernel.util.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. |
java.util.Map<java.io.Serializable,DDMTemplateLink> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
DDMTemplateLink |
fetchByTemplateId_First(long templateId,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where templateId = ?.
|
DDMTemplateLink |
fetchByTemplateId_Last(long templateId,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the last d d m template link in the ordered set where templateId = ?.
|
java.util.List<DDMTemplateLink> |
findAll()
Returns all the d d m template links.
|
java.util.List<DDMTemplateLink> |
findAll(int start,
int end)
Returns a range of all the d d m template links.
|
java.util.List<DDMTemplateLink> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns an ordered range of all the d d m template links.
|
java.util.List<DDMTemplateLink> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator,
boolean retrieveFromCache)
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,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where classNameId = ?.
|
DDMTemplateLink |
findByClassNameId_Last(long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the last d d m template link in the ordered set where classNameId = ?.
|
DDMTemplateLink[] |
findByClassNameId_PrevAndNext(long templateLinkId,
long classNameId,
com.liferay.portal.kernel.util.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 = ?.
|
java.util.List<DDMTemplateLink> |
findByClassNameId(long classNameId)
Returns all the d d m template links where classNameId = ?.
|
java.util.List<DDMTemplateLink> |
findByClassNameId(long classNameId,
int start,
int end)
Returns a range of all the d d m template links where classNameId = ?.
|
java.util.List<DDMTemplateLink> |
findByClassNameId(long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns an ordered range of all the d d m template links where classNameId = ?.
|
java.util.List<DDMTemplateLink> |
findByClassNameId(long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator,
boolean retrieveFromCache)
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 |
findByTemplateId_First(long templateId,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where templateId = ?.
|
DDMTemplateLink |
findByTemplateId_Last(long templateId,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the last d d m template link in the ordered set where templateId = ?.
|
DDMTemplateLink[] |
findByTemplateId_PrevAndNext(long templateLinkId,
long templateId,
com.liferay.portal.kernel.util.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 = ?.
|
java.util.List<DDMTemplateLink> |
findByTemplateId(long templateId)
Returns all the d d m template links where templateId = ?.
|
java.util.List<DDMTemplateLink> |
findByTemplateId(long templateId,
int start,
int end)
Returns a range of all the d d m template links where templateId = ?.
|
java.util.List<DDMTemplateLink> |
findByTemplateId(long templateId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
Returns an ordered range of all the d d m template links where templateId = ?.
|
java.util.List<DDMTemplateLink> |
findByTemplateId(long templateId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the d d m template links where templateId = ?.
|
DDMTemplateLink |
remove(long templateLinkId)
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.
|
DDMTemplateLink |
updateImpl(DDMTemplateLink ddmTemplateLink) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<DDMTemplateLink> findByClassNameId(long classNameId)
classNameId - the class name IDjava.util.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.
classNameId - 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)java.util.List<DDMTemplateLink> findByClassNameId(long classNameId, int start, int end, com.liferay.portal.kernel.util.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.
classNameId - 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)java.util.List<DDMTemplateLink> findByClassNameId(long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean retrieveFromCache)
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.
classNameId - 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)retrieveFromCache - whether to retrieve from the finder cacheDDMTemplateLink findByClassNameId_First(long classNameId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException
classNameId - 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 foundDDMTemplateLink fetchByClassNameId_First(long classNameId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
classNameId - 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 foundDDMTemplateLink findByClassNameId_Last(long classNameId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException
classNameId - 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 foundDDMTemplateLink fetchByClassNameId_Last(long classNameId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
classNameId - 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 foundDDMTemplateLink[] findByClassNameId_PrevAndNext(long templateLinkId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException
templateLinkId - 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 foundvoid removeByClassNameId(long classNameId)
classNameId - the class name IDint countByClassNameId(long classNameId)
classNameId - the class name IDjava.util.List<DDMTemplateLink> findByTemplateId(long templateId)
templateId - the template IDjava.util.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.
templateId - 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)java.util.List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.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.
templateId - 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)java.util.List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean retrieveFromCache)
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.
templateId - 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)retrieveFromCache - whether to retrieve from the finder cacheDDMTemplateLink findByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException
templateId - the template IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateLinkException - if a matching d d m template link could not be foundDDMTemplateLink fetchByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
templateId - the template IDorderByComparator - the comparator to order the set by (optionally null)null if a matching d d m template link could not be foundDDMTemplateLink findByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException
templateId - the template IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateLinkException - if a matching d d m template link could not be foundDDMTemplateLink fetchByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
templateId - the template IDorderByComparator - the comparator to order the set by (optionally null)null if a matching d d m template link could not be foundDDMTemplateLink[] findByTemplateId_PrevAndNext(long templateLinkId, long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException
templateLinkId - 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 foundvoid removeByTemplateId(long templateId)
templateId - the template IDint countByTemplateId(long templateId)
templateId - the template IDDDMTemplateLink findByC_C(long classNameId, long classPK) throws NoSuchTemplateLinkException
NoSuchTemplateLinkException if it could not be found.classNameId - the class name IDclassPK - the class p kNoSuchTemplateLinkException - if a matching d d m template link could not be foundDDMTemplateLink fetchByC_C(long classNameId, long classPK)
null if it could not be found. Uses the finder cache.classNameId - the class name IDclassPK - the class p knull if a matching d d m template link could not be foundDDMTemplateLink fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.classNameId - the class name IDclassPK - the class p kretrieveFromCache - whether to retrieve from the finder cachenull if a matching d d m template link could not be foundDDMTemplateLink removeByC_C(long classNameId, long classPK) throws NoSuchTemplateLinkException
classNameId - the class name IDclassPK - the class p kNoSuchTemplateLinkExceptionint countByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class p kvoid cacheResult(DDMTemplateLink ddmTemplateLink)
ddmTemplateLink - the d d m template linkvoid cacheResult(java.util.List<DDMTemplateLink> ddmTemplateLinks)
ddmTemplateLinks - the d d m template linksDDMTemplateLink create(long templateLinkId)
templateLinkId - the primary key for the new d d m template linkDDMTemplateLink remove(long templateLinkId) throws NoSuchTemplateLinkException
templateLinkId - the primary key of the d d m template linkNoSuchTemplateLinkException - if a d d m template link with the primary key could not be foundDDMTemplateLink updateImpl(DDMTemplateLink ddmTemplateLink)
DDMTemplateLink findByPrimaryKey(long templateLinkId) throws NoSuchTemplateLinkException
NoSuchTemplateLinkException if it could not be found.templateLinkId - the primary key of the d d m template linkNoSuchTemplateLinkException - if a d d m template link with the primary key could not be foundDDMTemplateLink fetchByPrimaryKey(long templateLinkId)
null if it could not be found.templateLinkId - the primary key of the d d m template linknull if a d d m template link with the primary key could not be foundjava.util.Map<java.io.Serializable,DDMTemplateLink> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<DDMTemplateLink>java.util.List<DDMTemplateLink> findAll()
java.util.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.
start - 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)java.util.List<DDMTemplateLink> findAll(int start, int end, com.liferay.portal.kernel.util.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.
start - 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)java.util.List<DDMTemplateLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean retrieveFromCache)
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.
start - 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)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()