Liferay 6.1.2-ce-ga3

com.liferay.portlet.dynamicdatamapping.service.persistence
Class DDMStorageLinkUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkUtil

public class DDMStorageLinkUtil
extends Object

The persistence utility for the d d m storage link service. This utility wraps DDMStorageLinkPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
DDMStorageLinkUtil()
           
 
Method Summary
static void cacheResult(DDMStorageLink ddmStorageLink)
          Caches the d d m storage link in the entity cache if it is enabled.
static void cacheResult(List<DDMStorageLink> ddmStorageLinks)
          Caches the d d m storage links in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DDMStorageLink ddmStorageLink)
           
static int countAll()
          Returns the number of d d m storage links.
static int countByClassPK(long classPK)
          Returns the number of d d m storage links where classPK = ?.
static int countByStructureId(long structureId)
          Returns the number of d d m storage links where structureId = ?.
static int countByUuid(String uuid)
          Returns the number of d d m storage links where uuid = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DDMStorageLink create(long storageLinkId)
          Creates a new d d m storage link with the primary key.
static DDMStorageLink fetchByClassPK(long classPK)
          Returns the d d m storage link where classPK = ? or returns null if it could not be found.
static 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.
static DDMStorageLink fetchByPrimaryKey(long storageLinkId)
          Returns the d d m storage link with the primary key or returns null if it could not be found.
static DDMStorageLink fetchByStructureId_First(long structureId, OrderByComparator orderByComparator)
          Returns the first d d m storage link in the ordered set where structureId = ?.
static DDMStorageLink fetchByStructureId_Last(long structureId, OrderByComparator orderByComparator)
          Returns the last d d m storage link in the ordered set where structureId = ?.
static DDMStorageLink fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first d d m storage link in the ordered set where uuid = ?.
static DDMStorageLink fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last d d m storage link in the ordered set where uuid = ?.
static List<DDMStorageLink> findAll()
          Returns all the d d m storage links.
static List<DDMStorageLink> findAll(int start, int end)
          Returns a range of all the d d m storage links.
static List<DDMStorageLink> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m storage links.
static DDMStorageLink findByClassPK(long classPK)
          Returns the d d m storage link where classPK = ? or throws a NoSuchStorageLinkException if it could not be found.
static 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.
static DDMStorageLink findByStructureId_First(long structureId, OrderByComparator orderByComparator)
          Returns the first d d m storage link in the ordered set where structureId = ?.
static DDMStorageLink findByStructureId_Last(long structureId, OrderByComparator orderByComparator)
          Returns the last d d m storage link in the ordered set where structureId = ?.
static 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 = ?.
static List<DDMStorageLink> findByStructureId(long structureId)
          Returns all the d d m storage links where structureId = ?.
static List<DDMStorageLink> findByStructureId(long structureId, int start, int end)
          Returns a range of all the d d m storage links where structureId = ?.
static 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 = ?.
static DDMStorageLink findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first d d m storage link in the ordered set where uuid = ?.
static DDMStorageLink findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last d d m storage link in the ordered set where uuid = ?.
static 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 = ?.
static List<DDMStorageLink> findByUuid(String uuid)
          Returns all the d d m storage links where uuid = ?.
static List<DDMStorageLink> findByUuid(String uuid, int start, int end)
          Returns a range of all the d d m storage links where uuid = ?.
static 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 = ?.
static List<DDMStorageLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DDMStorageLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DDMStorageLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static DDMStorageLinkPersistence getPersistence()
           
static DDMStorageLink remove(long storageLinkId)
          Removes the d d m storage link with the primary key from the database.
static void removeAll()
          Removes all the d d m storage links from the database.
static DDMStorageLink removeByClassPK(long classPK)
          Removes the d d m storage link where classPK = ? from the database.
static void removeByStructureId(long structureId)
          Removes all the d d m storage links where structureId = ? from the database.
static void removeByUuid(String uuid)
          Removes all the d d m storage links where uuid = ? from the database.
 void setPersistence(DDMStorageLinkPersistence persistence)
          Deprecated.  
static DDMStorageLink update(DDMStorageLink ddmStorageLink, boolean merge)
           
static DDMStorageLink update(DDMStorageLink ddmStorageLink, boolean merge, ServiceContext serviceContext)
           
static DDMStorageLink updateImpl(DDMStorageLink ddmStorageLink, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMStorageLinkUtil

public DDMStorageLinkUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(DDMStorageLink ddmStorageLink)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDMStorageLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDMStorageLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                        int start,
                                                        int end)
                                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<DDMStorageLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                        int start,
                                                        int end,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static DDMStorageLink update(DDMStorageLink ddmStorageLink,
                                    boolean merge)
                             throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static DDMStorageLink update(DDMStorageLink ddmStorageLink,
                                    boolean merge,
                                    ServiceContext serviceContext)
                             throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static 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

public static 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

public static 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

public static 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

public static DDMStorageLink updateImpl(DDMStorageLink ddmStorageLink,
                                        boolean merge)
                                 throws SystemException
Throws:
SystemException

findByPrimaryKey

public static 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

public static 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

findByUuid

public static 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

public static 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.

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

public static 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.

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

public static 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

public static 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

public static 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

public static 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

public static 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

findByClassPK

public static 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

public static 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

public static 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

findByStructureId

public static 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

public static 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.

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

public static 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.

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

public static 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

public static 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

public static 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

public static 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

public static 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

findAll

public static 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

public static 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.

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

public static 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.

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

removeByUuid

public static 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

removeByClassPK

public static 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

removeByStructureId

public static 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

removeAll

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

Throws:
SystemException - if a system exception occurred

countByUuid

public static 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

countByClassPK

public static 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

countByStructureId

public static 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

countAll

public static 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

getPersistence

public static DDMStorageLinkPersistence getPersistence()

setPersistence

public void setPersistence(DDMStorageLinkPersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3