public class SamlSpIdpConnectionUtil
extends java.lang.Object
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
SamlSpIdpConnectionPersistence
Constructor and Description |
---|
SamlSpIdpConnectionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<SamlSpIdpConnection> samlSpIdpConnections)
Caches the saml sp idp connections in the entity cache if it is enabled.
|
static void |
cacheResult(SamlSpIdpConnection samlSpIdpConnection)
Caches the saml sp idp connection in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SamlSpIdpConnection samlSpIdpConnection) |
static int |
countAll()
Returns the number of saml sp idp connections.
|
static int |
countByC_SIEI(long companyId,
java.lang.String samlIdpEntityId)
Returns the number of saml sp idp connections where companyId = ? and samlIdpEntityId = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of saml sp idp connections where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SamlSpIdpConnection |
create(long samlSpIdpConnectionId)
Creates a new saml sp idp connection with the primary key.
|
static SamlSpIdpConnection |
fetchByC_SIEI(long companyId,
java.lang.String samlIdpEntityId)
Returns the saml sp idp connection where companyId = ? and samlIdpEntityId = ? or returns
null if it could not be found. |
static SamlSpIdpConnection |
fetchByC_SIEI(long companyId,
java.lang.String samlIdpEntityId,
boolean useFinderCache)
Returns the saml sp idp connection where companyId = ? and samlIdpEntityId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
static SamlSpIdpConnection |
fetchByPrimaryKey(long samlSpIdpConnectionId)
Returns the saml sp idp connection with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SamlSpIdpConnection> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<SamlSpIdpConnection> |
findAll()
Returns all the saml sp idp connections.
|
static java.util.List<SamlSpIdpConnection> |
findAll(int start,
int end)
Returns a range of all the saml sp idp connections.
|
static java.util.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 java.util.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 SamlSpIdpConnection |
findByC_SIEI(long companyId,
java.lang.String samlIdpEntityId)
Returns the saml sp idp connection where companyId = ? and samlIdpEntityId = ? or throws a
NoSuchSpIdpConnectionException if it could not be found. |
static SamlSpIdpConnection |
findByCompanyId_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 SamlSpIdpConnection |
findByCompanyId_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 java.util.List<SamlSpIdpConnection> |
findByCompanyId(long companyId)
Returns all the saml sp idp connections where companyId = ?.
|
static java.util.List<SamlSpIdpConnection> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the saml sp idp connections where companyId = ?.
|
static java.util.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 java.util.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 SamlSpIdpConnection |
findByPrimaryKey(long samlSpIdpConnectionId)
Returns the saml sp idp connection with the primary key or throws a
NoSuchSpIdpConnectionException if it could not be found. |
static java.util.List<SamlSpIdpConnection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SamlSpIdpConnection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SamlSpIdpConnection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) |
static SamlSpIdpConnectionPersistence |
getPersistence() |
static SamlSpIdpConnection |
remove(long samlSpIdpConnectionId)
Removes the saml sp idp connection with the primary key from the database.
|
static void |
removeAll()
Removes all the saml sp idp connections from the database.
|
static SamlSpIdpConnection |
removeByC_SIEI(long companyId,
java.lang.String samlIdpEntityId)
Removes the saml sp idp connection where companyId = ? and samlIdpEntityId = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the saml sp idp connections where companyId = ? from the database.
|
static SamlSpIdpConnection |
update(SamlSpIdpConnection samlSpIdpConnection) |
static SamlSpIdpConnection |
update(SamlSpIdpConnection samlSpIdpConnection,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SamlSpIdpConnection |
updateImpl(SamlSpIdpConnection samlSpIdpConnection) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SamlSpIdpConnection samlSpIdpConnection)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,SamlSpIdpConnection> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<SamlSpIdpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<SamlSpIdpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<SamlSpIdpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SamlSpIdpConnection update(SamlSpIdpConnection samlSpIdpConnection)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static SamlSpIdpConnection update(SamlSpIdpConnection samlSpIdpConnection, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<SamlSpIdpConnection> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<SamlSpIdpConnection> findByCompanyId(long companyId, int start, int end)
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 SamlSpIdpConnectionModelImpl
.
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)public static java.util.List<SamlSpIdpConnection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator)
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 SamlSpIdpConnectionModelImpl
.
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 (optionally null
)public static java.util.List<SamlSpIdpConnection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator, boolean useFinderCache)
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 SamlSpIdpConnectionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static SamlSpIdpConnection findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) throws NoSuchSpIdpConnectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpIdpConnectionException
- if a matching saml sp idp connection could not be foundpublic static SamlSpIdpConnection fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp idp connection could not be foundpublic static SamlSpIdpConnection findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) throws NoSuchSpIdpConnectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpIdpConnectionException
- if a matching saml sp idp connection could not be foundpublic static SamlSpIdpConnection fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp idp connection could not be foundpublic static SamlSpIdpConnection[] findByCompanyId_PrevAndNext(long samlSpIdpConnectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator) throws NoSuchSpIdpConnectionException
samlSpIdpConnectionId
- the primary key of the current saml sp idp connectioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpIdpConnectionException
- if a saml sp idp connection with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static SamlSpIdpConnection findByC_SIEI(long companyId, java.lang.String samlIdpEntityId) throws NoSuchSpIdpConnectionException
NoSuchSpIdpConnectionException
if it could not be found.companyId
- the company IDsamlIdpEntityId
- the saml idp entity IDNoSuchSpIdpConnectionException
- if a matching saml sp idp connection could not be foundpublic static SamlSpIdpConnection fetchByC_SIEI(long companyId, java.lang.String samlIdpEntityId)
null
if it could not be found. Uses the finder cache.companyId
- the company IDsamlIdpEntityId
- the saml idp entity IDnull
if a matching saml sp idp connection could not be foundpublic static SamlSpIdpConnection fetchByC_SIEI(long companyId, java.lang.String samlIdpEntityId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDsamlIdpEntityId
- the saml idp entity IDuseFinderCache
- whether to use the finder cachenull
if a matching saml sp idp connection could not be foundpublic static SamlSpIdpConnection removeByC_SIEI(long companyId, java.lang.String samlIdpEntityId) throws NoSuchSpIdpConnectionException
companyId
- the company IDsamlIdpEntityId
- the saml idp entity IDNoSuchSpIdpConnectionException
public static int countByC_SIEI(long companyId, java.lang.String samlIdpEntityId)
companyId
- the company IDsamlIdpEntityId
- the saml idp entity IDpublic static void cacheResult(SamlSpIdpConnection samlSpIdpConnection)
samlSpIdpConnection
- the saml sp idp connectionpublic static void cacheResult(java.util.List<SamlSpIdpConnection> samlSpIdpConnections)
samlSpIdpConnections
- the saml sp idp connectionspublic static SamlSpIdpConnection create(long samlSpIdpConnectionId)
samlSpIdpConnectionId
- the primary key for the new saml sp idp connectionpublic static SamlSpIdpConnection remove(long samlSpIdpConnectionId) throws NoSuchSpIdpConnectionException
samlSpIdpConnectionId
- the primary key of the saml sp idp connectionNoSuchSpIdpConnectionException
- if a saml sp idp connection with the primary key could not be foundpublic static SamlSpIdpConnection updateImpl(SamlSpIdpConnection samlSpIdpConnection)
public static SamlSpIdpConnection findByPrimaryKey(long samlSpIdpConnectionId) throws NoSuchSpIdpConnectionException
NoSuchSpIdpConnectionException
if it could not be found.samlSpIdpConnectionId
- the primary key of the saml sp idp connectionNoSuchSpIdpConnectionException
- if a saml sp idp connection with the primary key could not be foundpublic static SamlSpIdpConnection fetchByPrimaryKey(long samlSpIdpConnectionId)
null
if it could not be found.samlSpIdpConnectionId
- the primary key of the saml sp idp connectionnull
if a saml sp idp connection with the primary key could not be foundpublic static java.util.List<SamlSpIdpConnection> findAll()
public static java.util.List<SamlSpIdpConnection> findAll(int start, int end)
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 SamlSpIdpConnectionModelImpl
.
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)public static java.util.List<SamlSpIdpConnection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator)
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 SamlSpIdpConnectionModelImpl
.
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 (optionally null
)public static java.util.List<SamlSpIdpConnection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpIdpConnection> orderByComparator, boolean useFinderCache)
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 SamlSpIdpConnectionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static SamlSpIdpConnectionPersistence getPersistence()