Class CSDiagramPinUtil
com.liferay.commerce.shop.by.diagram.service.persistence.impl.CSDiagramPinPersistenceImpl 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:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CSDiagramPin csDiagramPin) Caches the cs diagram pin in the entity cache if it is enabled.static voidcacheResult(List<CSDiagramPin> csDiagramPins) Caches the cs diagram pins in the entity cache if it is enabled.static voidstatic voidclearCache(CSDiagramPin csDiagramPin) static intcountAll()Returns the number of cs diagram pins.static intcountByCPDefinitionId(long CPDefinitionId) Returns the number of cs diagram pins where CPDefinitionId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CSDiagramPincreate(long CSDiagramPinId) Creates a new cs diagram pin with the primary key.static CSDiagramPinfetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns the first cs diagram pin in the ordered set where CPDefinitionId = ?.static CSDiagramPinfetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns the last cs diagram pin in the ordered set where CPDefinitionId = ?.static CSDiagramPinfetchByPrimaryKey(long CSDiagramPinId) Returns the cs diagram pin with the primary key or returnsnullif it could not be found.static Map<Serializable, CSDiagramPin> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<CSDiagramPin> findAll()Returns all the cs diagram pins.static List<CSDiagramPin> findAll(int start, int end) Returns a range of all the cs diagram pins.static List<CSDiagramPin> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns an ordered range of all the cs diagram pins.static List<CSDiagramPin> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cs diagram pins.static List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId) Returns all the cs diagram pins where CPDefinitionId = ?.static List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId, int start, int end) Returns a range of all the cs diagram pins where CPDefinitionId = ?.static List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns an ordered range of all the cs diagram pins where CPDefinitionId = ?.static List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cs diagram pins where CPDefinitionId = ?.static CSDiagramPinfindByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns the first cs diagram pin in the ordered set where CPDefinitionId = ?.static CSDiagramPinfindByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns the last cs diagram pin in the ordered set where CPDefinitionId = ?.static CSDiagramPin[]findByCPDefinitionId_PrevAndNext(long CSDiagramPinId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns the cs diagram pins before and after the current cs diagram pin in the ordered set where CPDefinitionId = ?.static CSDiagramPinfindByPrimaryKey(long CSDiagramPinId) Returns the cs diagram pin with the primary key or throws aNoSuchCSDiagramPinExceptionif it could not be found.static List<CSDiagramPin> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CSDiagramPin> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CSDiagramPin> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) static CSDiagramPinPersistencestatic CSDiagramPinremove(long CSDiagramPinId) Removes the cs diagram pin with the primary key from the database.static voidRemoves all the cs diagram pins from the database.static voidremoveByCPDefinitionId(long CPDefinitionId) Removes all the cs diagram pins where CPDefinitionId = ? from the database.static voidsetPersistence(CSDiagramPinPersistence persistence) static CSDiagramPinupdate(CSDiagramPin csDiagramPin) static CSDiagramPinupdate(CSDiagramPin csDiagramPin, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CSDiagramPinupdateImpl(CSDiagramPin csDiagramPin)
-
Constructor Details
-
CSDiagramPinUtil
public CSDiagramPinUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<CSDiagramPin> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CSDiagramPin> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CSDiagramPin> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CSDiagramPin update(CSDiagramPin csDiagramPin, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByCPDefinitionId
Returns all the cs diagram pins where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition ID- Returns:
- the matching cs diagram pins
-
findByCPDefinitionId
Returns a range of all the cs diagram pins where CPDefinitionId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCSDiagramPinModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstart- the lower bound of the range of cs diagram pinsend- the upper bound of the range of cs diagram pins (not inclusive)- Returns:
- the range of matching cs diagram pins
-
findByCPDefinitionId
public static List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns an ordered range of all the cs diagram pins where CPDefinitionId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCSDiagramPinModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstart- the lower bound of the range of cs diagram pinsend- the upper bound of the range of cs diagram pins (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cs diagram pins
-
findByCPDefinitionId
public static List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cs diagram pins where CPDefinitionId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCSDiagramPinModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstart- the lower bound of the range of cs diagram pinsend- the upper bound of the range of cs diagram pins (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cs diagram pins
-
findByCPDefinitionId_First
public static CSDiagramPin findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) throws NoSuchCSDiagramPinException Returns the first cs diagram pin in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cs diagram pin
-
fetchByCPDefinitionId_First
public static CSDiagramPin fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns the first cs diagram pin in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cs diagram pin, or
nullif a matching cs diagram pin could not be found
-
findByCPDefinitionId_Last
public static CSDiagramPin findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) throws NoSuchCSDiagramPinException Returns the last cs diagram pin in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cs diagram pin
-
fetchByCPDefinitionId_Last
public static CSDiagramPin fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns the last cs diagram pin in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cs diagram pin, or
nullif a matching cs diagram pin could not be found
-
findByCPDefinitionId_PrevAndNext
public static CSDiagramPin[] findByCPDefinitionId_PrevAndNext(long CSDiagramPinId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) throws NoSuchCSDiagramPinException Returns the cs diagram pins before and after the current cs diagram pin in the ordered set where CPDefinitionId = ?.- Parameters:
CSDiagramPinId- the primary key of the current cs diagram pinCPDefinitionId- the cp definition IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cs diagram pin
-
removeByCPDefinitionId
public static void removeByCPDefinitionId(long CPDefinitionId) Removes all the cs diagram pins where CPDefinitionId = ? from the database.- Parameters:
CPDefinitionId- the cp definition ID
-
countByCPDefinitionId
public static int countByCPDefinitionId(long CPDefinitionId) Returns the number of cs diagram pins where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition ID- Returns:
- the number of matching cs diagram pins
-
cacheResult
Caches the cs diagram pin in the entity cache if it is enabled.- Parameters:
csDiagramPin- the cs diagram pin
-
cacheResult
Caches the cs diagram pins in the entity cache if it is enabled.- Parameters:
csDiagramPins- the cs diagram pins
-
create
Creates a new cs diagram pin with the primary key. Does not add the cs diagram pin to the database.- Parameters:
CSDiagramPinId- the primary key for the new cs diagram pin- Returns:
- the new cs diagram pin
-
remove
Removes the cs diagram pin with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CSDiagramPinId- the primary key of the cs diagram pin- Returns:
- the cs diagram pin that was removed
-
updateImpl
-
findByPrimaryKey
Returns the cs diagram pin with the primary key or throws aNoSuchCSDiagramPinExceptionif it could not be found.- Parameters:
CSDiagramPinId- the primary key of the cs diagram pin- Returns:
- the cs diagram pin
-
fetchByPrimaryKey
Returns the cs diagram pin with the primary key or returnsnullif it could not be found.- Parameters:
CSDiagramPinId- the primary key of the cs diagram pin- Returns:
- the cs diagram pin, or
nullif a cs diagram pin with the primary key could not be found
-
findAll
Returns all the cs diagram pins.- Returns:
- the cs diagram pins
-
findAll
Returns a range of all the cs diagram pins.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCSDiagramPinModelImpl.- Parameters:
start- the lower bound of the range of cs diagram pinsend- the upper bound of the range of cs diagram pins (not inclusive)- Returns:
- the range of cs diagram pins
-
findAll
public static List<CSDiagramPin> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) Returns an ordered range of all the cs diagram pins.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCSDiagramPinModelImpl.- Parameters:
start- the lower bound of the range of cs diagram pinsend- the upper bound of the range of cs diagram pins (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of cs diagram pins
-
findAll
public static List<CSDiagramPin> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cs diagram pins.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCSDiagramPinModelImpl.- Parameters:
start- the lower bound of the range of cs diagram pinsend- the upper bound of the range of cs diagram pins (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of cs diagram pins
-
removeAll
public static void removeAll()Removes all the cs diagram pins from the database. -
countAll
public static int countAll()Returns the number of cs diagram pins.- Returns:
- the number of cs diagram pins
-
getPersistence
-
setPersistence
-