Class SamlPeerBindingUtil

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

public class SamlPeerBindingUtil extends Object
The persistence utility for the saml peer binding service. This utility wraps com.liferay.saml.persistence.service.persistence.impl.SamlPeerBindingPersistenceImpl 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

    • SamlPeerBindingUtil

      public SamlPeerBindingUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<SamlPeerBinding> samlPeerBindings)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(SamlPeerBinding samlPeerBinding)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • clearCache

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

      public static void clearCache(SamlPeerBinding samlPeerBinding)
      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,SamlPeerBinding> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

      public static SamlPeerBinding update(SamlPeerBinding samlPeerBinding, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByC_D_SNIV

      public static List<SamlPeerBinding> findByC_D_SNIV(long companyId, boolean deleted, String samlNameIdValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlPeerBinding> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the saml peer bindings where companyId = ? and deleted = ? and samlNameIdValue = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.saml.persistence.model.impl.SamlPeerBindingModelImpl.

      Parameters:
      companyId - the company ID
      deleted - the deleted
      samlNameIdValue - the saml name ID value
      start - the lower bound of the range of saml peer bindings
      end - the upper bound of the range of saml peer bindings (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 peer bindings
    • findByC_D_SNIV_First

      public static SamlPeerBinding findByC_D_SNIV_First(long companyId, boolean deleted, String samlNameIdValue, com.liferay.portal.kernel.util.OrderByComparator<SamlPeerBinding> orderByComparator) throws NoSuchPeerBindingException
      Returns the first saml peer binding in the ordered set where companyId = ? and deleted = ? and samlNameIdValue = ?.
      Parameters:
      companyId - the company ID
      deleted - the deleted
      samlNameIdValue - the saml name ID value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml peer binding
    • fetchByC_D_SNIV_First

      public static SamlPeerBinding fetchByC_D_SNIV_First(long companyId, boolean deleted, String samlNameIdValue, com.liferay.portal.kernel.util.OrderByComparator<SamlPeerBinding> orderByComparator)
      Returns the first saml peer binding in the ordered set where companyId = ? and deleted = ? and samlNameIdValue = ?.
      Parameters:
      companyId - the company ID
      deleted - the deleted
      samlNameIdValue - the saml name ID value
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml peer binding, or null if a matching saml peer binding could not be found
    • removeByC_D_SNIV

      public static void removeByC_D_SNIV(long companyId, boolean deleted, String samlNameIdValue)
      Removes all the saml peer bindings where companyId = ? and deleted = ? and samlNameIdValue = ? from the database.
      Parameters:
      companyId - the company ID
      deleted - the deleted
      samlNameIdValue - the saml name ID value
    • countByC_D_SNIV

      public static int countByC_D_SNIV(long companyId, boolean deleted, String samlNameIdValue)
      Returns the number of saml peer bindings where companyId = ? and deleted = ? and samlNameIdValue = ?.
      Parameters:
      companyId - the company ID
      deleted - the deleted
      samlNameIdValue - the saml name ID value
      Returns:
      the number of matching saml peer bindings
    • findByC_U_SPEI_D

      public static List<SamlPeerBinding> findByC_U_SPEI_D(long companyId, long userId, String samlPeerEntityId, boolean deleted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlPeerBinding> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the saml peer bindings where companyId = ? and userId = ? and samlPeerEntityId = ? and deleted = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.saml.persistence.model.impl.SamlPeerBindingModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      samlPeerEntityId - the saml peer entity ID
      deleted - the deleted
      start - the lower bound of the range of saml peer bindings
      end - the upper bound of the range of saml peer bindings (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 peer bindings
    • findByC_U_SPEI_D_First

      public static SamlPeerBinding findByC_U_SPEI_D_First(long companyId, long userId, String samlPeerEntityId, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<SamlPeerBinding> orderByComparator) throws NoSuchPeerBindingException
      Returns the first saml peer binding in the ordered set where companyId = ? and userId = ? and samlPeerEntityId = ? and deleted = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      samlPeerEntityId - the saml peer entity ID
      deleted - the deleted
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml peer binding
    • fetchByC_U_SPEI_D_First

      public static SamlPeerBinding fetchByC_U_SPEI_D_First(long companyId, long userId, String samlPeerEntityId, boolean deleted, com.liferay.portal.kernel.util.OrderByComparator<SamlPeerBinding> orderByComparator)
      Returns the first saml peer binding in the ordered set where companyId = ? and userId = ? and samlPeerEntityId = ? and deleted = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      samlPeerEntityId - the saml peer entity ID
      deleted - the deleted
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml peer binding, or null if a matching saml peer binding could not be found
    • removeByC_U_SPEI_D

      public static void removeByC_U_SPEI_D(long companyId, long userId, String samlPeerEntityId, boolean deleted)
      Removes all the saml peer bindings where companyId = ? and userId = ? and samlPeerEntityId = ? and deleted = ? from the database.
      Parameters:
      companyId - the company ID
      userId - the user ID
      samlPeerEntityId - the saml peer entity ID
      deleted - the deleted
    • countByC_U_SPEI_D

      public static int countByC_U_SPEI_D(long companyId, long userId, String samlPeerEntityId, boolean deleted)
      Returns the number of saml peer bindings where companyId = ? and userId = ? and samlPeerEntityId = ? and deleted = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      samlPeerEntityId - the saml peer entity ID
      deleted - the deleted
      Returns:
      the number of matching saml peer bindings
    • create

      public static SamlPeerBinding create(long samlPeerBindingId)
      Creates a new saml peer binding with the primary key. Does not add the saml peer binding to the database.
      Parameters:
      samlPeerBindingId - the primary key for the new saml peer binding
      Returns:
      the new saml peer binding
    • remove

      public static SamlPeerBinding remove(long samlPeerBindingId) throws NoSuchPeerBindingException
      Removes the saml peer binding with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      samlPeerBindingId - the primary key of the saml peer binding
      Returns:
      the saml peer binding that was removed
    • updateImpl

      public static SamlPeerBinding updateImpl(SamlPeerBinding samlPeerBinding)
    • findByPrimaryKey

      public static SamlPeerBinding findByPrimaryKey(long samlPeerBindingId) throws NoSuchPeerBindingException
      Returns the saml peer binding with the primary key or throws a NoSuchPeerBindingException if it could not be found.
      Parameters:
      samlPeerBindingId - the primary key of the saml peer binding
      Returns:
      the saml peer binding
    • fetchByPrimaryKey

      public static SamlPeerBinding fetchByPrimaryKey(long samlPeerBindingId)
      Returns the saml peer binding with the primary key or returns null if it could not be found.
      Parameters:
      samlPeerBindingId - the primary key of the saml peer binding
      Returns:
      the saml peer binding, or null if a saml peer binding with the primary key could not be found
    • findByC_D_SNIV

      public static List<SamlPeerBinding> findByC_D_SNIV(long companyId, boolean deleted, String samlNameIdValue)
      Returns all the saml peer bindings where companyId = ? and deleted = ? and samlNameIdValue = ?.
      Parameters:
      companyId - the company ID
      deleted - the deleted
      samlNameIdValue - the saml name ID value
      Returns:
      the matching saml peer bindings
    • findByC_D_SNIV

      public static List<SamlPeerBinding> findByC_D_SNIV(long companyId, boolean deleted, String samlNameIdValue, int start, int end)
      Returns a range of all the saml peer bindings where companyId = ? and deleted = ? and samlNameIdValue = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.saml.persistence.model.impl.SamlPeerBindingModelImpl.

      Parameters:
      companyId - the company ID
      deleted - the deleted
      samlNameIdValue - the saml name ID value
      start - the lower bound of the range of saml peer bindings
      end - the upper bound of the range of saml peer bindings (not inclusive)
      Returns:
      the range of matching saml peer bindings
    • findByC_D_SNIV

      public static List<SamlPeerBinding> findByC_D_SNIV(long companyId, boolean deleted, String samlNameIdValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlPeerBinding> orderByComparator)
      Returns an ordered range of all the saml peer bindings where companyId = ? and deleted = ? and samlNameIdValue = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.saml.persistence.model.impl.SamlPeerBindingModelImpl.

      Parameters:
      companyId - the company ID
      deleted - the deleted
      samlNameIdValue - the saml name ID value
      start - the lower bound of the range of saml peer bindings
      end - the upper bound of the range of saml peer bindings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching saml peer bindings
    • findByC_U_SPEI_D

      public static List<SamlPeerBinding> findByC_U_SPEI_D(long companyId, long userId, String samlPeerEntityId, boolean deleted)
      Returns all the saml peer bindings where companyId = ? and userId = ? and samlPeerEntityId = ? and deleted = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      samlPeerEntityId - the saml peer entity ID
      deleted - the deleted
      Returns:
      the matching saml peer bindings
    • findByC_U_SPEI_D

      public static List<SamlPeerBinding> findByC_U_SPEI_D(long companyId, long userId, String samlPeerEntityId, boolean deleted, int start, int end)
      Returns a range of all the saml peer bindings where companyId = ? and userId = ? and samlPeerEntityId = ? and deleted = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.saml.persistence.model.impl.SamlPeerBindingModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      samlPeerEntityId - the saml peer entity ID
      deleted - the deleted
      start - the lower bound of the range of saml peer bindings
      end - the upper bound of the range of saml peer bindings (not inclusive)
      Returns:
      the range of matching saml peer bindings
    • findByC_U_SPEI_D

      public static List<SamlPeerBinding> findByC_U_SPEI_D(long companyId, long userId, String samlPeerEntityId, boolean deleted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlPeerBinding> orderByComparator)
      Returns an ordered range of all the saml peer bindings where companyId = ? and userId = ? and samlPeerEntityId = ? and deleted = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.saml.persistence.model.impl.SamlPeerBindingModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      samlPeerEntityId - the saml peer entity ID
      deleted - the deleted
      start - the lower bound of the range of saml peer bindings
      end - the upper bound of the range of saml peer bindings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching saml peer bindings
    • getPersistence

      public static SamlPeerBindingPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SamlPeerBindingPersistence persistence)