@ProviderType public interface DDMTemplateLinkPersistence extends 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
DDMTemplateLinkUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(DDMTemplateLink ddmTemplateLink)
Caches the ddm template link in the entity cache if it is enabled.
|
void |
cacheResult(java.util.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 = ?.
|
DDMTemplateLink |
create(long templateLinkId)
Creates a new ddm template link with the primary key.
|
DDMTemplateLink |
fetchByC_C(long classNameId,
long classPK)
Returns the ddm template link where classNameId = ? and classPK = ? or returns
null if it could not be found. |
DDMTemplateLink |
fetchByC_C(long classNameId,
long classPK,
boolean useFinderCache)
Returns the ddm template link where classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
DDMTemplateLink |
fetchByPrimaryKey(long templateLinkId)
Returns the ddm template link with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
java.util.List<DDMTemplateLink> |
findAll()
Returns all the ddm template links.
|
java.util.List<DDMTemplateLink> |
findAll(int start,
int end)
Returns a range of all the ddm 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 ddm template links.
|
java.util.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.
|
DDMTemplateLink |
findByC_C(long classNameId,
long classPK)
Returns the ddm template link where classNameId = ? and classPK = ? or throws a
NoSuchTemplateLinkException if it could not be found. |
DDMTemplateLink |
findByPrimaryKey(long templateLinkId)
Returns the ddm 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 ddm template link in the ordered set where templateId = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<DDMTemplateLink> |
findByTemplateId(long templateId)
Returns all the ddm template links where templateId = ?.
|
java.util.List<DDMTemplateLink> |
findByTemplateId(long templateId,
int start,
int end)
Returns a range of all the ddm 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 ddm template links where templateId = ?.
|
java.util.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 = ?.
|
DDMTemplateLink |
remove(long templateLinkId)
Removes the ddm template link with the primary key from the database.
|
void |
removeAll()
Removes all the ddm template links from the database.
|
DDMTemplateLink |
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.
|
DDMTemplateLink |
updateImpl(DDMTemplateLink ddmTemplateLink) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
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, setDataSource, unregisterListener, update, update
java.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, then the query will include the default ORDER BY logic from DDMTemplateLinkModelImpl
.
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)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, then the query will include the default ORDER BY logic from DDMTemplateLinkModelImpl
.
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 (optionally null
)java.util.List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMTemplateLinkModelImpl
.
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 (optionally null
)useFinderCache
- whether to use 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 ddm 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 ddm 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 ddm 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 ddm 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 ddm template linktemplateId
- the template IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateLinkException
- if a ddm 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 pkNoSuchTemplateLinkException
- if a matching ddm 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 pknull
if a matching ddm template link could not be foundDDMTemplateLink fetchByC_C(long classNameId, long classPK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cachenull
if a matching ddm template link could not be foundDDMTemplateLink removeByC_C(long classNameId, long classPK) throws NoSuchTemplateLinkException
classNameId
- the class name IDclassPK
- the class pkNoSuchTemplateLinkException
int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkvoid cacheResult(DDMTemplateLink ddmTemplateLink)
ddmTemplateLink
- the ddm template linkvoid cacheResult(java.util.List<DDMTemplateLink> ddmTemplateLinks)
ddmTemplateLinks
- the ddm template linksDDMTemplateLink create(long templateLinkId)
templateLinkId
- the primary key for the new ddm template linkDDMTemplateLink remove(long templateLinkId) throws NoSuchTemplateLinkException
templateLinkId
- the primary key of the ddm template linkNoSuchTemplateLinkException
- if a ddm 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 ddm template linkNoSuchTemplateLinkException
- if a ddm 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 ddm template linknull
if a ddm template link with the primary key could not be foundjava.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, then the query will include the default ORDER BY logic from DDMTemplateLinkModelImpl
.
start
- the lower bound of the range of ddm template linksend
- the upper bound of the range of ddm 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, then the query will include the default ORDER BY logic from DDMTemplateLinkModelImpl
.
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 (optionally null
)java.util.List<DDMTemplateLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMTemplateLinkModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()