Class DDMStructureLinkUtil
com.liferay.dynamic.data.mapping.service.persistence.impl.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:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(DDMStructureLink ddmStructureLink) Caches the ddm structure link in the entity cache if it is enabled.static void
cacheResult
(List<DDMStructureLink> ddmStructureLinks) Caches the ddm structure links in the entity cache if it is enabled.static void
static void
clearCache
(DDMStructureLink ddmStructureLink) static int
countAll()
Returns the number of ddm structure links.static int
countByC_C
(long classNameId, long classPK) Returns the number of ddm structure links where classNameId = ? and classPK = ?.static int
countByC_C_S
(long classNameId, long classPK, long structureId) Returns the number of ddm structure links where classNameId = ? and classPK = ? and structureId = ?.static int
countByStructureId
(long structureId) Returns the number of ddm structure links where structureId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DDMStructureLink
create
(long structureLinkId) Creates a new ddm structure link with the primary key.static DDMStructureLink
fetchByC_C_First
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the first ddm structure link in the ordered set where classNameId = ? and classPK = ?.static DDMStructureLink
fetchByC_C_Last
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the last ddm structure link in the ordered set where classNameId = ? and classPK = ?.static DDMStructureLink
fetchByC_C_S
(long classNameId, long classPK, long structureId) Returns the ddm structure link where classNameId = ? and classPK = ? and structureId = ? or returnsnull
if it could not be found.static DDMStructureLink
fetchByC_C_S
(long classNameId, long classPK, long structureId, boolean useFinderCache) Returns the ddm structure link where classNameId = ? and classPK = ? and structureId = ? or returnsnull
if it could not be found, optionally using the finder cache.static DDMStructureLink
fetchByPrimaryKey
(long structureLinkId) Returns the ddm structure link with the primary key or returnsnull
if it could not be found.static Map<Serializable,
DDMStructureLink> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static DDMStructureLink
fetchByStructureId_First
(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the first ddm structure link in the ordered set where structureId = ?.static DDMStructureLink
fetchByStructureId_Last
(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the last ddm structure link in the ordered set where structureId = ?.static List<DDMStructureLink>
findAll()
Returns all the ddm structure links.static List<DDMStructureLink>
findAll
(int start, int end) Returns a range of all the ddm structure links.static List<DDMStructureLink>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns an ordered range of all the ddm structure links.static List<DDMStructureLink>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm structure links.static List<DDMStructureLink>
findByC_C
(long classNameId, long classPK) Returns all the ddm 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 ddm structure links where classNameId = ? and classPK = ?.static List<DDMStructureLink>
findByC_C
(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns an ordered range of all the ddm structure links where classNameId = ? and classPK = ?.static List<DDMStructureLink>
findByC_C
(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm structure links where classNameId = ? and classPK = ?.static DDMStructureLink
findByC_C_First
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the first ddm structure link in the ordered set where classNameId = ? and classPK = ?.static DDMStructureLink
findByC_C_Last
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the last ddm structure link in the ordered set where classNameId = ? and classPK = ?.static DDMStructureLink[]
findByC_C_PrevAndNext
(long structureLinkId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the ddm structure links before and after the current ddm structure link in the ordered set where classNameId = ? and classPK = ?.static DDMStructureLink
findByC_C_S
(long classNameId, long classPK, long structureId) Returns the ddm structure link where classNameId = ? and classPK = ? and structureId = ? or throws aNoSuchStructureLinkException
if it could not be found.static DDMStructureLink
findByPrimaryKey
(long structureLinkId) Returns the ddm structure link with the primary key or throws aNoSuchStructureLinkException
if it could not be found.static List<DDMStructureLink>
findByStructureId
(long structureId) Returns all the ddm structure links where structureId = ?.static List<DDMStructureLink>
findByStructureId
(long structureId, int start, int end) Returns a range of all the ddm structure links where structureId = ?.static List<DDMStructureLink>
findByStructureId
(long structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns an ordered range of all the ddm structure links where structureId = ?.static List<DDMStructureLink>
findByStructureId
(long structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm structure links where structureId = ?.static DDMStructureLink
findByStructureId_First
(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the first ddm structure link in the ordered set where structureId = ?.static DDMStructureLink
findByStructureId_Last
(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the last ddm structure link in the ordered set where structureId = ?.static DDMStructureLink[]
findByStructureId_PrevAndNext
(long structureLinkId, long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the ddm structure links before and after the current ddm structure link in the ordered set where structureId = ?.static List<DDMStructureLink>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DDMStructureLink>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DDMStructureLink>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) static DDMStructureLinkPersistence
static DDMStructureLink
remove
(long structureLinkId) Removes the ddm structure link with the primary key from the database.static void
Removes all the ddm structure links from the database.static void
removeByC_C
(long classNameId, long classPK) Removes all the ddm structure links where classNameId = ? and classPK = ? from the database.static DDMStructureLink
removeByC_C_S
(long classNameId, long classPK, long structureId) Removes the ddm structure link where classNameId = ? and classPK = ? and structureId = ? from the database.static void
removeByStructureId
(long structureId) Removes all the ddm structure links where structureId = ? from the database.static void
setPersistence
(DDMStructureLinkPersistence persistence) static DDMStructureLink
update
(DDMStructureLink ddmStructureLink) static DDMStructureLink
update
(DDMStructureLink ddmStructureLink, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMStructureLink
updateImpl
(DDMStructureLink ddmStructureLink)
-
Constructor Details
-
DDMStructureLinkUtil
public DDMStructureLinkUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DDMStructureLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DDMStructureLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DDMStructureLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DDMStructureLink update(DDMStructureLink ddmStructureLink, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByStructureId
Returns all the ddm structure links where structureId = ?.- Parameters:
structureId
- the structure ID- Returns:
- the matching ddm structure links
-
findByStructureId
Returns a range of all the ddm structure links where structureId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureLinkModelImpl
.- Parameters:
structureId
- the structure IDstart
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)- Returns:
- the range of matching ddm structure links
-
findByStructureId
public static List<DDMStructureLink> findByStructureId(long structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns an ordered range of all the ddm structure links where structureId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureLinkModelImpl
.- Parameters:
structureId
- the structure IDstart
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm structure links
-
findByStructureId
public static List<DDMStructureLink> findByStructureId(long structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm structure links where structureId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureLinkModelImpl
.- Parameters:
structureId
- the structure IDstart
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm structure links
-
findByStructureId_First
public static DDMStructureLink findByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException Returns the first ddm structure link in the ordered set where structureId = ?.- Parameters:
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm structure link
- Throws:
NoSuchStructureLinkException
- if a matching ddm structure link could not be foundNoSuchStructureLinkException
-
fetchByStructureId_First
public static DDMStructureLink fetchByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the first ddm structure link in the ordered set where structureId = ?.- Parameters:
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm structure link, or
null
if a matching ddm structure link could not be found
-
findByStructureId_Last
public static DDMStructureLink findByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException Returns the last ddm structure link in the ordered set where structureId = ?.- Parameters:
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm structure link
- Throws:
NoSuchStructureLinkException
- if a matching ddm structure link could not be foundNoSuchStructureLinkException
-
fetchByStructureId_Last
public static DDMStructureLink fetchByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the last ddm structure link in the ordered set where structureId = ?.- Parameters:
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm structure link, or
null
if a matching ddm structure link could not be found
-
findByStructureId_PrevAndNext
public static DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId, long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException Returns the ddm structure links before and after the current ddm structure link in the ordered set where structureId = ?.- Parameters:
structureLinkId
- the primary key of the current ddm structure linkstructureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm structure link
- Throws:
NoSuchStructureLinkException
- if a ddm structure link with the primary key could not be foundNoSuchStructureLinkException
-
removeByStructureId
public static void removeByStructureId(long structureId) Removes all the ddm structure links where structureId = ? from the database.- Parameters:
structureId
- the structure ID
-
countByStructureId
public static int countByStructureId(long structureId) Returns the number of ddm structure links where structureId = ?.- Parameters:
structureId
- the structure ID- Returns:
- the number of matching ddm structure links
-
findByC_C
Returns all the ddm structure links where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching ddm structure links
-
findByC_C
Returns a range of all the ddm structure links where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureLinkModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)- Returns:
- the range of matching ddm structure links
-
findByC_C
public static List<DDMStructureLink> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns an ordered range of all the ddm structure links where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureLinkModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm structure links
-
findByC_C
public static List<DDMStructureLink> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm structure links where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureLinkModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm structure links
-
findByC_C_First
public static DDMStructureLink findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException Returns the first ddm structure link in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm structure link
- Throws:
NoSuchStructureLinkException
- if a matching ddm structure link could not be foundNoSuchStructureLinkException
-
fetchByC_C_First
public static DDMStructureLink fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the first ddm structure link in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm structure link, or
null
if a matching ddm structure link could not be found
-
findByC_C_Last
public static DDMStructureLink findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException Returns the last ddm structure link in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm structure link
- Throws:
NoSuchStructureLinkException
- if a matching ddm structure link could not be foundNoSuchStructureLinkException
-
fetchByC_C_Last
public static DDMStructureLink fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns the last ddm structure link in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm structure link, or
null
if a matching ddm structure link could not be found
-
findByC_C_PrevAndNext
public static DDMStructureLink[] findByC_C_PrevAndNext(long structureLinkId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException Returns the ddm structure links before and after the current ddm structure link in the ordered set where classNameId = ? and classPK = ?.- Parameters:
structureLinkId
- the primary key of the current ddm structure linkclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm structure link
- Throws:
NoSuchStructureLinkException
- if a ddm structure link with the primary key could not be foundNoSuchStructureLinkException
-
removeByC_C
public static void removeByC_C(long classNameId, long classPK) Removes all the ddm structure links where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByC_C
public static int countByC_C(long classNameId, long classPK) Returns the number of ddm structure links where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching ddm structure links
-
findByC_C_S
public static DDMStructureLink findByC_C_S(long classNameId, long classPK, long structureId) throws NoSuchStructureLinkException Returns the ddm structure link where classNameId = ? and classPK = ? and structureId = ? or throws aNoSuchStructureLinkException
if it could not be found.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstructureId
- the structure ID- Returns:
- the matching ddm structure link
- Throws:
NoSuchStructureLinkException
- if a matching ddm structure link could not be foundNoSuchStructureLinkException
-
fetchByC_C_S
Returns the ddm structure link where classNameId = ? and classPK = ? and structureId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstructureId
- the structure ID- Returns:
- the matching ddm structure link, or
null
if a matching ddm structure link could not be found
-
fetchByC_C_S
public static DDMStructureLink fetchByC_C_S(long classNameId, long classPK, long structureId, boolean useFinderCache) Returns the ddm structure link where classNameId = ? and classPK = ? and structureId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstructureId
- the structure IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching ddm structure link, or
null
if a matching ddm structure link could not be found
-
removeByC_C_S
public static DDMStructureLink removeByC_C_S(long classNameId, long classPK, long structureId) throws NoSuchStructureLinkException Removes the ddm structure link where classNameId = ? and classPK = ? and structureId = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstructureId
- the structure ID- Returns:
- the ddm structure link that was removed
- Throws:
NoSuchStructureLinkException
-
countByC_C_S
public static int countByC_C_S(long classNameId, long classPK, long structureId) Returns the number of ddm structure links where classNameId = ? and classPK = ? and structureId = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstructureId
- the structure ID- Returns:
- the number of matching ddm structure links
-
cacheResult
Caches the ddm structure link in the entity cache if it is enabled.- Parameters:
ddmStructureLink
- the ddm structure link
-
cacheResult
Caches the ddm structure links in the entity cache if it is enabled.- Parameters:
ddmStructureLinks
- the ddm structure links
-
create
Creates a new ddm structure link with the primary key. Does not add the ddm structure link to the database.- Parameters:
structureLinkId
- the primary key for the new ddm structure link- Returns:
- the new ddm structure link
-
remove
Removes the ddm structure link with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
structureLinkId
- the primary key of the ddm structure link- Returns:
- the ddm structure link that was removed
- Throws:
NoSuchStructureLinkException
- if a ddm structure link with the primary key could not be foundNoSuchStructureLinkException
-
updateImpl
-
findByPrimaryKey
public static DDMStructureLink findByPrimaryKey(long structureLinkId) throws NoSuchStructureLinkException Returns the ddm structure link with the primary key or throws aNoSuchStructureLinkException
if it could not be found.- Parameters:
structureLinkId
- the primary key of the ddm structure link- Returns:
- the ddm structure link
- Throws:
NoSuchStructureLinkException
- if a ddm structure link with the primary key could not be foundNoSuchStructureLinkException
-
fetchByPrimaryKey
Returns the ddm structure link with the primary key or returnsnull
if it could not be found.- Parameters:
structureLinkId
- the primary key of the ddm structure link- Returns:
- the ddm structure link, or
null
if a ddm structure link with the primary key could not be found
-
findAll
Returns all the ddm structure links.- Returns:
- the ddm structure links
-
findAll
Returns a range of all the ddm structure links.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureLinkModelImpl
.- Parameters:
start
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)- Returns:
- the range of ddm structure links
-
findAll
public static List<DDMStructureLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) Returns an ordered range of all the ddm structure links.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureLinkModelImpl
.- Parameters:
start
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of ddm structure links
-
findAll
public static List<DDMStructureLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm structure links.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureLinkModelImpl
.- Parameters:
start
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of ddm structure links
-
removeAll
public static void removeAll()Removes all the ddm structure links from the database. -
countAll
public static int countAll()Returns the number of ddm structure links.- Returns:
- the number of ddm structure links
-
getPersistence
-
setPersistence
-