Liferay 7.0-ce-m6

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

All Superinterfaces:
BasePersistence<DDMStorageLink>
All Known Implementing Classes:
DDMStorageLinkPersistenceImpl

@ProviderType
public interface DDMStorageLinkPersistence
extends BasePersistence<DDMStorageLink>

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

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(DDMStorageLink ddmStorageLink)
          Caches the d d m storage link in the entity cache if it is enabled.
 void cacheResult(List<DDMStorageLink> ddmStorageLinks)
          Caches the d d m storage links in the entity cache if it is enabled.
 int countAll()
          Returns the number of d d m storage links.
 int countByClassPK(long classPK)
          Returns the number of d d m storage links where classPK = ?.
 int countByStructureId(long structureId)
          Returns the number of d d m storage links where structureId = ?.
 int countByUuid(String uuid)
          Returns the number of d d m storage links where uuid = ?.
 DDMStorageLink create(long storageLinkId)
          Creates a new d d m storage link with the primary key.
 DDMStorageLink fetchByClassPK(long classPK)
          Returns the d d m storage link where classPK = ? or returns null if it could not be found.
 DDMStorageLink fetchByClassPK(long classPK, boolean retrieveFromCache)
          Returns the d d m storage link where classPK = ? or returns null if it could not be found, optionally using the finder cache.
 DDMStorageLink fetchByPrimaryKey(long storageLinkId)
          Returns the d d m storage link with the primary key or returns null if it could not be found.
 Map<Serializable,DDMStorageLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 DDMStorageLink fetchByStructureId_First(long structureId, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the first d d m storage link in the ordered set where structureId = ?.
 DDMStorageLink fetchByStructureId_Last(long structureId, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the last d d m storage link in the ordered set where structureId = ?.
 DDMStorageLink fetchByUuid_First(String uuid, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the first d d m storage link in the ordered set where uuid = ?.
 DDMStorageLink fetchByUuid_Last(String uuid, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the last d d m storage link in the ordered set where uuid = ?.
 List<DDMStorageLink> findAll()
          Returns all the d d m storage links.
 List<DDMStorageLink> findAll(int start, int end)
          Returns a range of all the d d m storage links.
 List<DDMStorageLink> findAll(int start, int end, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns an ordered range of all the d d m storage links.
 DDMStorageLink findByClassPK(long classPK)
          Returns the d d m storage link where classPK = ? or throws a NoSuchStorageLinkException if it could not be found.
 DDMStorageLink findByPrimaryKey(long storageLinkId)
          Returns the d d m storage link with the primary key or throws a NoSuchStorageLinkException if it could not be found.
 DDMStorageLink findByStructureId_First(long structureId, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the first d d m storage link in the ordered set where structureId = ?.
 DDMStorageLink findByStructureId_Last(long structureId, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the last d d m storage link in the ordered set where structureId = ?.
 DDMStorageLink[] findByStructureId_PrevAndNext(long storageLinkId, long structureId, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the d d m storage links before and after the current d d m storage link in the ordered set where structureId = ?.
 List<DDMStorageLink> findByStructureId(long structureId)
          Returns all the d d m storage links where structureId = ?.
 List<DDMStorageLink> findByStructureId(long structureId, int start, int end)
          Returns a range of all the d d m storage links where structureId = ?.
 List<DDMStorageLink> findByStructureId(long structureId, int start, int end, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns an ordered range of all the d d m storage links where structureId = ?.
 DDMStorageLink findByUuid_First(String uuid, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the first d d m storage link in the ordered set where uuid = ?.
 DDMStorageLink findByUuid_Last(String uuid, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the last d d m storage link in the ordered set where uuid = ?.
 DDMStorageLink[] findByUuid_PrevAndNext(long storageLinkId, String uuid, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns the d d m storage links before and after the current d d m storage link in the ordered set where uuid = ?.
 List<DDMStorageLink> findByUuid(String uuid)
          Returns all the d d m storage links where uuid = ?.
 List<DDMStorageLink> findByUuid(String uuid, int start, int end)
          Returns a range of all the d d m storage links where uuid = ?.
 List<DDMStorageLink> findByUuid(String uuid, int start, int end, OrderByComparator<DDMStorageLink> orderByComparator)
          Returns an ordered range of all the d d m storage links where uuid = ?.
 DDMStorageLink remove(long storageLinkId)
          Removes the d d m storage link with the primary key from the database.
 void removeAll()
          Removes all the d d m storage links from the database.
 DDMStorageLink removeByClassPK(long classPK)
          Removes the d d m storage link where classPK = ? from the database.
 void removeByStructureId(long structureId)
          Removes all the d d m storage links where structureId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the d d m storage links where uuid = ? from the database.
 DDMStorageLink updateImpl(DDMStorageLink ddmStorageLink)
           
 
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

findByUuid

List<DDMStorageLink> findByUuid(String uuid)
Returns all the d d m storage links where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching d d m storage links

findByUuid

List<DDMStorageLink> findByUuid(String uuid,
                                int start,
                                int end)
Returns a range of all the d d m storage links where uuid = ?.

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 DDMStorageLinkModelImpl. 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:
uuid - the uuid
start - the lower bound of the range of d d m storage links
end - the upper bound of the range of d d m storage links (not inclusive)
Returns:
the range of matching d d m storage links

findByUuid

List<DDMStorageLink> findByUuid(String uuid,
                                int start,
                                int end,
                                OrderByComparator<DDMStorageLink> orderByComparator)
Returns an ordered range of all the d d m storage links where uuid = ?.

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 DDMStorageLinkModelImpl. 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:
uuid - the uuid
start - the lower bound of the range of d d m storage links
end - the upper bound of the range of d d m storage links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m storage links

findByUuid_First

DDMStorageLink findByUuid_First(String uuid,
                                OrderByComparator<DDMStorageLink> orderByComparator)
                                throws NoSuchStorageLinkException
Returns the first d d m storage link in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m storage link
Throws:
NoSuchStorageLinkException - if a matching d d m storage link could not be found

fetchByUuid_First

DDMStorageLink fetchByUuid_First(String uuid,
                                 OrderByComparator<DDMStorageLink> orderByComparator)
Returns the first d d m storage link in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m storage link, or null if a matching d d m storage link could not be found

findByUuid_Last

DDMStorageLink findByUuid_Last(String uuid,
                               OrderByComparator<DDMStorageLink> orderByComparator)
                               throws NoSuchStorageLinkException
Returns the last d d m storage link in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m storage link
Throws:
NoSuchStorageLinkException - if a matching d d m storage link could not be found

fetchByUuid_Last

DDMStorageLink fetchByUuid_Last(String uuid,
                                OrderByComparator<DDMStorageLink> orderByComparator)
Returns the last d d m storage link in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m storage link, or null if a matching d d m storage link could not be found

findByUuid_PrevAndNext

DDMStorageLink[] findByUuid_PrevAndNext(long storageLinkId,
                                        String uuid,
                                        OrderByComparator<DDMStorageLink> orderByComparator)
                                        throws NoSuchStorageLinkException
Returns the d d m storage links before and after the current d d m storage link in the ordered set where uuid = ?.

Parameters:
storageLinkId - the primary key of the current d d m storage link
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m storage link
Throws:
NoSuchStorageLinkException - if a d d m storage link with the primary key could not be found

removeByUuid

void removeByUuid(String uuid)
Removes all the d d m storage links where uuid = ? from the database.

Parameters:
uuid - the uuid

countByUuid

int countByUuid(String uuid)
Returns the number of d d m storage links where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching d d m storage links

findByClassPK

DDMStorageLink findByClassPK(long classPK)
                             throws NoSuchStorageLinkException
Returns the d d m storage link where classPK = ? or throws a NoSuchStorageLinkException if it could not be found.

Parameters:
classPK - the class p k
Returns:
the matching d d m storage link
Throws:
NoSuchStorageLinkException - if a matching d d m storage link could not be found

fetchByClassPK

DDMStorageLink fetchByClassPK(long classPK)
Returns the d d m storage 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 storage link, or null if a matching d d m storage link could not be found

fetchByClassPK

DDMStorageLink fetchByClassPK(long classPK,
                              boolean retrieveFromCache)
Returns the d d m storage 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 storage link, or null if a matching d d m storage link could not be found

removeByClassPK

DDMStorageLink removeByClassPK(long classPK)
                               throws NoSuchStorageLinkException
Removes the d d m storage link where classPK = ? from the database.

Parameters:
classPK - the class p k
Returns:
the d d m storage link that was removed
Throws:
NoSuchStorageLinkException

countByClassPK

int countByClassPK(long classPK)
Returns the number of d d m storage links where classPK = ?.

Parameters:
classPK - the class p k
Returns:
the number of matching d d m storage links

findByStructureId

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

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

findByStructureId

List<DDMStorageLink> findByStructureId(long structureId,
                                       int start,
                                       int end)
Returns a range of all the d d m storage 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 DDMStorageLinkModelImpl. 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 storage links
end - the upper bound of the range of d d m storage links (not inclusive)
Returns:
the range of matching d d m storage links

findByStructureId

List<DDMStorageLink> findByStructureId(long structureId,
                                       int start,
                                       int end,
                                       OrderByComparator<DDMStorageLink> orderByComparator)
Returns an ordered range of all the d d m storage 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 DDMStorageLinkModelImpl. 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 storage links
end - the upper bound of the range of d d m storage links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m storage links

findByStructureId_First

DDMStorageLink findByStructureId_First(long structureId,
                                       OrderByComparator<DDMStorageLink> orderByComparator)
                                       throws NoSuchStorageLinkException
Returns the first d d m storage 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 storage link
Throws:
NoSuchStorageLinkException - if a matching d d m storage link could not be found

fetchByStructureId_First

DDMStorageLink fetchByStructureId_First(long structureId,
                                        OrderByComparator<DDMStorageLink> orderByComparator)
Returns the first d d m storage 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 storage link, or null if a matching d d m storage link could not be found

findByStructureId_Last

DDMStorageLink findByStructureId_Last(long structureId,
                                      OrderByComparator<DDMStorageLink> orderByComparator)
                                      throws NoSuchStorageLinkException
Returns the last d d m storage 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 storage link
Throws:
NoSuchStorageLinkException - if a matching d d m storage link could not be found

fetchByStructureId_Last

DDMStorageLink fetchByStructureId_Last(long structureId,
                                       OrderByComparator<DDMStorageLink> orderByComparator)
Returns the last d d m storage 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 storage link, or null if a matching d d m storage link could not be found

findByStructureId_PrevAndNext

DDMStorageLink[] findByStructureId_PrevAndNext(long storageLinkId,
                                               long structureId,
                                               OrderByComparator<DDMStorageLink> orderByComparator)
                                               throws NoSuchStorageLinkException
Returns the d d m storage links before and after the current d d m storage link in the ordered set where structureId = ?.

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

removeByStructureId

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

Parameters:
structureId - the structure ID

countByStructureId

int countByStructureId(long structureId)
Returns the number of d d m storage links where structureId = ?.

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

cacheResult

void cacheResult(DDMStorageLink ddmStorageLink)
Caches the d d m storage link in the entity cache if it is enabled.

Parameters:
ddmStorageLink - the d d m storage link

cacheResult

void cacheResult(List<DDMStorageLink> ddmStorageLinks)
Caches the d d m storage links in the entity cache if it is enabled.

Parameters:
ddmStorageLinks - the d d m storage links

create

DDMStorageLink create(long storageLinkId)
Creates a new d d m storage link with the primary key. Does not add the d d m storage link to the database.

Parameters:
storageLinkId - the primary key for the new d d m storage link
Returns:
the new d d m storage link

remove

DDMStorageLink remove(long storageLinkId)
                      throws NoSuchStorageLinkException
Removes the d d m storage link with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
storageLinkId - the primary key of the d d m storage link
Returns:
the d d m storage link that was removed
Throws:
NoSuchStorageLinkException - if a d d m storage link with the primary key could not be found

updateImpl

DDMStorageLink updateImpl(DDMStorageLink ddmStorageLink)

findByPrimaryKey

DDMStorageLink findByPrimaryKey(long storageLinkId)
                                throws NoSuchStorageLinkException
Returns the d d m storage link with the primary key or throws a NoSuchStorageLinkException if it could not be found.

Parameters:
storageLinkId - the primary key of the d d m storage link
Returns:
the d d m storage link
Throws:
NoSuchStorageLinkException - if a d d m storage link with the primary key could not be found

fetchByPrimaryKey

DDMStorageLink fetchByPrimaryKey(long storageLinkId)
Returns the d d m storage link with the primary key or returns null if it could not be found.

Parameters:
storageLinkId - the primary key of the d d m storage link
Returns:
the d d m storage link, or null if a d d m storage link with the primary key could not be found

fetchByPrimaryKeys

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

findAll

List<DDMStorageLink> findAll()
Returns all the d d m storage links.

Returns:
the d d m storage links

findAll

List<DDMStorageLink> findAll(int start,
                             int end)
Returns a range of all the d d m storage 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 DDMStorageLinkModelImpl. 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 storage links
end - the upper bound of the range of d d m storage links (not inclusive)
Returns:
the range of d d m storage links

findAll

List<DDMStorageLink> findAll(int start,
                             int end,
                             OrderByComparator<DDMStorageLink> orderByComparator)
Returns an ordered range of all the d d m storage 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 DDMStorageLinkModelImpl. 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 storage links
end - the upper bound of the range of d d m storage links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m storage links

removeAll

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


countAll

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

Returns:
the number of d d m storage links

Liferay 7.0-ce-m6