Class DDMTemplateLinkUtil
com.liferay.dynamic.data.mapping.service.persistence.impl.DDMTemplateLinkPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(DDMTemplateLink ddmTemplateLink) Caches the ddm template link in the entity cache if it is enabled.static void
cacheResult
(List<DDMTemplateLink> ddmTemplateLinks) Caches the ddm template links in the entity cache if it is enabled.static void
static void
clearCache
(DDMTemplateLink ddmTemplateLink) static int
countAll()
Returns the number of ddm template links.static int
countByC_C
(long classNameId, long classPK) Returns the number of ddm template links where classNameId = ? and classPK = ?.static int
countByTemplateId
(long templateId) Returns the number of ddm template links where templateId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DDMTemplateLink
create
(long templateLinkId) Creates a new ddm template link with the primary key.static DDMTemplateLink
fetchByC_C
(long classNameId, long classPK) Returns the ddm template link where classNameId = ? and classPK = ? or returnsnull
if it could not be found.static DDMTemplateLink
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.static DDMTemplateLink
fetchByPrimaryKey
(long templateLinkId) Returns the ddm template link with the primary key or returnsnull
if it could not be found.static Map<Serializable,
DDMTemplateLink> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static 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 = ?.static 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 = ?.static List<DDMTemplateLink>
findAll()
Returns all the ddm template links.static List<DDMTemplateLink>
findAll
(int start, int end) Returns a range of all the ddm template links.static 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.static 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.static DDMTemplateLink
findByC_C
(long classNameId, long classPK) Returns the ddm template link where classNameId = ? and classPK = ? or throws aNoSuchTemplateLinkException
if it could not be found.static DDMTemplateLink
findByPrimaryKey
(long templateLinkId) Returns the ddm template link with the primary key or throws aNoSuchTemplateLinkException
if it could not be found.static List<DDMTemplateLink>
findByTemplateId
(long templateId) Returns all the ddm template links where templateId = ?.static List<DDMTemplateLink>
findByTemplateId
(long templateId, int start, int end) Returns a range of all the ddm template links where templateId = ?.static 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 = ?.static 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 = ?.static DDMTemplateLink
findByTemplateId_First
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the first ddm template link in the ordered set where templateId = ?.static DDMTemplateLink
findByTemplateId_Last
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the last ddm template link in the ordered set where templateId = ?.static DDMTemplateLink[]
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 = ?.static List<DDMTemplateLink>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DDMTemplateLink>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DDMTemplateLink>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) static DDMTemplateLinkPersistence
static DDMTemplateLink
remove
(long templateLinkId) Removes the ddm template link with the primary key from the database.static void
Removes all the ddm template links from the database.static DDMTemplateLink
removeByC_C
(long classNameId, long classPK) Removes the ddm template link where classNameId = ? and classPK = ? from the database.static void
removeByTemplateId
(long templateId) Removes all the ddm template links where templateId = ? from the database.static void
setPersistence
(DDMTemplateLinkPersistence persistence) static DDMTemplateLink
update
(DDMTemplateLink ddmTemplateLink) static DDMTemplateLink
update
(DDMTemplateLink ddmTemplateLink, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMTemplateLink
updateImpl
(DDMTemplateLink ddmTemplateLink)
-
Constructor Details
-
DDMTemplateLinkUtil
public DDMTemplateLinkUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DDMTemplateLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DDMTemplateLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DDMTemplateLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DDMTemplateLink update(DDMTemplateLink ddmTemplateLink, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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
public static 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
public static 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
public static 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 foundNoSuchTemplateLinkException
-
fetchByTemplateId_First
public static 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
public static 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 foundNoSuchTemplateLinkException
-
fetchByTemplateId_Last
public static 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
public static 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 foundNoSuchTemplateLinkException
-
removeByTemplateId
public static void removeByTemplateId(long templateId) Removes all the ddm template links where templateId = ? from the database.- Parameters:
templateId
- the template ID
-
countByTemplateId
public static 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
public static DDMTemplateLink findByC_C(long classNameId, long classPK) throws NoSuchTemplateLinkException 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 foundNoSuchTemplateLinkException
-
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
public static DDMTemplateLink removeByC_C(long classNameId, long classPK) throws NoSuchTemplateLinkException 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
public static 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 foundNoSuchTemplateLinkException
-
updateImpl
-
findByPrimaryKey
public static DDMTemplateLink findByPrimaryKey(long templateLinkId) throws NoSuchTemplateLinkException 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 foundNoSuchTemplateLinkException
-
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
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
public static 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
public static 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
public static void removeAll()Removes all the ddm template links from the database. -
countAll
public static int countAll()Returns the number of ddm template links.- Returns:
- the number of ddm template links
-
getPersistence
-
setPersistence
-