public class SamlIdpSpConnectionUtil
extends java.lang.Object
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
SamlIdpSpConnectionPersistence
Constructor and Description |
---|
SamlIdpSpConnectionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<SamlIdpSpConnection> samlIdpSpConnections)
Caches the saml idp sp connections in the entity cache if it is enabled.
|
static void |
cacheResult(SamlIdpSpConnection samlIdpSpConnection)
Caches the saml idp sp connection in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SamlIdpSpConnection samlIdpSpConnection) |
static int |
countAll()
Returns the number of saml idp sp connections.
|
static int |
countByC_SSEI(long companyId,
java.lang.String samlSpEntityId)
Returns the number of saml idp sp connections where companyId = ? and samlSpEntityId = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of saml idp sp connections where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SamlIdpSpConnection |
create(long samlIdpSpConnectionId)
Creates a new saml idp sp connection with the primary key.
|
static SamlIdpSpConnection |
fetchByC_SSEI(long companyId,
java.lang.String samlSpEntityId)
Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or returns
null if it could not be found. |
static SamlIdpSpConnection |
fetchByC_SSEI(long companyId,
java.lang.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. |
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 = ?.
|
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 = ?.
|
static SamlIdpSpConnection |
fetchByPrimaryKey(long samlIdpSpConnectionId)
Returns the saml idp sp connection with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SamlIdpSpConnection> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<SamlIdpSpConnection> |
findAll()
Returns all the saml idp sp connections.
|
static java.util.List<SamlIdpSpConnection> |
findAll(int start,
int end)
Returns a range of all the saml idp sp connections.
|
static java.util.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.
|
static java.util.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.
|
static SamlIdpSpConnection |
findByC_SSEI(long companyId,
java.lang.String samlSpEntityId)
Returns the saml idp sp connection where companyId = ? and samlSpEntityId = ? or throws a
NoSuchIdpSpConnectionException if it could not be found. |
static SamlIdpSpConnection |
findByCompanyId_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 SamlIdpSpConnection |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
Returns the last saml idp sp connection in the ordered set where companyId = ?.
|
static SamlIdpSpConnection[] |
findByCompanyId_PrevAndNext(long samlIdpSpConnectionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
Returns the saml idp sp connections before and after the current saml idp sp connection in the ordered set where companyId = ?.
|
static java.util.List<SamlIdpSpConnection> |
findByCompanyId(long companyId)
Returns all the saml idp sp connections where companyId = ?.
|
static java.util.List<SamlIdpSpConnection> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the saml idp sp connections where companyId = ?.
|
static java.util.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 java.util.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 SamlIdpSpConnection |
findByPrimaryKey(long samlIdpSpConnectionId)
Returns the saml idp sp connection with the primary key or throws a
NoSuchIdpSpConnectionException if it could not be found. |
static java.util.List<SamlIdpSpConnection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SamlIdpSpConnection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SamlIdpSpConnection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) |
static SamlIdpSpConnectionPersistence |
getPersistence() |
static SamlIdpSpConnection |
remove(long samlIdpSpConnectionId)
Removes the saml idp sp connection with the primary key from the database.
|
static void |
removeAll()
Removes all the saml idp sp connections from the database.
|
static SamlIdpSpConnection |
removeByC_SSEI(long companyId,
java.lang.String samlSpEntityId)
Removes the saml idp sp connection where companyId = ? and samlSpEntityId = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the saml idp sp connections where companyId = ? from the database.
|
static SamlIdpSpConnection |
update(SamlIdpSpConnection samlIdpSpConnection) |
static SamlIdpSpConnection |
update(SamlIdpSpConnection samlIdpSpConnection,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SamlIdpSpConnection |
updateImpl(SamlIdpSpConnection samlIdpSpConnection) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SamlIdpSpConnection samlIdpSpConnection)
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,SamlIdpSpConnection> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<SamlIdpSpConnection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SamlIdpSpConnection update(SamlIdpSpConnection samlIdpSpConnection)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static SamlIdpSpConnection update(SamlIdpSpConnection samlIdpSpConnection, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<SamlIdpSpConnection> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<SamlIdpSpConnection> 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 SamlIdpSpConnectionModelImpl
.
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)public static java.util.List<SamlIdpSpConnection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> 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 SamlIdpSpConnectionModelImpl
.
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 (optionally null
)public static java.util.List<SamlIdpSpConnection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> 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 SamlIdpSpConnectionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static SamlIdpSpConnection findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) throws NoSuchIdpSpConnectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchIdpSpConnectionException
- if a matching saml idp sp connection could not be foundpublic static SamlIdpSpConnection fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml idp sp connection could not be foundpublic static SamlIdpSpConnection findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) throws NoSuchIdpSpConnectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchIdpSpConnectionException
- if a matching saml idp sp connection could not be foundpublic static SamlIdpSpConnection fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml idp sp connection could not be foundpublic static SamlIdpSpConnection[] findByCompanyId_PrevAndNext(long samlIdpSpConnectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> orderByComparator) throws NoSuchIdpSpConnectionException
samlIdpSpConnectionId
- the primary key of the current saml idp sp connectioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchIdpSpConnectionException
- if a saml idp sp 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 SamlIdpSpConnection findByC_SSEI(long companyId, java.lang.String samlSpEntityId) throws NoSuchIdpSpConnectionException
NoSuchIdpSpConnectionException
if it could not be found.companyId
- the company IDsamlSpEntityId
- the saml sp entity IDNoSuchIdpSpConnectionException
- if a matching saml idp sp connection could not be foundpublic static SamlIdpSpConnection fetchByC_SSEI(long companyId, java.lang.String samlSpEntityId)
null
if it could not be found. Uses the finder cache.companyId
- the company IDsamlSpEntityId
- the saml sp entity IDnull
if a matching saml idp sp connection could not be foundpublic static SamlIdpSpConnection fetchByC_SSEI(long companyId, java.lang.String samlSpEntityId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDsamlSpEntityId
- the saml sp entity IDuseFinderCache
- whether to use the finder cachenull
if a matching saml idp sp connection could not be foundpublic static SamlIdpSpConnection removeByC_SSEI(long companyId, java.lang.String samlSpEntityId) throws NoSuchIdpSpConnectionException
companyId
- the company IDsamlSpEntityId
- the saml sp entity IDNoSuchIdpSpConnectionException
public static int countByC_SSEI(long companyId, java.lang.String samlSpEntityId)
companyId
- the company IDsamlSpEntityId
- the saml sp entity IDpublic static void cacheResult(SamlIdpSpConnection samlIdpSpConnection)
samlIdpSpConnection
- the saml idp sp connectionpublic static void cacheResult(java.util.List<SamlIdpSpConnection> samlIdpSpConnections)
samlIdpSpConnections
- the saml idp sp connectionspublic static SamlIdpSpConnection create(long samlIdpSpConnectionId)
samlIdpSpConnectionId
- the primary key for the new saml idp sp connectionpublic static SamlIdpSpConnection remove(long samlIdpSpConnectionId) throws NoSuchIdpSpConnectionException
samlIdpSpConnectionId
- the primary key of the saml idp sp connectionNoSuchIdpSpConnectionException
- if a saml idp sp connection with the primary key could not be foundpublic static SamlIdpSpConnection updateImpl(SamlIdpSpConnection samlIdpSpConnection)
public static SamlIdpSpConnection findByPrimaryKey(long samlIdpSpConnectionId) throws NoSuchIdpSpConnectionException
NoSuchIdpSpConnectionException
if it could not be found.samlIdpSpConnectionId
- the primary key of the saml idp sp connectionNoSuchIdpSpConnectionException
- if a saml idp sp connection with the primary key could not be foundpublic static SamlIdpSpConnection fetchByPrimaryKey(long samlIdpSpConnectionId)
null
if it could not be found.samlIdpSpConnectionId
- the primary key of the saml idp sp connectionnull
if a saml idp sp connection with the primary key could not be foundpublic static java.util.List<SamlIdpSpConnection> findAll()
public static java.util.List<SamlIdpSpConnection> 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 SamlIdpSpConnectionModelImpl
.
start
- the lower bound of the range of saml idp sp connectionsend
- the upper bound of the range of saml idp sp connections (not inclusive)public static java.util.List<SamlIdpSpConnection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> 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 SamlIdpSpConnectionModelImpl
.
start
- 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 (optionally null
)public static java.util.List<SamlIdpSpConnection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpConnection> 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 SamlIdpSpConnectionModelImpl
.
start
- 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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static SamlIdpSpConnectionPersistence getPersistence()