|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkUtil
@ProviderType public class DDMStorageLinkUtil
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
DDMStorageLinkPersistence,
DDMStorageLinkPersistenceImpl| 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 = ?. |
static 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 Map<Serializable,DDMStorageLink> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static DDMStorageLink |
fetchByStructureId_First(long structureId,
OrderByComparator<DDMStorageLink> orderByComparator)
Returns the first d d m storage link in the ordered set where structureId = ?. |
static DDMStorageLink |
fetchByStructureId_Last(long structureId,
OrderByComparator<DDMStorageLink> orderByComparator)
Returns the last d d m storage link in the ordered set where structureId = ?. |
static DDMStorageLink |
fetchByUuid_First(String uuid,
OrderByComparator<DDMStorageLink> orderByComparator)
Returns the first d d m storage link in the ordered set where uuid = ?. |
static DDMStorageLink |
fetchByUuid_Last(String uuid,
OrderByComparator<DDMStorageLink> 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<DDMStorageLink> 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<DDMStorageLink> orderByComparator)
Returns the first d d m storage link in the ordered set where structureId = ?. |
static DDMStorageLink |
findByStructureId_Last(long structureId,
OrderByComparator<DDMStorageLink> orderByComparator)
Returns the last d d m storage link in the ordered set where structureId = ?. |
static 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 = ?. |
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<DDMStorageLink> orderByComparator)
Returns an ordered range of all the d d m storage links where structureId = ?. |
static DDMStorageLink |
findByUuid_First(String uuid,
OrderByComparator<DDMStorageLink> orderByComparator)
Returns the first d d m storage link in the ordered set where uuid = ?. |
static DDMStorageLink |
findByUuid_Last(String uuid,
OrderByComparator<DDMStorageLink> orderByComparator)
Returns the last d d m storage link in the ordered set where uuid = ?. |
static 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 = ?. |
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<DDMStorageLink> 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<DDMStorageLink> 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. As of 6.2.0 |
static DDMStorageLink |
update(DDMStorageLink ddmStorageLink)
|
static DDMStorageLink |
update(DDMStorageLink ddmStorageLink,
ServiceContext serviceContext)
|
static DDMStorageLink |
updateImpl(DDMStorageLink ddmStorageLink)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DDMStorageLinkUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(DDMStorageLink ddmStorageLink)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<DDMStorageLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<DDMStorageLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<DDMStorageLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DDMStorageLink> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static DDMStorageLink update(DDMStorageLink ddmStorageLink)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static DDMStorageLink update(DDMStorageLink ddmStorageLink,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<DDMStorageLink> findByUuid(String uuid)
uuid - the uuid
public static List<DDMStorageLink> findByUuid(String uuid,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
uuid - the uuidstart - the lower bound of the range of d d m storage linksend - the upper bound of the range of d d m storage links (not inclusive)
public static List<DDMStorageLink> findByUuid(String uuid,
int start,
int end,
OrderByComparator<DDMStorageLink> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
uuid - the uuidstart - the lower bound of the range of d d m storage linksend - the upper bound of the range of d d m storage links (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static DDMStorageLink findByUuid_First(String uuid,
OrderByComparator<DDMStorageLink> orderByComparator)
throws NoSuchStorageLinkException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchStorageLinkException - if a matching d d m storage link could not be found
public static DDMStorageLink fetchByUuid_First(String uuid,
OrderByComparator<DDMStorageLink> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m storage link could not be found
public static DDMStorageLink findByUuid_Last(String uuid,
OrderByComparator<DDMStorageLink> orderByComparator)
throws NoSuchStorageLinkException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchStorageLinkException - if a matching d d m storage link could not be found
public static DDMStorageLink fetchByUuid_Last(String uuid,
OrderByComparator<DDMStorageLink> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m storage link could not be found
public static DDMStorageLink[] findByUuid_PrevAndNext(long storageLinkId,
String uuid,
OrderByComparator<DDMStorageLink> orderByComparator)
throws NoSuchStorageLinkException
storageLinkId - the primary key of the current d d m storage linkuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchStorageLinkException - if a d d m storage link with the primary key could not be foundpublic static void removeByUuid(String uuid)
uuid - the uuidpublic static int countByUuid(String uuid)
uuid - the uuid
public static DDMStorageLink findByClassPK(long classPK)
throws NoSuchStorageLinkException
NoSuchStorageLinkException if it could not be found.
classPK - the class p k
NoSuchStorageLinkException - if a matching d d m storage link could not be foundpublic static DDMStorageLink fetchByClassPK(long classPK)
null if it could not be found. Uses the finder cache.
classPK - the class p k
null if a matching d d m storage link could not be found
public static DDMStorageLink fetchByClassPK(long classPK,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
classPK - the class p kretrieveFromCache - whether to use the finder cache
null if a matching d d m storage link could not be found
public static DDMStorageLink removeByClassPK(long classPK)
throws NoSuchStorageLinkException
classPK - the class p k
NoSuchStorageLinkExceptionpublic static int countByClassPK(long classPK)
classPK - the class p k
public static List<DDMStorageLink> findByStructureId(long structureId)
structureId - the structure ID
public static List<DDMStorageLink> findByStructureId(long structureId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
structureId - the structure IDstart - the lower bound of the range of d d m storage linksend - the upper bound of the range of d d m storage links (not inclusive)
public static List<DDMStorageLink> findByStructureId(long structureId,
int start,
int end,
OrderByComparator<DDMStorageLink> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
structureId - the structure IDstart - the lower bound of the range of d d m storage linksend - the upper bound of the range of d d m storage links (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static DDMStorageLink findByStructureId_First(long structureId,
OrderByComparator<DDMStorageLink> orderByComparator)
throws NoSuchStorageLinkException
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchStorageLinkException - if a matching d d m storage link could not be found
public static DDMStorageLink fetchByStructureId_First(long structureId,
OrderByComparator<DDMStorageLink> orderByComparator)
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m storage link could not be found
public static DDMStorageLink findByStructureId_Last(long structureId,
OrderByComparator<DDMStorageLink> orderByComparator)
throws NoSuchStorageLinkException
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchStorageLinkException - if a matching d d m storage link could not be found
public static DDMStorageLink fetchByStructureId_Last(long structureId,
OrderByComparator<DDMStorageLink> orderByComparator)
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m storage link could not be found
public static DDMStorageLink[] findByStructureId_PrevAndNext(long storageLinkId,
long structureId,
OrderByComparator<DDMStorageLink> orderByComparator)
throws NoSuchStorageLinkException
storageLinkId - the primary key of the current d d m storage linkstructureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchStorageLinkException - if a d d m storage link with the primary key could not be foundpublic static void removeByStructureId(long structureId)
structureId - the structure IDpublic static int countByStructureId(long structureId)
structureId - the structure ID
public static void cacheResult(DDMStorageLink ddmStorageLink)
ddmStorageLink - the d d m storage linkpublic static void cacheResult(List<DDMStorageLink> ddmStorageLinks)
ddmStorageLinks - the d d m storage linkspublic static DDMStorageLink create(long storageLinkId)
storageLinkId - the primary key for the new d d m storage link
public static DDMStorageLink remove(long storageLinkId)
throws NoSuchStorageLinkException
storageLinkId - the primary key of the d d m storage link
NoSuchStorageLinkException - if a d d m storage link with the primary key could not be foundpublic static DDMStorageLink updateImpl(DDMStorageLink ddmStorageLink)
public static DDMStorageLink findByPrimaryKey(long storageLinkId)
throws NoSuchStorageLinkException
NoSuchStorageLinkException if it could not be found.
storageLinkId - the primary key of the d d m storage link
NoSuchStorageLinkException - if a d d m storage link with the primary key could not be foundpublic static DDMStorageLink fetchByPrimaryKey(long storageLinkId)
null if it could not be found.
storageLinkId - the primary key of the d d m storage link
null if a d d m storage link with the primary key could not be foundpublic static Map<Serializable,DDMStorageLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<DDMStorageLink> findAll()
public static List<DDMStorageLink> findAll(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
start - the lower bound of the range of d d m storage linksend - the upper bound of the range of d d m storage links (not inclusive)
public static List<DDMStorageLink> findAll(int start,
int end,
OrderByComparator<DDMStorageLink> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
start - the lower bound of the range of d d m storage linksend - the upper bound of the range of d d m storage links (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static void removeAll()
public static int countAll()
public static DDMStorageLinkPersistence getPersistence()
@Deprecated public void setPersistence(DDMStorageLinkPersistence persistence)
|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||