|
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.DDMStructureLinkUtil
@ProviderType public class DDMStructureLinkUtil
The persistence utility for the d d m structure link service. This utility wraps DDMStructureLinkPersistenceImpl 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
DDMStructureLinkPersistence,
DDMStructureLinkPersistenceImpl| Constructor Summary | |
|---|---|
DDMStructureLinkUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(DDMStructureLink ddmStructureLink)
Caches the d d m structure link in the entity cache if it is enabled. |
static void |
cacheResult(List<DDMStructureLink> ddmStructureLinks)
Caches the d d m structure links in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(DDMStructureLink ddmStructureLink)
|
static int |
countAll()
Returns the number of d d m structure links. |
static int |
countByC_C_S(long classNameId,
long classPK,
long structureId)
Returns the number of d d m structure links where classNameId = ? and classPK = ? and structureId = ?. |
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of d d m structure links where classNameId = ? and classPK = ?. |
static int |
countByStructureId(long structureId)
Returns the number of d d m structure links where structureId = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static DDMStructureLink |
create(long structureLinkId)
Creates a new d d m structure link with the primary key. |
static DDMStructureLink |
fetchByC_C_First(long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the first d d m structure link in the ordered set where classNameId = ? and classPK = ?. |
static DDMStructureLink |
fetchByC_C_Last(long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the last d d m structure link in the ordered set where classNameId = ? and classPK = ?. |
static DDMStructureLink |
fetchByC_C_S(long classNameId,
long classPK,
long structureId)
Returns the d d m structure link where classNameId = ? and classPK = ? and structureId = ? or returns null if it could not be found. |
static DDMStructureLink |
fetchByC_C_S(long classNameId,
long classPK,
long structureId,
boolean retrieveFromCache)
Returns the d d m structure link where classNameId = ? and classPK = ? and structureId = ? or returns null if it could not be found, optionally using the finder cache. |
static DDMStructureLink |
fetchByPrimaryKey(long structureLinkId)
Returns the d d m structure link with the primary key or returns null if it could not be found. |
static Map<Serializable,DDMStructureLink> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static DDMStructureLink |
fetchByStructureId_First(long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the first d d m structure link in the ordered set where structureId = ?. |
static DDMStructureLink |
fetchByStructureId_Last(long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the last d d m structure link in the ordered set where structureId = ?. |
static List<DDMStructureLink> |
findAll()
Returns all the d d m structure links. |
static List<DDMStructureLink> |
findAll(int start,
int end)
Returns a range of all the d d m structure links. |
static List<DDMStructureLink> |
findAll(int start,
int end,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns an ordered range of all the d d m structure links. |
static DDMStructureLink |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the first d d m structure link in the ordered set where classNameId = ? and classPK = ?. |
static DDMStructureLink |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the last d d m structure link in the ordered set where classNameId = ? and classPK = ?. |
static DDMStructureLink[] |
findByC_C_PrevAndNext(long structureLinkId,
long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ? and classPK = ?. |
static DDMStructureLink |
findByC_C_S(long classNameId,
long classPK,
long structureId)
Returns the d d m structure link where classNameId = ? and classPK = ? and structureId = ? or throws a NoSuchStructureLinkException if it could not be found. |
static List<DDMStructureLink> |
findByC_C(long classNameId,
long classPK)
Returns all the d d m structure links where classNameId = ? and classPK = ?. |
static List<DDMStructureLink> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the d d m structure links where classNameId = ? and classPK = ?. |
static List<DDMStructureLink> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns an ordered range of all the d d m structure links where classNameId = ? and classPK = ?. |
static DDMStructureLink |
findByPrimaryKey(long structureLinkId)
Returns the d d m structure link with the primary key or throws a NoSuchStructureLinkException if it could not be found. |
static DDMStructureLink |
findByStructureId_First(long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the first d d m structure link in the ordered set where structureId = ?. |
static DDMStructureLink |
findByStructureId_Last(long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the last d d m structure link in the ordered set where structureId = ?. |
static DDMStructureLink[] |
findByStructureId_PrevAndNext(long structureLinkId,
long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = ?. |
static List<DDMStructureLink> |
findByStructureId(long structureId)
Returns all the d d m structure links where structureId = ?. |
static List<DDMStructureLink> |
findByStructureId(long structureId,
int start,
int end)
Returns a range of all the d d m structure links where structureId = ?. |
static List<DDMStructureLink> |
findByStructureId(long structureId,
int start,
int end,
OrderByComparator<DDMStructureLink> orderByComparator)
Returns an ordered range of all the d d m structure links where structureId = ?. |
static List<DDMStructureLink> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<DDMStructureLink> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<DDMStructureLink> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DDMStructureLink> orderByComparator)
|
static DDMStructureLinkPersistence |
getPersistence()
|
static DDMStructureLink |
remove(long structureLinkId)
Removes the d d m structure link with the primary key from the database. |
static void |
removeAll()
Removes all the d d m structure links from the database. |
static DDMStructureLink |
removeByC_C_S(long classNameId,
long classPK,
long structureId)
Removes the d d m structure link where classNameId = ? and classPK = ? and structureId = ? from the database. |
static void |
removeByC_C(long classNameId,
long classPK)
Removes all the d d m structure links where classNameId = ? and classPK = ? from the database. |
static void |
removeByStructureId(long structureId)
Removes all the d d m structure links where structureId = ? from the database. |
void |
setPersistence(DDMStructureLinkPersistence persistence)
Deprecated. As of 6.2.0 |
static DDMStructureLink |
update(DDMStructureLink ddmStructureLink)
|
static DDMStructureLink |
update(DDMStructureLink ddmStructureLink,
ServiceContext serviceContext)
|
static DDMStructureLink |
updateImpl(DDMStructureLink ddmStructureLink)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DDMStructureLinkUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(DDMStructureLink ddmStructureLink)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<DDMStructureLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<DDMStructureLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<DDMStructureLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DDMStructureLink> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static DDMStructureLink update(DDMStructureLink ddmStructureLink)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static DDMStructureLink update(DDMStructureLink ddmStructureLink,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<DDMStructureLink> findByStructureId(long structureId)
structureId - the structure ID
public static List<DDMStructureLink> findByStructureId(long structureId,
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 DDMStructureLinkModelImpl. 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.
structureId - the structure IDstart - the lower bound of the range of d d m structure linksend - the upper bound of the range of d d m structure links (not inclusive)
public static List<DDMStructureLink> findByStructureId(long structureId,
int start,
int end,
OrderByComparator<DDMStructureLink> 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 DDMStructureLinkModelImpl. 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.
structureId - the structure IDstart - the lower bound of the range of d d m structure linksend - the upper bound of the range of d d m structure links (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static DDMStructureLink findByStructureId_First(long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
throws NoSuchStructureLinkException
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchStructureLinkException - if a matching d d m structure link could not be found
public static DDMStructureLink fetchByStructureId_First(long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m structure link could not be found
public static DDMStructureLink findByStructureId_Last(long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
throws NoSuchStructureLinkException
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchStructureLinkException - if a matching d d m structure link could not be found
public static DDMStructureLink fetchByStructureId_Last(long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m structure link could not be found
public static DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId,
long structureId,
OrderByComparator<DDMStructureLink> orderByComparator)
throws NoSuchStructureLinkException
structureLinkId - the primary key of the current d d m structure linkstructureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchStructureLinkException - if a d d m structure link with the primary key could not be foundpublic static void removeByStructureId(long structureId)
structureId - the structure IDpublic static int countByStructureId(long structureId)
structureId - the structure ID
public static List<DDMStructureLink> findByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class p k
public static List<DDMStructureLink> findByC_C(long classNameId,
long classPK,
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 DDMStructureLinkModelImpl. 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 IDclassPK - the class p kstart - the lower bound of the range of d d m structure linksend - the upper bound of the range of d d m structure links (not inclusive)
public static List<DDMStructureLink> findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator<DDMStructureLink> 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 DDMStructureLinkModelImpl. 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 IDclassPK - the class p kstart - the lower bound of the range of d d m structure linksend - the upper bound of the range of d d m structure links (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static DDMStructureLink findByC_C_First(long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
throws NoSuchStructureLinkException
classNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
NoSuchStructureLinkException - if a matching d d m structure link could not be found
public static DDMStructureLink fetchByC_C_First(long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
classNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m structure link could not be found
public static DDMStructureLink findByC_C_Last(long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
throws NoSuchStructureLinkException
classNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
NoSuchStructureLinkException - if a matching d d m structure link could not be found
public static DDMStructureLink fetchByC_C_Last(long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
classNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m structure link could not be found
public static DDMStructureLink[] findByC_C_PrevAndNext(long structureLinkId,
long classNameId,
long classPK,
OrderByComparator<DDMStructureLink> orderByComparator)
throws NoSuchStructureLinkException
structureLinkId - the primary key of the current d d m structure linkclassNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
public static void removeByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class p k
public static int countByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class p k
public static DDMStructureLink findByC_C_S(long classNameId,
long classPK,
long structureId)
throws NoSuchStructureLinkException
NoSuchStructureLinkException if it could not be found.
classNameId - the class name IDclassPK - the class p kstructureId - the structure ID
NoSuchStructureLinkException - if a matching d d m structure link could not be found
public static DDMStructureLink fetchByC_C_S(long classNameId,
long classPK,
long structureId)
null if it could not be found. Uses the finder cache.
classNameId - the class name IDclassPK - the class p kstructureId - the structure ID
null if a matching d d m structure link could not be found
public static DDMStructureLink fetchByC_C_S(long classNameId,
long classPK,
long structureId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
classNameId - the class name IDclassPK - the class p kstructureId - the structure IDretrieveFromCache - whether to use the finder cache
null if a matching d d m structure link could not be found
public static DDMStructureLink removeByC_C_S(long classNameId,
long classPK,
long structureId)
throws NoSuchStructureLinkException
classNameId - the class name IDclassPK - the class p kstructureId - the structure ID
NoSuchStructureLinkException
public static int countByC_C_S(long classNameId,
long classPK,
long structureId)
classNameId - the class name IDclassPK - the class p kstructureId - the structure ID
public static void cacheResult(DDMStructureLink ddmStructureLink)
ddmStructureLink - the d d m structure linkpublic static void cacheResult(List<DDMStructureLink> ddmStructureLinks)
ddmStructureLinks - the d d m structure linkspublic static DDMStructureLink create(long structureLinkId)
structureLinkId - the primary key for the new d d m structure link
public static DDMStructureLink remove(long structureLinkId)
throws NoSuchStructureLinkException
structureLinkId - the primary key of the d d m structure link
NoSuchStructureLinkException - if a d d m structure link with the primary key could not be foundpublic static DDMStructureLink updateImpl(DDMStructureLink ddmStructureLink)
public static DDMStructureLink findByPrimaryKey(long structureLinkId)
throws NoSuchStructureLinkException
NoSuchStructureLinkException if it could not be found.
structureLinkId - the primary key of the d d m structure link
NoSuchStructureLinkException - if a d d m structure link with the primary key could not be foundpublic static DDMStructureLink fetchByPrimaryKey(long structureLinkId)
null if it could not be found.
structureLinkId - the primary key of the d d m structure link
null if a d d m structure link with the primary key could not be foundpublic static Map<Serializable,DDMStructureLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<DDMStructureLink> findAll()
public static List<DDMStructureLink> 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 DDMStructureLinkModelImpl. 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 structure linksend - the upper bound of the range of d d m structure links (not inclusive)
public static List<DDMStructureLink> findAll(int start,
int end,
OrderByComparator<DDMStructureLink> 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 DDMStructureLinkModelImpl. 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 structure linksend - the upper bound of the range of d d m structure links (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static void removeAll()
public static int countAll()
public static DDMStructureLinkPersistence getPersistence()
@Deprecated public void setPersistence(DDMStructureLinkPersistence persistence)
|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||