Liferay 6.2-ce-ga5

com.liferay.portlet.dynamicdatamapping.service.persistence
Class DDMStructureLinkUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkUtil

@ProviderType
public class DDMStructureLinkUtil
extends Object

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

See Also:
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 = ?.
static 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. 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

DDMStructureLinkUtil

public DDMStructureLinkUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(DDMStructureLink ddmStructureLink)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDMStructureLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDMStructureLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                          int start,
                                                          int end)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<DDMStructureLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                          int start,
                                                          int end,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static DDMStructureLink update(DDMStructureLink ddmStructureLink)
                               throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static DDMStructureLink update(DDMStructureLink ddmStructureLink,
                                      ServiceContext serviceContext)
                               throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByClassNameId

public static List<DDMStructureLink> findByClassNameId(long classNameId)
                                                throws SystemException
Returns all the d d m structure links where classNameId = ?.

Parameters:
classNameId - the class name ID
Returns:
the matching d d m structure links
Throws:
SystemException - if a system exception occurred

findByClassNameId

public static List<DDMStructureLink> findByClassNameId(long classNameId,
                                                       int start,
                                                       int end)
                                                throws SystemException
Returns a range of all the d d m structure links where classNameId = ?.

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.

Parameters:
classNameId - the class name ID
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
Returns:
the range of matching d d m structure links
Throws:
SystemException - if a system exception occurred

findByClassNameId

