Class SamlIdpSpConnectionUtil

java.lang.Object
com.liferay.saml.persistence.service.persistence.SamlIdpSpConnectionUtil

public class SamlIdpSpConnectionUtil extends Object
The persistence utility for the saml idp sp connection service. This utility wraps com.liferay.saml.persistence.service.persistence.impl.SamlIdpSpConnectionPersistenceImpl 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 Details

    • SamlIdpSpConnectionUtil

      public SamlIdpSpConnectionUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(SamlIdpSpConnection samlIdpSpConnection)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,SamlIdpSpConnection> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static SamlIdpSpConnection update(SamlIdpSpConnection samlIdpSpConnection)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static SamlIdpSpConnection update(SamlIdpSpConnection samlIdpSpConnection, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCompanyId

      public static List<SamlIdpSpConnection> findByCompanyId(long companyId)
      Returns all the saml idp sp connections where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching saml idp sp connections
    • findByCompanyId

      public static List<SamlIdpSpConnection> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the saml idp sp connections where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of saml idp sp connections
      end - the upper bound of the range of saml idp sp connections (not inclusive)
      Returns:
      the range of matching saml idp sp connections
    • findByCompanyId

      public static List<SamlIdpSpConnection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
      Returns an ordered range of all the saml idp sp connections where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of saml idp sp connections
      end - the upper bound of the range of saml idp sp connections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching saml idp sp connections
    • findByCompanyId

      public static List<SamlIdpSpConnection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the saml idp sp connections where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of saml idp sp connections
      end - the upper bound of the range of saml idp sp connections (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 saml idp sp connections
    • findByCompanyId_First

      public static SamlIdpSpConnection findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) throws NoSuchIdpSpConnectionException
      Returns the first saml idp sp connection in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml idp sp connection
      Throws:
      NoSuchIdpSpConnectionException - if a matching saml idp sp connection could not be found
      NoSuchIdpSpConnectionException
    • fetchByCompanyId_First

      public static SamlIdpSpConnection fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
      Returns the first saml idp sp connection in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml idp sp connection, or null if a matching saml idp sp connection could not be found
    • findByCompanyId_Last

      public static SamlIdpSpConnection findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) throws NoSuchIdpSpConnectionException
      Returns the last saml idp sp connection in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml idp sp connection
      Throws:
      NoSuchIdpSpConnectionException - if a matching saml idp sp connection could not be found
      NoSuchIdpSpConnectionException
    • fetchByCompanyId_Last

      public static SamlIdpSpConnection fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
      Returns the last saml idp sp connection in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml idp sp connection, or null if a matching saml idp sp connection could not be found
    • findByCompanyId_PrevAndNext

      public static SamlIdpSpConnection[] findByCompanyId_PrevAndNext(long samlIdpSpConnectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) throws NoSuchIdpSpConnectionException
      Returns the saml idp sp connections before and after the current saml idp sp connection in the ordered set where companyId = ?.
      Parameters:
      samlIdpSpConnectionId - the primary key of the current saml idp sp connection
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next saml idp sp connection
      Throws:
      NoSuchIdpSpConnectionException - if a saml idp sp connection with the primary key could not be found
      NoSuchIdpSpConnectionException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the saml idp sp connections where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of saml idp sp connections where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching saml idp sp connections
    • findByC_SSEI

      public static SamlIdpSpConnection findByC_SSEI(long companyId, String samlSpEntityId) throws NoSuchIdpSpConnectionException
      Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or throws a NoSuchIdpSpConnectionException if it could not be found.
      Parameters:
      companyId - the company ID
      samlSpEntityId - the saml sp entity ID
      Returns:
      the matching saml idp sp connection
      Throws:
      NoSuchIdpSpConnectionException - if a matching saml idp sp connection could not be found
      NoSuchIdpSpConnectionException
    • fetchByC_SSEI

      public static SamlIdpSpConnection fetchByC_SSEI(long companyId, String samlSpEntityId)
      Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      samlSpEntityId - the saml sp entity ID
      Returns:
      the matching saml idp sp connection, or null if a matching saml idp sp connection could not be found
    • fetchByC_SSEI

      public static SamlIdpSpConnection fetchByC_SSEI(long companyId, String samlSpEntityId, boolean useFinderCache)
      Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      samlSpEntityId - the saml sp entity ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching saml idp sp connection, or null if a matching saml idp sp connection could not be found
    • removeByC_SSEI

      public static SamlIdpSpConnection removeByC_SSEI(long companyId, String samlSpEntityId) throws NoSuchIdpSpConnectionException
      Removes the saml idp sp connection where companyId = ? and samlSpEntityId = ? from the database.
      Parameters:
      companyId - the company ID
      samlSpEntityId - the saml sp entity ID
      Returns:
      the saml idp sp connection that was removed
      Throws:
      NoSuchIdpSpConnectionException
    • countByC_SSEI

      public static int countByC_SSEI(long companyId, String samlSpEntityId)
      Returns the number of saml idp sp connections where companyId = ? and samlSpEntityId = ?.
      Parameters:
      companyId - the company ID
      samlSpEntityId - the saml sp entity ID
      Returns:
      the number of matching saml idp sp connections
    • cacheResult

      public static void cacheResult(SamlIdpSpConnection samlIdpSpConnection)
      Caches the saml idp sp connection in the entity cache if it is enabled.
      Parameters:
      samlIdpSpConnection - the saml idp sp connection
    • cacheResult

      public static void cacheResult(List<SamlIdpSpConnection> samlIdpSpConnections)
      Caches the saml idp sp connections in the entity cache if it is enabled.
      Parameters:
      samlIdpSpConnections - the saml idp sp connections
    • create

      public static SamlIdpSpConnection create(long samlIdpSpConnectionId)
      Creates a new saml idp sp connection with the primary key. Does not add the saml idp sp connection to the database.
      Parameters:
      samlIdpSpConnectionId - the primary key for the new saml idp sp connection
      Returns:
      the new saml idp sp connection
    • remove

      public static SamlIdpSpConnection remove(long samlIdpSpConnectionId) throws NoSuchIdpSpConnectionException
      Removes the saml idp sp connection with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      samlIdpSpConnectionId - the primary key of the saml idp sp connection
      Returns:
      the saml idp sp connection that was removed
      Throws:
      NoSuchIdpSpConnectionException - if a saml idp sp connection with the primary key could not be found
      NoSuchIdpSpConnectionException
    • updateImpl

      public static SamlIdpSpConnection updateImpl(SamlIdpSpConnection samlIdpSpConnection)
    • findByPrimaryKey

      public static SamlIdpSpConnection findByPrimaryKey(long samlIdpSpConnectionId) throws NoSuchIdpSpConnectionException
      Returns the saml idp sp connection with the primary key or throws a NoSuchIdpSpConnectionException if it could not be found.
      Parameters:
      samlIdpSpConnectionId - the primary key of the saml idp sp connection
      Returns:
      the saml idp sp connection
      Throws:
      NoSuchIdpSpConnectionException - if a saml idp sp connection with the primary key could not be found
      NoSuchIdpSpConnectionException
    • fetchByPrimaryKey

      public static SamlIdpSpConnection fetchByPrimaryKey(long samlIdpSpConnectionId)
      Returns the saml idp sp connection with the primary key or returns null if it could not be found.
      Parameters:
      samlIdpSpConnectionId - the primary key of the saml idp sp connection
      Returns:
      the saml idp sp connection, or null if a saml idp sp connection with the primary key could not be found
    • findAll

      public static List<SamlIdpSpConnection> findAll()
      Returns all the saml idp sp connections.
      Returns:
      the saml idp sp connections
    • findAll

      public static List<SamlIdpSpConnection> findAll(int start, int end)
      Returns a range of all the saml idp sp connections.

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

      Parameters:
      start - the lower bound of the range of saml idp sp connections
      end - the upper bound of the range of saml idp sp connections (not inclusive)
      Returns:
      the range of saml idp sp connections
    • findAll

      public static List<SamlIdpSpConnection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
      Returns an ordered range of all the saml idp sp connections.

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

      Parameters:
      start - the lower bound of the range of saml idp sp connections
      end - the upper bound of the range of saml idp sp connections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of saml idp sp connections
    • findAll

      public static List<SamlIdpSpConnection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the saml idp sp connections.

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

      Parameters:
      start - the lower bound of the range of saml idp sp connections
      end - the upper bound of the range of saml idp sp connections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of saml idp sp connections
    • removeAll

      public static void removeAll()
      Removes all the saml idp sp connections from the database.
    • countAll

      public static int countAll()
      Returns the number of saml idp sp connections.
      Returns:
      the number of saml idp sp connections
    • getPersistence

      public static SamlIdpSpConnectionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SamlIdpSpConnectionPersistence persistence)