|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkUtil
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 |
countByClassNameId(long classNameId)
Returns the number of d d m structure links where classNameId = ?. |
static int |
countByClassPK(long classPK)
Returns the number of d d m structure links where classPK = ?. |
static int |
countByStructureId(long structureId)
Returns the number of d d m structure links where structureId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static DDMStructureLink |
create(long structureLinkId)
Creates a new d d m structure link with the primary key. |
static DDMStructureLink |
fetchByClassNameId_First(long classNameId,
OrderByComparator orderByComparator)
Returns the first d d m structure link in the ordered set where classNameId = ?. |
static DDMStructureLink |
fetchByClassNameId_Last(long classNameId,
OrderByComparator orderByComparator)
Returns the last d d m structure link in the ordered set where classNameId = ?. |
static DDMStructureLink |
fetchByClassPK(long classPK)
Returns the d d m structure link where classPK = ? or returns null if it could not be found. |
static DDMStructureLink |
fetchByClassPK(long classPK,
boolean retrieveFromCache)
Returns the d d m structure link where classPK = ? 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 DDMStructureLink |
fetchByStructureId_First(long structureId,
OrderByComparator orderByComparator)
Returns the first d d m structure link in the ordered set where structureId = ?. |
static DDMStructureLink |
fetchByStructureId_Last(long structureId,
OrderByComparator 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 orderByComparator)
Returns an ordered range of all the d d m structure links. |
static DDMStructureLink |
findByClassNameId_First(long classNameId,
OrderByComparator orderByComparator)
Returns the first d d m structure link in the ordered set where classNameId = ?. |
static DDMStructureLink |
findByClassNameId_Last(long classNameId,
OrderByComparator orderByComparator)
Returns the last d d m structure link in the ordered set where classNameId = ?. |
static DDMStructureLink[] |
findByClassNameId_PrevAndNext(long structureLinkId,
long classNameId,
OrderByComparator orderByComparator)
Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ?. |
static List<DDMStructureLink> |
findByClassNameId(long classNameId)
Returns all the d d m structure links where classNameId = ?. |
static List<DDMStructureLink> |
findByClassNameId(long classNameId,
int start,
int end)
Returns a range of all the d d m structure links where classNameId = ?. |
static List<DDMStructureLink> |
findByClassNameId(long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d d m structure links where classNameId = ?. |
static DDMStructureLink |
findByClassPK(long classPK)
Returns the d d m structure link where classPK = ? or throws a NoSuchStructureLinkException if it could not be found. |
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 orderByComparator)
Returns the first d d m structure link in the ordered set where structureId = ?. |
static DDMStructureLink |
findByStructureId_Last(long structureId,
OrderByComparator orderByComparator)
Returns the last d d m structure link in the ordered set where structureId = ?. |
static DDMStructureLink[] |
findByStructureId_PrevAndNext(long structureLinkId,
long structureId,
OrderByComparator 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 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 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 void |
removeByClassNameId(long classNameId)
Removes all the d d m structure links where classNameId = ? from the database. |
static DDMStructureLink |
removeByClassPK(long classPK)
Removes the d d m structure link where 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. |
static DDMStructureLink |
update(DDMStructureLink ddmStructureLink,
boolean merge)
|
static DDMStructureLink |
update(DDMStructureLink ddmStructureLink,
boolean merge,
ServiceContext serviceContext)
|
static DDMStructureLink |
updateImpl(DDMStructureLink ddmStructureLink,
boolean merge)
|
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 long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<DDMStructureLink> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<DDMStructureLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<DDMStructureLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DDMStructureLink update(DDMStructureLink ddmStructureLink, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static DDMStructureLink update(DDMStructureLink ddmStructureLink, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
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 SystemException, 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 found
SystemException
- if a system exception occurredpublic static DDMStructureLink updateImpl(DDMStructureLink ddmStructureLink, boolean merge) throws SystemException
SystemException
public static DDMStructureLink findByPrimaryKey(long structureLinkId) throws SystemException, 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 found
SystemException
- if a system exception occurredpublic static DDMStructureLink fetchByPrimaryKey(long structureLinkId) throws SystemException
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 found
SystemException
- if a system exception occurredpublic static List<DDMStructureLink> findByClassNameId(long classNameId) throws SystemException
classNameId
- the class name ID
SystemException
- if a system exception occurredpublic static List<DDMStructureLink> findByClassNameId(long classNameId, int start, int end) throws SystemException
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.
classNameId
- the class name 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)
SystemException
- if a system exception occurredpublic static List<DDMStructureLink> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
classNameId
- the class name 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
)
SystemException
- if a system exception occurredpublic static DDMStructureLink findByClassNameId_First(long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchStructureLinkException
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchStructureLinkException
- if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic static DDMStructureLink fetchByClassNameId_First(long classNameId, OrderByComparator orderByComparator) throws SystemException
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic static DDMStructureLink findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchStructureLinkException
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchStructureLinkException
- if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic static DDMStructureLink fetchByClassNameId_Last(long classNameId, OrderByComparator orderByComparator) throws SystemException
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic static DDMStructureLink[] findByClassNameId_PrevAndNext(long structureLinkId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchStructureLinkException
structureLinkId
- the primary key of the current d d m structure linkclassNameId
- the class name 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 found
SystemException
- if a system exception occurredpublic static DDMStructureLink findByClassPK(long classPK) throws SystemException, NoSuchStructureLinkException
NoSuchStructureLinkException
if it could not be found.
classPK
- the class p k
NoSuchStructureLinkException
- if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic static DDMStructureLink fetchByClassPK(long classPK) throws SystemException
null
if it could not be found. Uses the finder cache.
classPK
- the class p k
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic static DDMStructureLink fetchByClassPK(long classPK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
classPK
- the class p kretrieveFromCache
- whether to use the finder cache
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic static List<DDMStructureLink> findByStructureId(long structureId) throws SystemException
structureId
- the structure ID
SystemException
- if a system exception occurredpublic static List<DDMStructureLink> findByStructureId(long structureId, int start, int end) throws SystemException
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.
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)
SystemException
- if a system exception occurredpublic static List<DDMStructureLink> findByStructureId(long structureId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
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
)
SystemException
- if a system exception occurredpublic static DDMStructureLink findByStructureId_First(long structureId, OrderByComparator orderByComparator) throws SystemException, 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
SystemException
- if a system exception occurredpublic static DDMStructureLink fetchByStructureId_First(long structureId, OrderByComparator orderByComparator) throws SystemException
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
SystemException
- if a system exception occurredpublic static DDMStructureLink findByStructureId_Last(long structureId, OrderByComparator orderByComparator) throws SystemException, 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
SystemException
- if a system exception occurredpublic static DDMStructureLink fetchByStructureId_Last(long structureId, OrderByComparator orderByComparator) throws SystemException
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
SystemException
- if a system exception occurredpublic static DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId, long structureId, OrderByComparator orderByComparator) throws SystemException, 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 found
SystemException
- if a system exception occurredpublic static List<DDMStructureLink> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<DDMStructureLink> findAll(int start, int end) throws SystemException
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.
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)
SystemException
- if a system exception occurredpublic static List<DDMStructureLink> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
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
)
SystemException
- if a system exception occurredpublic static void removeByClassNameId(long classNameId) throws SystemException
classNameId
- the class name ID
SystemException
- if a system exception occurredpublic static DDMStructureLink removeByClassPK(long classPK) throws SystemException, NoSuchStructureLinkException
classPK
- the class p k
SystemException
- if a system exception occurred
NoSuchStructureLinkException
public static void removeByStructureId(long structureId) throws SystemException
structureId
- the structure ID
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByClassNameId(long classNameId) throws SystemException
classNameId
- the class name ID
SystemException
- if a system exception occurredpublic static int countByClassPK(long classPK) throws SystemException
classPK
- the class p k
SystemException
- if a system exception occurredpublic static int countByStructureId(long structureId) throws SystemException
structureId
- the structure ID
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static DDMStructureLinkPersistence getPersistence()
public void setPersistence(DDMStructureLinkPersistence persistence)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |