public class CSDiagramPinUtil
extends java.lang.Object
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
CSDiagramPinPersistence
Constructor and Description |
---|
CSDiagramPinUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CSDiagramPin csDiagramPin)
Caches the cs diagram pin in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CSDiagramPin> csDiagramPins)
Caches the cs diagram pins in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CSDiagramPin csDiagramPin) |
static int |
countAll()
Returns the number of cs diagram pins.
|
static int |
countByCPDefinitionId(long CPDefinitionId)
Returns the number of cs diagram pins where CPDefinitionId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CSDiagramPin |
create(long CSDiagramPinId)
Creates a new cs diagram pin with the primary key.
|
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 = ?.
|
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 = ?.
|
static CSDiagramPin |
fetchByPrimaryKey(long CSDiagramPinId)
Returns the cs diagram pin with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CSDiagramPin> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CSDiagramPin> |
findAll()
Returns all the cs diagram pins.
|
static java.util.List<CSDiagramPin> |
findAll(int start,
int end)
Returns a range of all the cs diagram pins.
|
static java.util.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 java.util.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 CSDiagramPin |
findByCPDefinitionId_First(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator)
Returns the first cs diagram pin in the ordered set where CPDefinitionId = ?.
|
static CSDiagramPin |
findByCPDefinitionId_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 java.util.List<CSDiagramPin> |
findByCPDefinitionId(long CPDefinitionId)
Returns all the cs diagram pins where CPDefinitionId = ?.
|
static java.util.List<CSDiagramPin> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end)
Returns a range of all the cs diagram pins where CPDefinitionId = ?.
|
static java.util.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 java.util.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 CSDiagramPin |
findByPrimaryKey(long CSDiagramPinId)
Returns the cs diagram pin with the primary key or throws a
NoSuchCSDiagramPinException if it could not be found. |
static java.util.List<CSDiagramPin> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CSDiagramPin> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CSDiagramPin> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) |
static CSDiagramPinPersistence |
getPersistence() |
static CSDiagramPin |
remove(long CSDiagramPinId)
Removes the cs diagram pin with the primary key from the database.
|
static void |
removeAll()
Removes all the cs diagram pins from the database.
|
static void |
removeByCPDefinitionId(long CPDefinitionId)
Removes all the cs diagram pins where CPDefinitionId = ? from the database.
|
static void |
setPersistence(CSDiagramPinPersistence persistence) |
static CSDiagramPin |
update(CSDiagramPin csDiagramPin) |
static CSDiagramPin |
update(CSDiagramPin csDiagramPin,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CSDiagramPin |
updateImpl(CSDiagramPin csDiagramPin) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CSDiagramPin csDiagramPin)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CSDiagramPin> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CSDiagramPin> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CSDiagramPin> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CSDiagramPin> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CSDiagramPin update(CSDiagramPin csDiagramPin)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CSDiagramPin update(CSDiagramPin csDiagramPin, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static java.util.List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId, 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, then the query will include the default ORDER BY logic from CSDiagramPinModelImpl
.
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)public static java.util.List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> 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, then the query will include the default ORDER BY logic from CSDiagramPinModelImpl
.
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 (optionally null
)public static java.util.List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CSDiagramPinModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CSDiagramPin findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) throws NoSuchCSDiagramPinException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCSDiagramPinException
- if a matching cs diagram pin could not be foundpublic static CSDiagramPin fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cs diagram pin could not be foundpublic static CSDiagramPin findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) throws NoSuchCSDiagramPinException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCSDiagramPinException
- if a matching cs diagram pin could not be foundpublic static CSDiagramPin fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cs diagram pin could not be foundpublic static CSDiagramPin[] findByCPDefinitionId_PrevAndNext(long CSDiagramPinId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator) throws NoSuchCSDiagramPinException
CSDiagramPinId
- the primary key of the current cs diagram pinCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCSDiagramPinException
- if a cs diagram pin with the primary key could not be foundpublic static void removeByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static int countByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static void cacheResult(CSDiagramPin csDiagramPin)
csDiagramPin
- the cs diagram pinpublic static void cacheResult(java.util.List<CSDiagramPin> csDiagramPins)
csDiagramPins
- the cs diagram pinspublic static CSDiagramPin create(long CSDiagramPinId)
CSDiagramPinId
- the primary key for the new cs diagram pinpublic static CSDiagramPin remove(long CSDiagramPinId) throws NoSuchCSDiagramPinException
CSDiagramPinId
- the primary key of the cs diagram pinNoSuchCSDiagramPinException
- if a cs diagram pin with the primary key could not be foundpublic static CSDiagramPin updateImpl(CSDiagramPin csDiagramPin)
public static CSDiagramPin findByPrimaryKey(long CSDiagramPinId) throws NoSuchCSDiagramPinException
NoSuchCSDiagramPinException
if it could not be found.CSDiagramPinId
- the primary key of the cs diagram pinNoSuchCSDiagramPinException
- if a cs diagram pin with the primary key could not be foundpublic static CSDiagramPin fetchByPrimaryKey(long CSDiagramPinId)
null
if it could not be found.CSDiagramPinId
- the primary key of the cs diagram pinnull
if a cs diagram pin with the primary key could not be foundpublic static java.util.List<CSDiagramPin> findAll()
public static java.util.List<CSDiagramPin> 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, then the query will include the default ORDER BY logic from CSDiagramPinModelImpl
.
start
- the lower bound of the range of cs diagram pinsend
- the upper bound of the range of cs diagram pins (not inclusive)public static java.util.List<CSDiagramPin> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> 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, then the query will include the default ORDER BY logic from CSDiagramPinModelImpl
.
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 (optionally null
)public static java.util.List<CSDiagramPin> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CSDiagramPinModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CSDiagramPinPersistence getPersistence()
public static void setPersistence(CSDiagramPinPersistence persistence)