Liferay 6.2-ce-ga5

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

All Superinterfaces:
BasePersistence<DDMStorageLink>

@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

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.
 DDMStorageLink fetchByStructureId_First(long structureId, OrderByComparator orderByComparator)
          Returns the first d d m storage link in the ordered set where structureId = ?.
 DDMStorageLink fetchByStructureId_Last(long structureId, OrderByComparator orderByComparator)
          Returns the last d d m storage link in the ordered set where structureId = ?.
 DDMStorageLink fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first d d m storage link in the ordered set where uuid = ?.
 DDMStorageLink fetchByUuid_Last(String uuid, OrderByComparator 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 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 orderByComparator)
          Returns the first d d m storage link in the ordered set where structureId = ?.
 DDMStorageLink findByStructureId_Last(long structureId, OrderByComparator orderByComparator)
          Returns the last d d m storage link in the ordered set where structureId = ?.
 DDMStorageLink[] findByStructureId_PrevAndNext(long storageLinkId, long structureId, OrderByComparator 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 orderByComparator)
          Returns an ordered range of all the d d m storage links where structureId = ?.
 DDMStorageLink findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first d d m storage link in the ordered set where uuid = ?.
 DDMStorageLink findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last d d m storage link in the ordered set where uuid = ?.
 DDMStorageLink[] findByUuid_PrevAndNext(long storageLinkId, String uuid, OrderByComparator 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 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)
                                throws SystemException
Returns all the d d m storage links where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching d d m storage links
Throws:
SystemException - if a system exception occurred

findByUuid

List<DDMStorageLink> findByUuid(String uuid,
                                int start,
                                int end)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid

List<DDMStorageLink> findByUuid(String uuid,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_First

DDMStorageLink findByUuid_First(String uuid,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       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
SystemException - if a system exception occurred

fetchByUuid_First

DDMStorageLink fetchByUuid_First(String uuid,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_Last

DDMStorageLink findByUuid_Last(String uuid,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      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
SystemException - if a system exception occurred

fetchByUuid_Last

DDMStorageLink fetchByUuid_Last(String uuid,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

DDMStorageLink[] findByUuid_PrevAndNext(long storageLinkId,
                                        String uuid,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               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
SystemException - if a system exception occurred

removeByUuid

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

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

int countByUuid(String uuid)
                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByClassPK

DDMStorageLink findByClassPK(long classPK)
                             throws SystemException,
                                    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
SystemException - if a system exception occurred

fetchByClassPK

DDMStorageLink fetchByClassPK(long classPK)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByClassPK

DDMStorageLink fetchByClassPK(long classPK,
                              boolean retrieveFromCache)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeByClassPK

DDMStorageLink removeByClassPK(long classPK)
                               throws SystemException,
                                      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:
SystemException - if a system exception occurred
NoSuchStorageLinkException

countByClassPK

int countByClassPK(long classPK)
                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByStructureId

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

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

findByStructureId

List<DDMStorageLink> findByStructureId(long structureId,
                                       int start,
                                       int end)
                                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByStructureId

List<DDMStorageLink> findByStructureId(long structureId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByStructureId_First

DDMStorageLink findByStructureId_First(long structureId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException,
                                              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
SystemException - if a system exception occurred

fetchByStructureId_First

DDMStorageLink fetchByStructureId_First(long structureId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByStructureId_Last

DDMStorageLink findByStructureId_Last(long structureId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             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
SystemException - if a system exception occurred

fetchByStructureId_Last

DDMStorageLink fetchByStructureId_Last(long structureId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByStructureId_PrevAndNext

DDMStorageLink[] findByStructureId_PrevAndNext(long storageLinkId,
                                               long structureId,
                                               OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      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
SystemException - if a system exception occurred

removeByStructureId

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

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

countByStructureId

int countByStructureId(long structureId)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

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 SystemException,
                             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
SystemException - if a system exception occurred

updateImpl

DDMStorageLink updateImpl(DDMStorageLink ddmStorageLink)
                          throws SystemException
Throws:
SystemException

findByPrimaryKey

DDMStorageLink findByPrimaryKey(long storageLinkId)
                                throws SystemException,
                                       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
SystemException - if a system exception occurred

fetchByPrimaryKey

DDMStorageLink fetchByPrimaryKey(long storageLinkId)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findAll

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

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

findAll

List<DDMStorageLink> findAll(int start,
                             int end)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findAll

List<DDMStorageLink> findAll(int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countAll

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

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

Liferay 6.2-ce-ga5