Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.service.persistence
Interface DDMStructureLinkPersistence

All Superinterfaces:
BasePersistence<DDMStructureLink>
All Known Implementing Classes:
DDMStructureLinkPersistenceImpl

@ProviderType
public interface DDMStructureLinkPersistence
extends BasePersistence<DDMStructureLink>

The persistence interface for the d d m structure link service.

Caching information and settings can be found in portal.properties

See Also:
DDMStructureLinkPersistenceImpl, DDMStructureLinkUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(DDMStructureLink ddmStructureLink)
          Caches the d d m structure link in the entity cache if it is enabled.
 void cacheResult(List<DDMStructureLink> ddmStructureLinks)
          Caches the d d m structure links in the entity cache if it is enabled.
 int countAll()
          Returns the number of d d m structure links.
 int countByC_C_S(long classNameId, long classPK, long structureId)
          Returns the number of d d m structure links where classNameId = ? and classPK = ? and structureId = ?.
 int countByC_C(long classNameId, long classPK)
          Returns the number of d d m structure links where classNameId = ? and classPK = ?.
 int countByStructureId(long structureId)
          Returns the number of d d m structure links where structureId = ?.
 DDMStructureLink create(long structureLinkId)
          Creates a new d d m structure link with the primary key.
 DDMStructureLink fetchByC_C_First(long classNameId, long classPK, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the first d d m structure link in the ordered set where classNameId = ? and classPK = ?.
 DDMStructureLink fetchByC_C_Last(long classNameId, long classPK, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the last d d m structure link in the ordered set where classNameId = ? and classPK = ?.
 DDMStructureLink fetchByC_C_S(long classNameId, long classPK, long structureId)
          Returns the d d m structure link where classNameId = ? and classPK = ? and structureId = ? or returns null if it could not be found.
 DDMStructureLink fetchByC_C_S(long classNameId, long classPK, long structureId, boolean retrieveFromCache)
          Returns the d d m structure link where classNameId = ? and classPK = ? and structureId = ? or returns null if it could not be found, optionally using the finder cache.
 DDMStructureLink fetchByPrimaryKey(long structureLinkId)
          Returns the d d m structure link with the primary key or returns null if it could not be found.
 Map<Serializable,DDMStructureLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 DDMStructureLink fetchByStructureId_First(long structureId, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the first d d m structure link in the ordered set where structureId = ?.
 DDMStructureLink fetchByStructureId_Last(long structureId, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the last d d m structure link in the ordered set where structureId = ?.
 List<DDMStructureLink> findAll()
          Returns all the d d m structure links.
 List<DDMStructureLink> findAll(int start, int end)
          Returns a range of all the d d m structure links.
 List<DDMStructureLink> findAll(int start, int end, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns an ordered range of all the d d m structure links.
 DDMStructureLink findByC_C_First(long classNameId, long classPK, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the first d d m structure link in the ordered set where classNameId = ? and classPK = ?.
 DDMStructureLink findByC_C_Last(long classNameId, long classPK, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the last d d m structure link in the ordered set where classNameId = ? and classPK = ?.
 DDMStructureLink[] findByC_C_PrevAndNext(long structureLinkId, long classNameId, long classPK, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ? and classPK = ?.
 DDMStructureLink findByC_C_S(long classNameId, long classPK, long structureId)
          Returns the d d m structure link where classNameId = ? and classPK = ? and structureId = ? or throws a NoSuchStructureLinkException if it could not be found.
 List<DDMStructureLink> findByC_C(long classNameId, long classPK)
          Returns all the d d m structure links where classNameId = ? and classPK = ?.
 List<DDMStructureLink> findByC_C(long classNameId, long classPK, int start, int end)
          Returns a range of all the d d m structure links where classNameId = ? and classPK = ?.
 List<DDMStructureLink> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns an ordered range of all the d d m structure links where classNameId = ? and classPK = ?.
 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.
 DDMStructureLink findByStructureId_First(long structureId, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the first d d m structure link in the ordered set where structureId = ?.
 DDMStructureLink findByStructureId_Last(long structureId, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the last d d m structure link in the ordered set where structureId = ?.
 DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId, long structureId, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = ?.
 List<DDMStructureLink> findByStructureId(long structureId)
          Returns all the d d m structure links where structureId = ?.
 List<DDMStructureLink> findByStructureId(long structureId, int start, int end)
          Returns a range of all the d d m structure links where structureId = ?.
 List<DDMStructureLink> findByStructureId(long structureId, int start, int end, OrderByComparator<DDMStructureLink> orderByComparator)
          Returns an ordered range of all the d d m structure links where structureId = ?.
 DDMStructureLink remove(long structureLinkId)
          Removes the d d m structure link with the primary key from the database.
 void removeAll()
          Removes all the d d m structure links from the database.
 DDMStructureLink removeByC_C_S(long classNameId, long classPK, long structureId)
          Removes the d d m structure link where classNameId = ? and classPK = ? and structureId = ? from the database.
 void removeByC_C(long classNameId, long classPK)
          Removes all the d d m structure links where classNameId = ? and classPK = ? from the database.
 void removeByStructureId(long structureId)
          Removes all the d d m structure links where structureId = ? from the database.
 DDMStructureLink updateImpl(DDMStructureLink ddmStructureLink)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByStructureId

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

Parameters:
structureId - the structure ID
Returns:
the matching d d m structure links

findByStructureId

List<DDMStructureLink> findByStructureId(long structureId,
                                         int start,
                                         int end)
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

findByStructureId

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

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

findByStructureId_First

DDMStructureLink findByStructureId_First(long structureId,
                                         OrderByComparator<DDMStructureLink> orderByComparator)
                                         throws 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

fetchByStructureId_First

DDMStructureLink fetchByStructureId_First(long structureId,
                                          OrderByComparator<DDMStructureLink> orderByComparator)
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

findByStructureId_Last

DDMStructureLink findByStructureId_Last(long structureId,
                                        OrderByComparator<DDMStructureLink> orderByComparator)
                                        throws 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

fetchByStructureId_Last

DDMStructureLink fetchByStructureId_Last(long structureId,
                                         OrderByComparator<DDMStructureLink> orderByComparator)
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

findByStructureId_PrevAndNext

DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId,
                                                 long structureId,
                                                 OrderByComparator<DDMStructureLink> orderByComparator)
                                                 throws 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

removeByStructureId

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

Parameters:
structureId - the structure ID

countByStructureId

int countByStructureId(long structureId)
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

findByC_C

List<DDMStructureLink> findByC_C(long classNameId,
                                 long classPK)
Returns all the d d m structure links where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching d d m structure links

findByC_C

List<DDMStructureLink> findByC_C(long classNameId,
                                 long classPK,
                                 int start,
                                 int end)
Returns a range of all the d d m structure links where classNameId = ? and classPK = ?.

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
classPK - the class p k
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

findByC_C

List<DDMStructureLink> findByC_C(long classNameId,
                                 long classPK,
                                 int start,
                                 int end,
                                 OrderByComparator<DDMStructureLink> orderByComparator)
Returns an ordered range of all the d d m structure links where classNameId = ? and classPK = ?.

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
classPK - the class p k
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

findByC_C_First

DDMStructureLink findByC_C_First(long classNameId,
                                 long classPK,
                                 OrderByComparator<DDMStructureLink> orderByComparator)
                                 throws NoSuchStructureLinkException
Returns the first d d m structure link in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
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

fetchByC_C_First

DDMStructureLink fetchByC_C_First(long classNameId,
                                  long classPK,
                                  OrderByComparator<DDMStructureLink> orderByComparator)
Returns the first d d m structure link in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
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

findByC_C_Last

DDMStructureLink findByC_C_Last(long classNameId,
                                long classPK,
                                OrderByComparator<DDMStructureLink> orderByComparator)
                                throws NoSuchStructureLinkException
Returns the last d d m structure link in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
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

fetchByC_C_Last

DDMStructureLink fetchByC_C_Last(long classNameId,
                                 long classPK,
                                 OrderByComparator<DDMStructureLink> orderByComparator)
Returns the last d d m structure link in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
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

findByC_C_PrevAndNext

DDMStructureLink[] findByC_C_PrevAndNext(long structureLinkId,
                                         long classNameId,
                                         long classPK,
                                         OrderByComparator<DDMStructureLink> orderByComparator)
                                         throws NoSuchStructureLinkException
Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ? and classPK = ?.

Parameters:
structureLinkId - the primary key of the current d d m structure link
classNameId - the class name ID
classPK - the class p k
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

removeByC_C

void removeByC_C(long classNameId,
                 long classPK)
Removes all the d d m structure links where classNameId = ? and classPK = ? from the database.

Parameters:
classNameId - the class name ID
classPK - the class p k

countByC_C

int countByC_C(long classNameId,
               long classPK)
Returns the number of d d m structure links where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching d d m structure links

findByC_C_S

DDMStructureLink findByC_C_S(long classNameId,
                             long classPK,
                             long structureId)
                             throws NoSuchStructureLinkException
Returns the d d m structure link where classNameId = ? and classPK = ? and structureId = ? or throws a NoSuchStructureLinkException if it could not be found.

Parameters:
classNameId - the class name ID
classPK - the class p k
structureId - the structure ID
Returns:
the matching d d m structure link
Throws:
NoSuchStructureLinkException - if a matching d d m structure link could not be found

fetchByC_C_S

DDMStructureLink fetchByC_C_S(long classNameId,
                              long classPK,
                              long structureId)
Returns the d d m structure link where classNameId = ? and classPK = ? and structureId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
classNameId - the class name ID
classPK - the class p k
structureId - the structure ID
Returns:
the matching d d m structure link, or null if a matching d d m structure link could not be found

fetchByC_C_S

DDMStructureLink fetchByC_C_S(long classNameId,
                              long classPK,
                              long structureId,
                              boolean retrieveFromCache)
Returns the d d m structure link where classNameId = ? and classPK = ? and structureId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
classNameId - the class name ID
classPK - the class p k
structureId - the structure ID
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

removeByC_C_S

DDMStructureLink removeByC_C_S(long classNameId,
                               long classPK,
                               long structureId)
                               throws NoSuchStructureLinkException
Removes the d d m structure link where classNameId = ? and classPK = ? and structureId = ? from the database.

Parameters:
classNameId - the class name ID
classPK - the class p k
structureId - the structure ID
Returns:
the d d m structure link that was removed
Throws:
NoSuchStructureLinkException

countByC_C_S

int countByC_C_S(long classNameId,
                 long classPK,
                 long structureId)
Returns the number of d d m structure links where classNameId = ? and classPK = ? and structureId = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
structureId - the structure ID
Returns:
the number of matching d d m structure links

cacheResult

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

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

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

DDMStructureLink remove(long structureLinkId)
                        throws 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

updateImpl

DDMStructureLink updateImpl(DDMStructureLink ddmStructureLink)

findByPrimaryKey

DDMStructureLink findByPrimaryKey(long structureLinkId)
                                  throws 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

fetchByPrimaryKey

DDMStructureLink fetchByPrimaryKey(long structureLinkId)
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

fetchByPrimaryKeys

Map<Serializable,DDMStructureLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<DDMStructureLink>

findAll

List<DDMStructureLink> findAll()
Returns all the d d m structure links.

Returns:
the d d m structure links

findAll

List<DDMStructureLink> findAll(int start,
                               int end)
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

findAll

List<DDMStructureLink> findAll(int start,
                               int end,
                               OrderByComparator<DDMStructureLink> orderByComparator)
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

removeAll

void removeAll()
Removes all the d d m structure links from the database.


countAll

int countAll()
Returns the number of d d m structure links.

Returns:
the number of d d m structure links

Liferay 7.0-ce-m6