|
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.portlet.dynamicdatamapping.service.persistence.DDMTemplateLinkUtil
@ProviderType public class DDMTemplateLinkUtil
The persistence utility for the d d m template link service. This utility wraps 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
DDMTemplateLinkPersistence,
DDMTemplateLinkPersistenceImpl| Constructor Summary | |
|---|---|
DDMTemplateLinkUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(DDMTemplateLink ddmTemplateLink)
Caches the d d m template link in the entity cache if it is enabled. |
static void |
cacheResult(List<DDMTemplateLink> ddmTemplateLinks)
Caches the d d m template links in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(DDMTemplateLink ddmTemplateLink)
|
static int |
countAll()
Returns the number of d d m template links. |
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of d d m template links where classNameId = ? and classPK = ?. |
static int |
countByClassNameId(long classNameId)
Returns the number of d d m template links where classNameId = ?. |
static int |
countByTemplateId(long templateId)
Returns the number of d d m template links where templateId = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static DDMTemplateLink |
create(long templateLinkId)
Creates a new d d m template link with the primary key. |
static 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. |
static 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. |
static DDMTemplateLink |
fetchByClassNameId_First(long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where classNameId = ?. |
static DDMTemplateLink |
fetchByClassNameId_Last(long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the last d d m template link in the ordered set where classNameId = ?. |
static DDMTemplateLink |
fetchByPrimaryKey(long templateLinkId)
Returns the d d m template link with the primary key or returns null if it could not be found. |
static Map<Serializable,DDMTemplateLink> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static DDMTemplateLink |
fetchByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where templateId = ?. |
static DDMTemplateLink |
fetchByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the last d d m template link in the ordered set where templateId = ?. |
static List<DDMTemplateLink> |
findAll()
Returns all the d d m template links. |
static List<DDMTemplateLink> |
findAll(int start,
int end)
Returns a range of all the d d m template links. |
static List<DDMTemplateLink> |
findAll(int start,
int end,
OrderByComparator<DDMTemplateLink> orderByComparator)
Returns an ordered range of all the d d m template links. |
static 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. |
static DDMTemplateLink |
findByClassNameId_First(long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where classNameId = ?. |
static DDMTemplateLink |
findByClassNameId_Last(long classNameId,
OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the last d d m template link in the ordered set where classNameId = ?. |
static 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 = ?. |
static List<DDMTemplateLink> |
findByClassNameId(long classNameId)
Returns all the d d m template links where classNameId = ?. |
static List<DDMTemplateLink> |
findByClassNameId(long classNameId,
int start,
int end)
Returns a range of all the d d m template links where classNameId = ?. |
static 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 = ?. |
static 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. |
static DDMTemplateLink |
findByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the first d d m template link in the ordered set where templateId = ?. |
static DDMTemplateLink |
findByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateLink> orderByComparator)
Returns the last d d m template link in the ordered set where templateId = ?. |
static 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 = ?. |
static List<DDMTemplateLink> |
findByTemplateId(long templateId)
Returns all the d d m template links where templateId = ?. |
static List<DDMTemplateLink> |
findByTemplateId(long templateId,
int start,
int end)
Returns a range of all the d d m template links where templateId = ?. |
static 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 = ?. |
static List<DDMTemplateLink> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<DDMTemplateLink> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<DDMTemplateLink> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DDMTemplateLink> orderByComparator)
|
static DDMTemplateLinkPersistence |
getPersistence()
|
static DDMTemplateLink |
remove(long templateLinkId)
Removes the d d m template link with the primary key from the database. |
static void |
removeAll()
Removes all the d d m template links from the database. |
static DDMTemplateLink |
removeByC_C(long classNameId,
long classPK)
Removes the d d m template link where classNameId = ? and classPK = ? from the database. |
static void |
removeByClassNameId(long classNameId)
Removes all the d d m template links where classNameId = ? from the database. |
static void |
removeByTemplateId(long templateId)
Removes all the d d m template links where templateId = ? from the database. |
void |
setPersistence(DDMTemplateLinkPersistence persistence)
Deprecated. As of 6.2.0 |
static DDMTemplateLink |
update(DDMTemplateLink ddmTemplateLink)
|
static DDMTemplateLink |
update(DDMTemplateLink ddmTemplateLink,
ServiceContext serviceContext)
|
static DDMTemplateLink |
updateImpl(DDMTemplateLink ddmTemplateLink)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DDMTemplateLinkUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(DDMTemplateLink ddmTemplateLink)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<DDMTemplateLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<DDMTemplateLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<DDMTemplateLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DDMTemplateLink> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static DDMTemplateLink update(DDMTemplateLink ddmTemplateLink)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static DDMTemplateLink update(DDMTemplateLink ddmTemplateLink,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<DDMTemplateLink> findByClassNameId(long classNameId)
classNameId - the class name ID
public static 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)
public static 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.
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)
public static DDMTemplateLink findByClassNameId_First(long classNameId,
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 found
public static DDMTemplateLink fetchByClassNameId_First(long classNameId,
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 found
public static DDMTemplateLink findByClassNameId_Last(long classNameId,
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 found
public static DDMTemplateLink fetchByClassNameId_Last(long classNameId,
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 found
public static DDMTemplateLink[] findByClassNameId_PrevAndNext(long templateLinkId,
long classNameId,
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 foundpublic static void removeByClassNameId(long classNameId)
classNameId - the class name IDpublic static int countByClassNameId(long classNameId)
classNameId - the class name ID
public static List<DDMTemplateLink> findByTemplateId(long templateId)
templateId - the template ID
public static 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)
public static 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.
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)
public static DDMTemplateLink findByTemplateId_First(long templateId,
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 found
public static DDMTemplateLink fetchByTemplateId_First(long templateId,
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 found
public static DDMTemplateLink findByTemplateId_Last(long templateId,
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 found
public static DDMTemplateLink fetchByTemplateId_Last(long templateId,
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 found
public static DDMTemplateLink[] findByTemplateId_PrevAndNext(long templateLinkId,
long templateId,
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 foundpublic static void removeByTemplateId(long templateId)
templateId - the template IDpublic static int countByTemplateId(long templateId)
templateId - the template ID
public static DDMTemplateLink findByC_C(long classNameId,
long classPK)
throws NoSuchTemplateLinkException
NoSuchTemplateLinkException if it could not be found.
classNameId - the class name IDclassPK - the class p k
NoSuchTemplateLinkException - if a matching d d m template link could not be found
public static DDMTemplateLink 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 k
null if a matching d d m template link could not be found
public static DDMTemplateLink 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 use the finder cache
null if a matching d d m template link could not be found
public static DDMTemplateLink removeByC_C(long classNameId,
long classPK)
throws NoSuchTemplateLinkException
classNameId - the class name IDclassPK - the class p k
NoSuchTemplateLinkException
public static int countByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class p k
public static void cacheResult(DDMTemplateLink ddmTemplateLink)
ddmTemplateLink - the d d m template linkpublic static void cacheResult(List<DDMTemplateLink> ddmTemplateLinks)
ddmTemplateLinks - the d d m template linkspublic static DDMTemplateLink create(long templateLinkId)
templateLinkId - the primary key for the new d d m template link
public static DDMTemplateLink remove(long templateLinkId)
throws NoSuchTemplateLinkException
templateLinkId - 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 static DDMTemplateLink updateImpl(DDMTemplateLink ddmTemplateLink)
public static DDMTemplateLink findByPrimaryKey(long templateLinkId)
throws NoSuchTemplateLinkException
NoSuchTemplateLinkException if it could not be found.
templateLinkId - 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 static DDMTemplateLink fetchByPrimaryKey(long templateLinkId)
null if it could not be found.
templateLinkId - 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 static Map<Serializable,DDMTemplateLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<DDMTemplateLink> findAll()
public static 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)
public static 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.
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)
public static void removeAll()
public static int countAll()
public static DDMTemplateLinkPersistence getPersistence()
@Deprecated public void setPersistence(DDMTemplateLinkPersistence persistence)
|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||