Class SamlSpIdpConnectionUtil
com.liferay.saml.persistence.service.persistence.impl.SamlSpIdpConnectionPersistenceImpl 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(SamlSpIdpConnection samlSpIdpConnection) Caches the saml sp idp connection in the entity cache if it is enabled.static voidcacheResult(List<SamlSpIdpConnection> samlSpIdpConnections) Caches the saml sp idp connections in the entity cache if it is enabled.static voidstatic voidclearCache(SamlSpIdpConnection samlSpIdpConnection) static intcountAll()Returns the number of saml sp idp connections.static intcountByC_SIEI(long companyId, String samlIdpEntityId) Returns the number of saml sp idp connections where companyId = ? and samlIdpEntityId = ?.static intcountByCompanyId(long companyId) Returns the number of saml sp idp connections where companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SamlSpIdpConnectioncreate(long samlSpIdpConnectionId) Creates a new saml sp idp connection with the primary key.static SamlSpIdpConnectionfetchByC_SIEI(long companyId, String samlIdpEntityId) Returns the saml sp idp connection where companyId = ? and samlIdpEntityId = ? or returnsnullif it could not be found.static SamlSpIdpConnectionfetchByC_SIEI(long companyId, String samlIdpEntityId, boolean useFinderCache) Returns the saml sp idp connection where companyId = ? and samlIdpEntityId = ? or returnsnullif it could not be found, optionally using the finder cache.static SamlSpIdpConnectionfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns the first saml sp idp connection in the ordered set where companyId = ?.static SamlSpIdpConnectionfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns the last saml sp idp connection in the ordered set where companyId = ?.static SamlSpIdpConnectionfetchByPrimaryKey(long samlSpIdpConnectionId) Returns the saml sp idp connection with the primary key or returnsnullif it could not be found.static Map<Serializable,SamlSpIdpConnection> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<SamlSpIdpConnection>findAll()Returns all the saml sp idp connections.static List<SamlSpIdpConnection>findAll(int start, int end) Returns a range of all the saml sp idp connections.static List<SamlSpIdpConnection>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns an ordered range of all the saml sp idp connections.static List<SamlSpIdpConnection>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp idp connections.static SamlSpIdpConnectionfindByC_SIEI(long companyId, String samlIdpEntityId) Returns the saml sp idp connection where companyId = ? and samlIdpEntityId = ? or throws aNoSuchSpIdpConnectionExceptionif it could not be found.static List<SamlSpIdpConnection>findByCompanyId(long companyId) Returns all the saml sp idp connections where companyId = ?.static List<SamlSpIdpConnection>findByCompanyId(long companyId, int start, int end) Returns a range of all the saml sp idp connections where companyId = ?.static List<SamlSpIdpConnection>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns an ordered range of all the saml sp idp connections where companyId = ?.static List<SamlSpIdpConnection>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp idp connections where companyId = ?.static SamlSpIdpConnectionfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns the first saml sp idp connection in the ordered set where companyId = ?.static SamlSpIdpConnectionfindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns the last saml sp idp connection in the ordered set where companyId = ?.static SamlSpIdpConnection[]findByCompanyId_PrevAndNext(long samlSpIdpConnectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns the saml sp idp connections before and after the current saml sp idp connection in the ordered set where companyId = ?.static SamlSpIdpConnectionfindByPrimaryKey(long samlSpIdpConnectionId) Returns the saml sp idp connection with the primary key or throws aNoSuchSpIdpConnectionExceptionif it could not be found.static List<SamlSpIdpConnection>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SamlSpIdpConnection>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SamlSpIdpConnection>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) static SamlSpIdpConnectionremove(long samlSpIdpConnectionId) Removes the saml sp idp connection with the primary key from the database.static voidRemoves all the saml sp idp connections from the database.static SamlSpIdpConnectionremoveByC_SIEI(long companyId, String samlIdpEntityId) Removes the saml sp idp connection where companyId = ? and samlIdpEntityId = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the saml sp idp connections where companyId = ? from the database.static voidsetPersistence(SamlSpIdpConnectionPersistence persistence) static SamlSpIdpConnectionupdate(SamlSpIdpConnection samlSpIdpConnection) static SamlSpIdpConnectionupdate(SamlSpIdpConnection samlSpIdpConnection, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SamlSpIdpConnectionupdateImpl(SamlSpIdpConnection samlSpIdpConnection)
-
Constructor Details
-
SamlSpIdpConnectionUtil
public SamlSpIdpConnectionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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,SamlSpIdpConnection> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<SamlSpIdpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<SamlSpIdpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<SamlSpIdpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static SamlSpIdpConnection update(SamlSpIdpConnection samlSpIdpConnection, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCompanyId
Returns all the saml sp idp connections where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching saml sp idp connections
-
findByCompanyId
Returns a range of all the saml sp idp 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 bothstartandendtoQueryUtil#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 fromSamlSpIdpConnectionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of saml sp idp connectionsend- the upper bound of the range of saml sp idp connections (not inclusive)- Returns:
- the range of matching saml sp idp connections
-
findByCompanyId
public static List<SamlSpIdpConnection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns an ordered range of all the saml sp idp 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 bothstartandendtoQueryUtil#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 fromSamlSpIdpConnectionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of saml sp idp connectionsend- the upper bound of the range of saml sp idp connections (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching saml sp idp connections
-
findByCompanyId
public static List<SamlSpIdpConnection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp idp 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 bothstartandendtoQueryUtil#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 fromSamlSpIdpConnectionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of saml sp idp connectionsend- the upper bound of the range of saml sp idp 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 sp idp connections
-
findByCompanyId_First
public static SamlSpIdpConnection findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) throws NoSuchSpIdpConnectionException Returns the first saml sp idp 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 sp idp connection
- Throws:
NoSuchSpIdpConnectionException- if a matching saml sp idp connection could not be foundNoSuchSpIdpConnectionException
-
fetchByCompanyId_First
public static SamlSpIdpConnection fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns the first saml sp idp 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 sp idp connection, or
nullif a matching saml sp idp connection could not be found
-
findByCompanyId_Last
public static SamlSpIdpConnection findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) throws NoSuchSpIdpConnectionException Returns the last saml sp idp connection in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp idp connection
- Throws:
NoSuchSpIdpConnectionException- if a matching saml sp idp connection could not be foundNoSuchSpIdpConnectionException
-
fetchByCompanyId_Last
public static SamlSpIdpConnection fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns the last saml sp idp connection in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp idp connection, or
nullif a matching saml sp idp connection could not be found
-
findByCompanyId_PrevAndNext
public static SamlSpIdpConnection[] findByCompanyId_PrevAndNext(long samlSpIdpConnectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) throws NoSuchSpIdpConnectionException Returns the saml sp idp connections before and after the current saml sp idp connection in the ordered set where companyId = ?.- Parameters:
samlSpIdpConnectionId- the primary key of the current saml sp idp connectioncompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next saml sp idp connection
- Throws:
NoSuchSpIdpConnectionException- if a saml sp idp connection with the primary key could not be foundNoSuchSpIdpConnectionException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the saml sp idp connections where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of saml sp idp connections where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching saml sp idp connections
-
findByC_SIEI
public static SamlSpIdpConnection findByC_SIEI(long companyId, String samlIdpEntityId) throws NoSuchSpIdpConnectionException Returns the saml sp idp connection where companyId = ? and samlIdpEntityId = ? or throws aNoSuchSpIdpConnectionExceptionif it could not be found.- Parameters:
companyId- the company IDsamlIdpEntityId- the saml idp entity ID- Returns:
- the matching saml sp idp connection
- Throws:
NoSuchSpIdpConnectionException- if a matching saml sp idp connection could not be foundNoSuchSpIdpConnectionException
-
fetchByC_SIEI
Returns the saml sp idp connection where companyId = ? and samlIdpEntityId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDsamlIdpEntityId- the saml idp entity ID- Returns:
- the matching saml sp idp connection, or
nullif a matching saml sp idp connection could not be found
-
fetchByC_SIEI
public static SamlSpIdpConnection fetchByC_SIEI(long companyId, String samlIdpEntityId, boolean useFinderCache) Returns the saml sp idp connection where companyId = ? and samlIdpEntityId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDsamlIdpEntityId- the saml idp entity IDuseFinderCache- whether to use the finder cache- Returns:
- the matching saml sp idp connection, or
nullif a matching saml sp idp connection could not be found
-
removeByC_SIEI
public static SamlSpIdpConnection removeByC_SIEI(long companyId, String samlIdpEntityId) throws NoSuchSpIdpConnectionException Removes the saml sp idp connection where companyId = ? and samlIdpEntityId = ? from the database.- Parameters:
companyId- the company IDsamlIdpEntityId- the saml idp entity ID- Returns:
- the saml sp idp connection that was removed
- Throws:
NoSuchSpIdpConnectionException
-
countByC_SIEI
Returns the number of saml sp idp connections where companyId = ? and samlIdpEntityId = ?.- Parameters:
companyId- the company IDsamlIdpEntityId- the saml idp entity ID- Returns:
- the number of matching saml sp idp connections
-
cacheResult
Caches the saml sp idp connection in the entity cache if it is enabled.- Parameters:
samlSpIdpConnection- the saml sp idp connection
-
cacheResult
Caches the saml sp idp connections in the entity cache if it is enabled.- Parameters:
samlSpIdpConnections- the saml sp idp connections
-
create
Creates a new saml sp idp connection with the primary key. Does not add the saml sp idp connection to the database.- Parameters:
samlSpIdpConnectionId- the primary key for the new saml sp idp connection- Returns:
- the new saml sp idp connection
-
remove
public static SamlSpIdpConnection remove(long samlSpIdpConnectionId) throws NoSuchSpIdpConnectionException Removes the saml sp idp connection with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
samlSpIdpConnectionId- the primary key of the saml sp idp connection- Returns:
- the saml sp idp connection that was removed
- Throws:
NoSuchSpIdpConnectionException- if a saml sp idp connection with the primary key could not be foundNoSuchSpIdpConnectionException
-
updateImpl
-
findByPrimaryKey
public static SamlSpIdpConnection findByPrimaryKey(long samlSpIdpConnectionId) throws NoSuchSpIdpConnectionException Returns the saml sp idp connection with the primary key or throws aNoSuchSpIdpConnectionExceptionif it could not be found.- Parameters:
samlSpIdpConnectionId- the primary key of the saml sp idp connection- Returns:
- the saml sp idp connection
- Throws:
NoSuchSpIdpConnectionException- if a saml sp idp connection with the primary key could not be foundNoSuchSpIdpConnectionException
-
fetchByPrimaryKey
Returns the saml sp idp connection with the primary key or returnsnullif it could not be found.- Parameters:
samlSpIdpConnectionId- the primary key of the saml sp idp connection- Returns:
- the saml sp idp connection, or
nullif a saml sp idp connection with the primary key could not be found
-
findAll
Returns all the saml sp idp connections.- Returns:
- the saml sp idp connections
-
findAll
Returns a range of all the saml sp idp connections.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 bothstartandendtoQueryUtil#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 fromSamlSpIdpConnectionModelImpl.- Parameters:
start- the lower bound of the range of saml sp idp connectionsend- the upper bound of the range of saml sp idp connections (not inclusive)- Returns:
- the range of saml sp idp connections
-
findAll
public static List<SamlSpIdpConnection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) Returns an ordered range of all the saml sp idp connections.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 bothstartandendtoQueryUtil#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 fromSamlSpIdpConnectionModelImpl.- Parameters:
start- the lower bound of the range of saml sp idp connectionsend- the upper bound of the range of saml sp idp connections (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of saml sp idp connections
-
findAll
public static List<SamlSpIdpConnection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp idp connections.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 bothstartandendtoQueryUtil#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 fromSamlSpIdpConnectionModelImpl.- Parameters:
start- the lower bound of the range of saml sp idp connectionsend- the upper bound of the range of saml sp idp connections (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of saml sp idp connections
-
removeAll
public static void removeAll()Removes all the saml sp idp connections from the database. -
countAll
public static int countAll()Returns the number of saml sp idp connections.- Returns:
- the number of saml sp idp connections
-
getPersistence
-
setPersistence
-