public class DDMStructureLinkUtil
extends java.lang.Object
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
DDMStructureLinkPersistence
Constructor and Description |
---|
DDMStructureLinkUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DDMStructureLink ddmStructureLink)
Caches the ddm structure link in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DDMStructureLink> ddmStructureLinks)
Caches the ddm 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 ddm structure links.
|
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 |
countByC_C(long classNameId,
long classPK)
Returns the number of ddm structure links where classNameId = ? and classPK = ?.
|
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 returns
null 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 returns
null 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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DDMStructureLink> |
fetchByPrimaryKeys(java.util.Set<java.io.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 java.util.List<DDMStructureLink> |
findAll()
Returns all the ddm structure links.
|
static java.util.List<DDMStructureLink> |
findAll(int start,
int end)
Returns a range of all the ddm structure links.
|
static java.util.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 java.util.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 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 a
NoSuchStructureLinkException if it could not be found. |
static java.util.List<DDMStructureLink> |
findByC_C(long classNameId,
long classPK)
Returns all the ddm structure links where classNameId = ? and classPK = ?.
|
static java.util.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 java.util.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 java.util.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 |
findByPrimaryKey(long structureLinkId)
Returns the ddm structure link with the primary key or throws a
NoSuchStructureLinkException if it could not be found. |
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 java.util.List<DDMStructureLink> |
findByStructureId(long structureId)
Returns all the ddm structure links where structureId = ?.
|
static java.util.List<DDMStructureLink> |
findByStructureId(long structureId,
int start,
int end)
Returns a range of all the ddm structure links where structureId = ?.
|
static java.util.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 java.util.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 java.util.List<DDMStructureLink> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DDMStructureLink> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.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 |
getPersistence() |
static DDMStructureLink |
remove(long structureLinkId)
Removes the ddm structure link with the primary key from the database.
|
static void |
removeAll()
Removes all the ddm structure links 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 |
removeByC_C(long classNameId,
long classPK)
Removes all the ddm structure links where classNameId = ? and classPK = ? from the database.
|
static void |
removeByStructureId(long structureId)
Removes all the ddm structure links where structureId = ? from the database.
|
static DDMStructureLink |
update(DDMStructureLink ddmStructureLink) |
static DDMStructureLink |
update(DDMStructureLink ddmStructureLink,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DDMStructureLink |
updateImpl(DDMStructureLink ddmStructureLink) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DDMStructureLink ddmStructureLink)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,DDMStructureLink> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DDMStructureLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DDMStructureLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DDMStructureLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DDMStructureLink update(DDMStructureLink ddmStructureLink)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DDMStructureLink update(DDMStructureLink ddmStructureLink, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DDMStructureLink> findByStructureId(long structureId)
structureId
- the structure IDpublic static java.util.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, then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
.
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)public static java.util.List<DDMStructureLink> findByStructureId(long structureId, int start, int end, com.liferay.portal.kernel.util.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, then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
.
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 (optionally null
)public static java.util.List<DDMStructureLink> findByStructureId(long structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMStructureLink findByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureLinkException
- if a matching ddm structure link could not be foundpublic static DDMStructureLink fetchByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator)
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm structure link could not be foundpublic static DDMStructureLink findByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureLinkException
- if a matching ddm structure link could not be foundpublic static DDMStructureLink fetchByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator)
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm structure link could not be foundpublic static DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId, long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
structureLinkId
- the primary key of the current ddm structure linkstructureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureLinkException
- if a ddm 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 IDpublic static java.util.List<DDMStructureLink> findByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static java.util.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, then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
.
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)public static java.util.List<DDMStructureLink> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.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, then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
.
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 (optionally null
)public static java.util.List<DDMStructureLink> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMStructureLink findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureLinkException
- if a matching ddm structure link could not be foundpublic static DDMStructureLink fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm structure link could not be foundpublic static DDMStructureLink findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureLinkException
- if a matching ddm structure link could not be foundpublic static DDMStructureLink fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm structure link could not be foundpublic static DDMStructureLink[] findByC_C_PrevAndNext(long structureLinkId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
structureLinkId
- the primary key of the current ddm structure linkclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureLinkException
- if a ddm structure link with the primary key could not be foundpublic static void removeByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic 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 pkstructureId
- the structure IDNoSuchStructureLinkException
- if a matching ddm structure link could not be foundpublic 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 pkstructureId
- the structure IDnull
if a matching ddm structure link could not be foundpublic static DDMStructureLink fetchByC_C_S(long classNameId, long classPK, long structureId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkstructureId
- the structure IDuseFinderCache
- whether to use the finder cachenull
if a matching ddm structure link could not be foundpublic static DDMStructureLink removeByC_C_S(long classNameId, long classPK, long structureId) throws NoSuchStructureLinkException
classNameId
- the class name IDclassPK
- the class pkstructureId
- the structure IDNoSuchStructureLinkException
public static int countByC_C_S(long classNameId, long classPK, long structureId)
classNameId
- the class name IDclassPK
- the class pkstructureId
- the structure IDpublic static void cacheResult(DDMStructureLink ddmStructureLink)
ddmStructureLink
- the ddm structure linkpublic static void cacheResult(java.util.List<DDMStructureLink> ddmStructureLinks)
ddmStructureLinks
- the ddm structure linkspublic static DDMStructureLink create(long structureLinkId)
structureLinkId
- the primary key for the new ddm structure linkpublic static DDMStructureLink remove(long structureLinkId) throws NoSuchStructureLinkException
structureLinkId
- the primary key of the ddm structure linkNoSuchStructureLinkException
- if a ddm 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 ddm structure linkNoSuchStructureLinkException
- if a ddm 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 ddm structure linknull
if a ddm structure link with the primary key could not be foundpublic static java.util.List<DDMStructureLink> findAll()
public static java.util.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, then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
.
start
- the lower bound of the range of ddm structure linksend
- the upper bound of the range of ddm structure links (not inclusive)public static java.util.List<DDMStructureLink> findAll(int start, int end, com.liferay.portal.kernel.util.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, then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
.
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 (optionally null
)public static java.util.List<DDMStructureLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DDMStructureLinkPersistence getPersistence()