Interface CSDiagramPinPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CSDiagramPin>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CSDiagramPin>

@ProviderType public interface CSDiagramPinPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CSDiagramPin>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CSDiagramPin>
The persistence interface for the cs diagram pin service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CSDiagramPin csDiagramPin)
    Caches the cs diagram pin in the entity cache if it is enabled.
    void
    cacheResult(List<CSDiagramPin> csDiagramPins)
    Caches the cs diagram pins in the entity cache if it is enabled.
    int
    Returns the number of cs diagram pins.
    int
    countByCPDefinitionId(long CPDefinitionId)
    Returns the number of cs diagram pins where CPDefinitionId = ?.
    create(long CSDiagramPinId)
    Creates a new cs diagram pin with the primary key.
    fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator)
    Returns the first cs diagram pin in the ordered set where CPDefinitionId = ?.
    fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator)
    Returns the last cs diagram pin in the ordered set where CPDefinitionId = ?.
    fetchByPrimaryKey(long CSDiagramPinId)
    Returns the cs diagram pin with the primary key or returns null if it could not be found.
    Returns all the cs diagram pins.
    findAll(int start, int end)
    Returns a range of all the cs diagram pins.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator)
    Returns an ordered range of all the cs diagram pins.
    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.
    findByCPDefinitionId(long CPDefinitionId)
    Returns all the cs diagram pins where CPDefinitionId = ?.
    findByCPDefinitionId(long CPDefinitionId, int start, int end)
    Returns a range of all the cs diagram pins where CPDefinitionId = ?.
    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 = ?.
    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 = ?.
    findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator)
    Returns the first cs diagram pin in the ordered set where CPDefinitionId = ?.
    findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramPin> orderByComparator)
    Returns the last cs diagram pin in the ordered set where CPDefinitionId = ?.
    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 = ?.
    findByPrimaryKey(long CSDiagramPinId)
    Returns the cs diagram pin with the primary key or throws a NoSuchCSDiagramPinException if it could not be found.
    remove(long CSDiagramPinId)
    Removes the cs diagram pin with the primary key from the database.
    void
    Removes all the cs diagram pins from the database.
    void
    removeByCPDefinitionId(long CPDefinitionId)
    Removes all the cs diagram pins where CPDefinitionId = ? from the database.
    updateImpl(CSDiagramPin csDiagramPin)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence

    getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
  • Method Details

    • findByCPDefinitionId

      List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId)
      Returns all the cs diagram pins where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the matching cs diagram pins
    • findByCPDefinitionId

      List<CSDiagramPin> findByCPDefinitionId(long CPDefinitionId, int start, int end)
      Returns a range of all the cs diagram pins where CPDefinitionId = ?.

      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.

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of cs diagram pins
      end - the upper bound of the range of cs diagram pins (not inclusive)
      Returns:
      the range of matching cs diagram pins
    • findByCPDefinitionId

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

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of cs diagram pins
      end - the upper bound of the range of cs diagram pins (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cs diagram pins
    • findByCPDefinitionId

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

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of cs diagram pins
      end - 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 cache
      Returns:
      the ordered range of matching cs diagram pins
    • findByCPDefinitionId_First

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cs diagram pin
      Throws:
      NoSuchCSDiagramPinException - if a matching cs diagram pin could not be found
    • fetchByCPDefinitionId_First

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cs diagram pin, or null if a matching cs diagram pin could not be found
    • findByCPDefinitionId_Last

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cs diagram pin
      Throws:
      NoSuchCSDiagramPinException - if a matching cs diagram pin could not be found
    • fetchByCPDefinitionId_Last

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cs diagram pin, or null if a matching cs diagram pin could not be found
    • findByCPDefinitionId_PrevAndNext

      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 pin
      CPDefinitionId - the cp definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cs diagram pin
      Throws:
      NoSuchCSDiagramPinException - if a cs diagram pin with the primary key could not be found
    • removeByCPDefinitionId

      void removeByCPDefinitionId(long CPDefinitionId)
      Removes all the cs diagram pins where CPDefinitionId = ? from the database.
      Parameters:
      CPDefinitionId - the cp definition ID
    • countByCPDefinitionId

      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

      void cacheResult(CSDiagramPin csDiagramPin)
      Caches the cs diagram pin in the entity cache if it is enabled.
      Parameters:
      csDiagramPin - the cs diagram pin
    • cacheResult

      void cacheResult(List<CSDiagramPin> csDiagramPins)
      Caches the cs diagram pins in the entity cache if it is enabled.
      Parameters:
      csDiagramPins - the cs diagram pins
    • create

      CSDiagramPin create(long CSDiagramPinId)
      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

      CSDiagramPin remove(long CSDiagramPinId) throws NoSuchCSDiagramPinException
      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
      Throws:
      NoSuchCSDiagramPinException - if a cs diagram pin with the primary key could not be found
    • updateImpl

      CSDiagramPin updateImpl(CSDiagramPin csDiagramPin)
    • findByPrimaryKey

      CSDiagramPin findByPrimaryKey(long CSDiagramPinId) throws NoSuchCSDiagramPinException
      Returns the cs diagram pin with the primary key or throws a NoSuchCSDiagramPinException if it could not be found.
      Parameters:
      CSDiagramPinId - the primary key of the cs diagram pin
      Returns:
      the cs diagram pin
      Throws:
      NoSuchCSDiagramPinException - if a cs diagram pin with the primary key could not be found
    • fetchByPrimaryKey

      CSDiagramPin fetchByPrimaryKey(long CSDiagramPinId)
      Returns the cs diagram pin with the primary key or returns null if it could not be found.
      Parameters:
      CSDiagramPinId - the primary key of the cs diagram pin
      Returns:
      the cs diagram pin, or null if a cs diagram pin with the primary key could not be found
    • findAll

      List<CSDiagramPin> findAll()
      Returns all the cs diagram pins.
      Returns:
      the cs diagram pins
    • findAll

      List<CSDiagramPin> findAll(int start, int end)
      Returns a range of all the cs diagram pins.

      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.

      Parameters:
      start - the lower bound of the range of cs diagram pins
      end - the upper bound of the range of cs diagram pins (not inclusive)
      Returns:
      the range of cs diagram pins
    • findAll

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

      Parameters:
      start - the lower bound of the range of cs diagram pins
      end - the upper bound of the range of cs diagram pins (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of cs diagram pins
    • findAll

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

      Parameters:
      start - the lower bound of the range of cs diagram pins
      end - 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 cache
      Returns:
      the ordered range of cs diagram pins
    • removeAll

      void removeAll()
      Removes all the cs diagram pins from the database.
    • countAll

      int countAll()
      Returns the number of cs diagram pins.
      Returns:
      the number of cs diagram pins