public static List<DDMStructureLink> findByClassNameId(long classNameId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Returns an ordered range of all the d d m structure links where classNameId = ?.

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.

Parameters:
classNameId - the class name ID
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structure links
Throws:
SystemException - if a system exception occurred

findByClassNameId_First

public static DDMStructureLink findByClassNameId_First(long classNameId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchStructureLinkException
Returns the first d d m structure link in the ordered set where classNameId = ?.

Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure link
Throws:
NoSuchStructureLinkException - if a matching d d m structure link could not be found
SystemException - if a system exception occurred

fetchByClassNameId_First

public static DDMStructureLink fetchByClassNameId_First(long classNameId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Returns the first d d m structure link in the ordered set where classNameId = ?.

Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure link, or null if a matching d d m structure link could not be found
Throws:
SystemException - if a system exception occurred

findByClassNameId_Last

public static DDMStructureLink findByClassNameId_Last(long classNameId,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchStructureLinkException
Returns the last d d m structure link in the ordered set where classNameId = ?.

Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure link
Throws:
NoSuchStructureLinkException - if a matching d d m structure link could not be found
SystemException - if a system exception occurred

fetchByClassNameId_Last

public static DDMStructureLink fetchByClassNameId_Last(long classNameId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Returns the last d d m structure link in the ordered set where classNameId = ?.

Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure link, or null if a matching d d m structure link could not be found
Throws:
SystemException - if a system exception occurred

findByClassNameId_PrevAndNext

public static DDMStructureLink[] findByClassNameId_PrevAndNext(long structureLinkId,
                                                               long classNameId,
                                                               OrderByComparator orderByComparator)
                                                        throws SystemException,
                                                               NoSuchStructureLinkException
Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ?.

Parameters:
structureLinkId - the primary key of the current d d m structure link
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure link
Throws:
NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
SystemException - if a system exception occurred

removeByClassNameId

public static void removeByClassNameId(long classNameId)
                                throws SystemException
Removes all the d d m structure links where classNameId = ? from the database.

Parameters:
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByClassNameId

public static int countByClassNameId(long classNameId)
                              throws SystemException
Returns the number of d d m structure links where classNameId = ?.

Parameters:
classNameId - the class name ID
Returns:
the number of matching d d m structure links
Throws:
SystemException - if a system exception occurred

findByClassPK

public static DDMStructureLink findByClassPK(long classPK)
                                      throws SystemException,
                                             NoSuchStructureLinkException
Returns the d d m structure link where classPK = ? or throws a NoSuchStructureLinkException if it could not be found.

Parameters:
classPK - the class p k
Returns:
the matching d d m structure link
Throws:
NoSuchStructureLinkException - if a matching d d m structure link could not be found
SystemException - if a system exception occurred

fetchByClassPK

public static DDMStructureLink fetchByClassPK(long classPK)
                                       throws SystemException
Returns the d d m structure link where classPK = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
classPK - the class p k
Returns:
the matching d d m structure link, or null if a matching d d m structure link could not be found
Throws:
SystemException - if a system exception occurred

fetchByClassPK

public static DDMStructureLink fetchByClassPK(long classPK,
                                              boolean retrieveFromCache)
                                       throws SystemException
Returns the d d m structure link where classPK = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
classPK - the class p k
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m structure link, or null if a matching d d m structure link could not be found
Throws:
SystemException - if a system exception occurred

removeByClassPK

public static DDMStructureLink removeByClassPK(long classPK)
                                        throws SystemException,
                                               NoSuchStructureLinkException
Removes the d d m structure link where classPK = ? from the database.

Parameters:
classPK - the class p k
Returns:
the d d m structure link that was removed
Throws:
SystemException - if a system exception occurred
NoSuchStructureLinkException

countByClassPK

public static int countByClassPK(long classPK)
                          throws SystemException
Returns the number of d d m structure links where classPK = ?.

Parameters:
classPK - the class p k
Returns:
the number of matching d d m structure links
Throws:
SystemException - if a system exception occurred

findByStructureId

public static List<DDMStructureLink> findByStructureId(long structureId)
                                                throws SystemException
Returns all the d d m structure links where structureId = ?.

Parameters:
structureId - the structure ID
Returns:
the matching d d m structure links
Throws:
SystemException - if a system exception occurred

findByStructureId

public static List<DDMStructureLink> findByStructureId(long structureId,
                                                       int start,
                                                       int end)
                                                throws SystemException
Returns a range of all the d d m structure links where structureId = ?.

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.

Parameters:
structureId - the structure ID
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
Returns:
the range of matching d d m structure links
Throws:
SystemException - if a system exception occurred

findByStructureId

public static List<DDMStructureLink> findByStructureId(long structureId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Returns an ordered range of all the d d m structure links where structureId = ?.

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.

Parameters:
structureId - the structure ID
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structure links
Throws:
SystemException - if a system exception occurred

findByStructureId_First

public static DDMStructureLink findByStructureId_First(long structureId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchStructureLinkException
Returns the first d d m structure link in the ordered set where structureId = ?.

Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure link
Throws:
NoSuchStructureLinkException - if a matching d d m structure link could not be found
SystemException - if a system exception occurred

fetchByStructureId_First

public static DDMStructureLink fetchByStructureId_First(long structureId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Returns the first d d m structure link in the ordered set where structureId = ?.

Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure link, or null if a matching d d m structure link could not be found
Throws:
SystemException - if a system exception occurred

findByStructureId_Last

public static DDMStructureLink findByStructureId_Last(long structureId,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchStructureLinkException
Returns the last d d m structure link in the ordered set where structureId = ?.

Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure link
Throws:
NoSuchStructureLinkException - if a matching d d m structure link could not be found
SystemException - if a system exception occurred

fetchByStructureId_Last

public static DDMStructureLink fetchByStructureId_Last(long structureId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Returns the last d d m structure link in the ordered set where structureId = ?.

Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure link, or null if a matching d d m structure link could not be found
Throws:
SystemException - if a system exception occurred

findByStructureId_PrevAndNext

public static DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId,
                                                               long structureId,
                                                               OrderByComparator orderByComparator)
                                                        throws SystemException,
                                                               NoSuchStructureLinkException
Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = ?.

Parameters:
structureLinkId - the primary key of the current d d m structure link
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure link
Throws:
NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
SystemException - if a system exception occurred

removeByStructureId

public static void removeByStructureId(long structureId)
                                throws SystemException
Removes all the d d m structure links where structureId = ? from the database.

Parameters:
structureId - the structure ID
Throws:
SystemException - if a system exception occurred

countByStructureId

public static int countByStructureId(long structureId)
                              throws SystemException
Returns the number of d d m structure links where structureId = ?.

Parameters:
structureId - the structure ID
Returns:
the number of matching d d m structure links
Throws:
SystemException - if a system exception occurred

cacheResult

public static void cacheResult(DDMStructureLink ddmStructureLink)
Caches the d d m structure link in the entity cache if it is enabled.

Parameters:
ddmStructureLink - the d d m structure link

cacheResult

public static void cacheResult(List<DDMStructureLink> ddmStructureLinks)
Caches the d d m structure links in the entity cache if it is enabled.

Parameters:
ddmStructureLinks - the d d m structure links

create

public static DDMStructureLink create(long structureLinkId)
Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database.

Parameters:
structureLinkId - the primary key for the new d d m structure link
Returns:
the new d d m structure link

remove

public static DDMStructureLink remove(long structureLinkId)
                               throws SystemException,
                                      NoSuchStructureLinkException
Removes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
structureLinkId - the primary key of the d d m structure link
Returns:
the d d m structure link that was removed
Throws:
NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static DDMStructureLink updateImpl(DDMStructureLink ddmStructureLink)
                                   throws SystemException
Throws:
SystemException

findByPrimaryKey

public static DDMStructureLink findByPrimaryKey(long structureLinkId)
                                         throws SystemException,
                                                NoSuchStructureLinkException
Returns the d d m structure link with the primary key or throws a NoSuchStructureLinkException if it could not be found.

Parameters:
structureLinkId - the primary key of the d d m structure link
Returns:
the d d m structure link
Throws:
NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static DDMStructureLink fetchByPrimaryKey(long structureLinkId)
                                          throws SystemException
Returns the d d m structure link with the primary key or returns null if it could not be found.

Parameters:
structureLinkId - the primary key of the d d m structure link
Returns:
the d d m structure link, or null if a d d m structure link with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<DDMStructureLink> findAll()
                                      throws SystemException
Returns all the d d m structure links.

Returns:
the d d m structure links
Throws:
SystemException - if a system exception occurred

findAll

public static List<DDMStructureLink> findAll(int start,
                                             int end)
                                      throws SystemException
Returns a range of all the d d m structure links.

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.

Parameters:
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
Returns:
the range of d d m structure links
Throws:
SystemException - if a system exception occurred

findAll

public static List<DDMStructureLink> findAll(int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the d d m structure links.

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.

Parameters:
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m structure links
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the d d m structure links from the database.

Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of d d m structure links.

Returns:
the number of d d m structure links
Throws:
SystemException - if a system exception occurred

getPersistence

public static DDMStructureLinkPersistence getPersistence()

setPersistence

public void setPersistence(DDMStructureLinkPersistence persistence)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5