Interface DDMTemplateLinkPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DDMTemplateLink>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMTemplateLink>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(DDMTemplateLink ddmTemplateLink) Caches the ddm template link in the entity cache if it is enabled.void
cacheResult
(List<DDMTemplateLink> ddmTemplateLinks) Caches the ddm template links in the entity cache if it is enabled.int
countAll()
Returns the number of ddm template links.int
countByC_C
(long classNameId, long classPK) Returns the number of ddm template links where classNameId = ? and classPK = ?.int
countByTemplateId
(long templateId) Returns the number of ddm template links where templateId = ?.create
(long templateLinkId) Creates a new ddm template link with the primary key.fetchByC_C
(long classNameId, long classPK) Returns the ddm template link where classNameId = ? and classPK = ? or returnsnull
if it could not be found.fetchByC_C
(long classNameId, long classPK, boolean useFinderCache) Returns the ddm template link where classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long templateLinkId) Returns the ddm template link with the primary key or returnsnull
if it could not be found.fetchByTemplateId_First
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the first ddm template link in the ordered set where templateId = ?.fetchByTemplateId_Last
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the last ddm template link in the ordered set where templateId = ?.findAll()
Returns all the ddm template links.findAll
(int start, int end) Returns a range of all the ddm template links.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns an ordered range of all the ddm template links.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template links.findByC_C
(long classNameId, long classPK) Returns the ddm template link where classNameId = ? and classPK = ? or throws aNoSuchTemplateLinkException
if it could not be found.findByPrimaryKey
(long templateLinkId) Returns the ddm template link with the primary key or throws aNoSuchTemplateLinkException
if it could not be found.findByTemplateId
(long templateId) Returns all the ddm template links where templateId = ?.findByTemplateId
(long templateId, int start, int end) Returns a range of all the ddm template links where templateId = ?.findByTemplateId
(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns an ordered range of all the ddm template links where templateId = ?.findByTemplateId
(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template links where templateId = ?.findByTemplateId_First
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the first ddm template link in the ordered set where templateId = ?.findByTemplateId_Last
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the last ddm template link in the ordered set where templateId = ?.findByTemplateId_PrevAndNext
(long templateLinkId, long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the ddm template links before and after the current ddm template link in the ordered set where templateId = ?.remove
(long templateLinkId) Removes the ddm template link with the primary key from the database.void
Removes all the ddm template links from the database.removeByC_C
(long classNameId, long classPK) Removes the ddm template link where classNameId = ? and classPK = ? from the database.void
removeByTemplateId
(long templateId) Removes all the ddm template links where templateId = ? from the database.updateImpl
(DDMTemplateLink ddmTemplateLink) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByTemplateId
Returns all the ddm template links where templateId = ?.- Parameters:
templateId
- the template ID- Returns:
- the matching ddm template links
-
findByTemplateId
Returns a range of all the ddm template links where templateId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateLinkModelImpl
.- Parameters:
templateId
- the template IDstart
- the lower bound of the range of ddm template linksend
- the upper bound of the range of ddm template links (not inclusive)- Returns:
- the range of matching ddm template links
-
findByTemplateId
List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns an ordered range of all the ddm template links where templateId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateLinkModelImpl
.- Parameters:
templateId
- the template IDstart
- the lower bound of the range of ddm template linksend
- the upper bound of the range of ddm template links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm template links
-
findByTemplateId
List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template links where templateId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateLinkModelImpl
.- Parameters:
templateId
- the template IDstart
- the lower bound of the range of ddm template linksend
- the upper bound of the range of ddm template links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm template links
-
findByTemplateId_First
DDMTemplateLink findByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException Returns the first ddm template link in the ordered set where templateId = ?.- Parameters:
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm template link
- Throws:
NoSuchTemplateLinkException
- if a matching ddm template link could not be found
-
fetchByTemplateId_First
DDMTemplateLink fetchByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the first ddm template link in the ordered set where templateId = ?.- Parameters:
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm template link, or
null
if a matching ddm template link could not be found
-
findByTemplateId_Last
DDMTemplateLink findByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException Returns the last ddm template link in the ordered set where templateId = ?.- Parameters:
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm template link
- Throws:
NoSuchTemplateLinkException
- if a matching ddm template link could not be found
-
fetchByTemplateId_Last
DDMTemplateLink fetchByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the last ddm template link in the ordered set where templateId = ?.- Parameters:
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm template link, or
null
if a matching ddm template link could not be found
-
findByTemplateId_PrevAndNext
DDMTemplateLink[] findByTemplateId_PrevAndNext(long templateLinkId, long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException Returns the ddm template links before and after the current ddm template link in the ordered set where templateId = ?.- Parameters:
templateLinkId
- the primary key of the current ddm template linktemplateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm template link
- Throws:
NoSuchTemplateLinkException
- if a ddm template link with the primary key could not be found
-
removeByTemplateId
void removeByTemplateId(long templateId) Removes all the ddm template links where templateId = ? from the database.- Parameters:
templateId
- the template ID
-
countByTemplateId
int countByTemplateId(long templateId) Returns the number of ddm template links where templateId = ?.- Parameters:
templateId
- the template ID- Returns:
- the number of matching ddm template links
-
findByC_C
Returns the ddm template link where classNameId = ? and classPK = ? or throws aNoSuchTemplateLinkException
if it could not be found.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching ddm template link
- Throws:
NoSuchTemplateLinkException
- if a matching ddm template link could not be found
-
fetchByC_C
Returns the ddm template link where classNameId = ? and classPK = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching ddm template link, or
null
if a matching ddm template link could not be found
-
fetchByC_C
Returns the ddm template link where classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cache- Returns:
- the matching ddm template link, or
null
if a matching ddm template link could not be found
-
removeByC_C
Removes the ddm template link where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the ddm template link that was removed
- Throws:
NoSuchTemplateLinkException
-
countByC_C
int countByC_C(long classNameId, long classPK) Returns the number of ddm template links where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching ddm template links
-
cacheResult
Caches the ddm template link in the entity cache if it is enabled.- Parameters:
ddmTemplateLink
- the ddm template link
-
cacheResult
Caches the ddm template links in the entity cache if it is enabled.- Parameters:
ddmTemplateLinks
- the ddm template links
-
create
Creates a new ddm template link with the primary key. Does not add the ddm template link to the database.- Parameters:
templateLinkId
- the primary key for the new ddm template link- Returns:
- the new ddm template link
-
remove
Removes the ddm template link with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
templateLinkId
- the primary key of the ddm template link- Returns:
- the ddm template link that was removed
- Throws:
NoSuchTemplateLinkException
- if a ddm template link with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the ddm template link with the primary key or throws aNoSuchTemplateLinkException
if it could not be found.- Parameters:
templateLinkId
- the primary key of the ddm template link- Returns:
- the ddm template link
- Throws:
NoSuchTemplateLinkException
- if a ddm template link with the primary key could not be found
-
fetchByPrimaryKey
Returns the ddm template link with the primary key or returnsnull
if it could not be found.- Parameters:
templateLinkId
- the primary key of the ddm template link- Returns:
- the ddm template link, or
null
if a ddm template link with the primary key could not be found
-
findAll
List<DDMTemplateLink> findAll()Returns all the ddm template links.- Returns:
- the ddm template links
-
findAll
Returns a range of all the ddm template links.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateLinkModelImpl
.- Parameters:
start
- the lower bound of the range of ddm template linksend
- the upper bound of the range of ddm template links (not inclusive)- Returns:
- the range of ddm template links
-
findAll
List<DDMTemplateLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns an ordered range of all the ddm template links.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateLinkModelImpl
.- Parameters:
start
- the lower bound of the range of ddm template linksend
- the upper bound of the range of ddm template links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of ddm template links
-
findAll
List<DDMTemplateLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template links.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateLinkModelImpl
.- Parameters:
start
- the lower bound of the range of ddm template linksend
- the upper bound of the range of ddm template links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of ddm template links
-
removeAll
void removeAll()Removes all the ddm template links from the database. -
countAll
int countAll()Returns the number of ddm template links.- Returns:
- the number of ddm template links
-