Class SamlIdpSpConnectionUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(SamlIdpSpConnection samlIdpSpConnection) static voidcacheResult(List<SamlIdpSpConnection> samlIdpSpConnections) static voidstatic voidclearCache(SamlIdpSpConnection samlIdpSpConnection) static intcountByC_SSEI(long companyId, String samlSpEntityId) Returns the number of saml idp sp connections where companyId = ? and samlSpEntityId = ?.static intcountByCompanyId(long companyId) Returns the number of saml idp sp connections where companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SamlIdpSpConnectioncreate(long samlIdpSpConnectionId) Creates a new saml idp sp connection with the primary key.static SamlIdpSpConnectionfetchByC_SSEI(long companyId, String samlSpEntityId) Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or returnsnullif it could not be found.static SamlIdpSpConnectionfetchByC_SSEI(long companyId, String samlSpEntityId, boolean useFinderCache) Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or returnsnullif it could not be found, optionally using the finder cache.static SamlIdpSpConnectionfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) Returns the first saml idp sp connection in the ordered set where companyId = ?.static SamlIdpSpConnectionfetchByPrimaryKey(long samlIdpSpConnectionId) Returns the saml idp sp connection with the primary key or returnsnullif it could not be found.static Map<Serializable, SamlIdpSpConnection> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static SamlIdpSpConnectionfindByC_SSEI(long companyId, String samlSpEntityId) Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or throws aNoSuchIdpSpConnectionExceptionif it could not be found.static List<SamlIdpSpConnection> findByCompanyId(long companyId) Returns all the saml idp sp connections where companyId = ?.static List<SamlIdpSpConnection> findByCompanyId(long companyId, int start, int end) Returns a range of all the saml idp sp connections where companyId = ?.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 = ?.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 = ?.static SamlIdpSpConnectionfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) Returns the first saml idp sp connection in the ordered set where companyId = ?.static SamlIdpSpConnectionfindByPrimaryKey(long samlIdpSpConnectionId) Returns the saml idp sp connection with the primary key or throws aNoSuchIdpSpConnectionExceptionif it could not be found.static List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) static SamlIdpSpConnectionremove(long samlIdpSpConnectionId) Removes the saml idp sp connection with the primary key from the database.static SamlIdpSpConnectionremoveByC_SSEI(long companyId, String samlSpEntityId) Removes the saml idp sp connection where companyId = ? and samlSpEntityId = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the saml idp sp connections where companyId = ? from the database.static voidsetPersistence(SamlIdpSpConnectionPersistence persistence) static SamlIdpSpConnectionupdate(SamlIdpSpConnection samlIdpSpConnection) static SamlIdpSpConnectionupdate(SamlIdpSpConnection samlIdpSpConnection, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SamlIdpSpConnectionupdateImpl(SamlIdpSpConnection samlIdpSpConnection)
-
Constructor Details
-
SamlIdpSpConnectionUtil
public SamlIdpSpConnectionUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
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
public static Map<Serializable,SamlIdpSpConnection> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
- See Also:
-
update
public static SamlIdpSpConnection update(SamlIdpSpConnection samlIdpSpConnection, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.saml.persistence.model.impl.SamlIdpSpConnectionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of saml idp sp connectionsend- the upper bound of the range of saml idp sp connections (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml idp sp connection
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml idp sp connection, or
nullif a matching saml idp sp connection could not be found
-
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 aNoSuchIdpSpConnectionExceptionif it could not be found.- Parameters:
companyId- the company IDsamlSpEntityId- the saml sp entity ID- Returns:
- the matching saml idp sp connection
-
fetchByC_SSEI
public static SamlIdpSpConnection fetchByC_SSEI(long companyId, String samlSpEntityId, boolean useFinderCache) Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDsamlSpEntityId- the saml sp entity IDuseFinderCache- whether to use the finder cache- Returns:
- the matching saml idp sp connection, or
nullif 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 IDsamlSpEntityId- the saml sp entity ID- Returns:
- the saml idp sp connection that was removed
- Throws:
NoSuchIdpSpConnectionException
-
countByC_SSEI
Returns the number of saml idp sp connections where companyId = ? and samlSpEntityId = ?.- Parameters:
companyId- the company IDsamlSpEntityId- the saml sp entity ID- Returns:
- the number of matching saml idp sp connections
-
create
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
-
updateImpl
-
findByPrimaryKey
public static SamlIdpSpConnection findByPrimaryKey(long samlIdpSpConnectionId) throws NoSuchIdpSpConnectionException Returns the saml idp sp connection with the primary key or throws aNoSuchIdpSpConnectionExceptionif it could not be found.- Parameters:
samlIdpSpConnectionId- the primary key of the saml idp sp connection- Returns:
- the saml idp sp connection
-
fetchByPrimaryKey
Returns the saml idp sp connection with the primary key or returnsnullif it could not be found.- Parameters:
samlIdpSpConnectionId- the primary key of the saml idp sp connection- Returns:
- the saml idp sp connection, or
nullif a saml idp sp connection with the primary key could not be found
-
fetchByC_SSEI
Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDsamlSpEntityId- the saml sp entity ID- Returns:
- the matching saml idp sp connection, or
nullif a matching saml idp sp connection could not be found
-
findByCompanyId
Returns all the saml idp sp connections where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching saml idp sp connections
-
findByCompanyId
Returns a range of all the saml idp sp connections where companyId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.saml.persistence.model.impl.SamlIdpSpConnectionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of saml idp sp connectionsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.saml.persistence.model.impl.SamlIdpSpConnectionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of saml idp sp connectionsend- the upper bound of the range of saml idp sp connections (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching saml idp sp connections
-
getPersistence
-
setPersistence
-