public class SamlSpAuthRequestUtil
extends java.lang.Object
com.liferay.saml.persistence.service.persistence.impl.SamlSpAuthRequestPersistenceImpl
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
SamlSpAuthRequestPersistence
Constructor and Description |
---|
SamlSpAuthRequestUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<SamlSpAuthRequest> samlSpAuthRequests)
Caches the saml sp auth requests in the entity cache if it is enabled.
|
static void |
cacheResult(SamlSpAuthRequest samlSpAuthRequest)
Caches the saml sp auth request in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SamlSpAuthRequest samlSpAuthRequest) |
static int |
countAll()
Returns the number of saml sp auth requests.
|
static int |
countByLtCreateDate(java.util.Date createDate)
Returns the number of saml sp auth requests where createDate < ?.
|
static int |
countBySIEI_SSARK(java.lang.String samlIdpEntityId,
java.lang.String samlSpAuthRequestKey)
Returns the number of saml sp auth requests where samlIdpEntityId = ? and samlSpAuthRequestKey = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SamlSpAuthRequest |
create(long samlSpAuthnRequestId)
Creates a new saml sp auth request with the primary key.
|
static SamlSpAuthRequest |
fetchByLtCreateDate_First(java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
Returns the first saml sp auth request in the ordered set where createDate < ?.
|
static SamlSpAuthRequest |
fetchByLtCreateDate_Last(java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
Returns the last saml sp auth request in the ordered set where createDate < ?.
|
static SamlSpAuthRequest |
fetchByPrimaryKey(long samlSpAuthnRequestId)
Returns the saml sp auth request with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SamlSpAuthRequest> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static SamlSpAuthRequest |
fetchBySIEI_SSARK(java.lang.String samlIdpEntityId,
java.lang.String samlSpAuthRequestKey)
Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or returns
null if it could not be found. |
static SamlSpAuthRequest |
fetchBySIEI_SSARK(java.lang.String samlIdpEntityId,
java.lang.String samlSpAuthRequestKey,
boolean useFinderCache)
Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or returns
null if it could not be found, optionally using the finder cache. |
static java.util.List<SamlSpAuthRequest> |
findAll()
Returns all the saml sp auth requests.
|
static java.util.List<SamlSpAuthRequest> |
findAll(int start,
int end)
Returns a range of all the saml sp auth requests.
|
static java.util.List<SamlSpAuthRequest> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
Returns an ordered range of all the saml sp auth requests.
|
static java.util.List<SamlSpAuthRequest> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the saml sp auth requests.
|
static SamlSpAuthRequest |
findByLtCreateDate_First(java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
Returns the first saml sp auth request in the ordered set where createDate < ?.
|
static SamlSpAuthRequest |
findByLtCreateDate_Last(java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
Returns the last saml sp auth request in the ordered set where createDate < ?.
|
static SamlSpAuthRequest[] |
findByLtCreateDate_PrevAndNext(long samlSpAuthnRequestId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
Returns the saml sp auth requests before and after the current saml sp auth request in the ordered set where createDate < ?.
|
static java.util.List<SamlSpAuthRequest> |
findByLtCreateDate(java.util.Date createDate)
Returns all the saml sp auth requests where createDate < ?.
|
static java.util.List<SamlSpAuthRequest> |
findByLtCreateDate(java.util.Date createDate,
int start,
int end)
Returns a range of all the saml sp auth requests where createDate < ?.
|
static java.util.List<SamlSpAuthRequest> |
findByLtCreateDate(java.util.Date createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
Returns an ordered range of all the saml sp auth requests where createDate < ?.
|
static java.util.List<SamlSpAuthRequest> |
findByLtCreateDate(java.util.Date createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the saml sp auth requests where createDate < ?.
|
static SamlSpAuthRequest |
findByPrimaryKey(long samlSpAuthnRequestId)
Returns the saml sp auth request with the primary key or throws a
NoSuchSpAuthRequestException if it could not be found. |
static SamlSpAuthRequest |
findBySIEI_SSARK(java.lang.String samlIdpEntityId,
java.lang.String samlSpAuthRequestKey)
Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or throws a
NoSuchSpAuthRequestException if it could not be found. |
static java.util.List<SamlSpAuthRequest> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SamlSpAuthRequest> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SamlSpAuthRequest> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) |
static SamlSpAuthRequestPersistence |
getPersistence() |
static SamlSpAuthRequest |
remove(long samlSpAuthnRequestId)
Removes the saml sp auth request with the primary key from the database.
|
static void |
removeAll()
Removes all the saml sp auth requests from the database.
|
static void |
removeByLtCreateDate(java.util.Date createDate)
Removes all the saml sp auth requests where createDate < ? from the database.
|
static SamlSpAuthRequest |
removeBySIEI_SSARK(java.lang.String samlIdpEntityId,
java.lang.String samlSpAuthRequestKey)
Removes the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? from the database.
|
static SamlSpAuthRequest |
update(SamlSpAuthRequest samlSpAuthRequest) |
static SamlSpAuthRequest |
update(SamlSpAuthRequest samlSpAuthRequest,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SamlSpAuthRequest |
updateImpl(SamlSpAuthRequest samlSpAuthRequest) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SamlSpAuthRequest samlSpAuthRequest)
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,SamlSpAuthRequest> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<SamlSpAuthRequest> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<SamlSpAuthRequest> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<SamlSpAuthRequest> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SamlSpAuthRequest update(SamlSpAuthRequest samlSpAuthRequest)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static SamlSpAuthRequest update(SamlSpAuthRequest samlSpAuthRequest, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<SamlSpAuthRequest> findByLtCreateDate(java.util.Date createDate)
createDate
- the create datepublic static java.util.List<SamlSpAuthRequest> findByLtCreateDate(java.util.Date createDate, 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 SamlSpAuthRequestModelImpl
.
createDate
- the create datestart
- the lower bound of the range of saml sp auth requestsend
- the upper bound of the range of saml sp auth requests (not inclusive)public static java.util.List<SamlSpAuthRequest> findByLtCreateDate(java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> 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 SamlSpAuthRequestModelImpl
.
createDate
- the create datestart
- the lower bound of the range of saml sp auth requestsend
- the upper bound of the range of saml sp auth requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SamlSpAuthRequest> findByLtCreateDate(java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> 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 SamlSpAuthRequestModelImpl
.
createDate
- the create datestart
- the lower bound of the range of saml sp auth requestsend
- the upper bound of the range of saml sp auth requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SamlSpAuthRequest findByLtCreateDate_First(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) throws NoSuchSpAuthRequestException
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpAuthRequestException
- if a matching saml sp auth request could not be foundpublic static SamlSpAuthRequest fetchByLtCreateDate_First(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp auth request could not be foundpublic static SamlSpAuthRequest findByLtCreateDate_Last(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) throws NoSuchSpAuthRequestException
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpAuthRequestException
- if a matching saml sp auth request could not be foundpublic static SamlSpAuthRequest fetchByLtCreateDate_Last(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator)
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp auth request could not be foundpublic static SamlSpAuthRequest[] findByLtCreateDate_PrevAndNext(long samlSpAuthnRequestId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) throws NoSuchSpAuthRequestException
samlSpAuthnRequestId
- the primary key of the current saml sp auth requestcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpAuthRequestException
- if a saml sp auth request with the primary key could not be foundpublic static void removeByLtCreateDate(java.util.Date createDate)
createDate
- the create datepublic static int countByLtCreateDate(java.util.Date createDate)
createDate
- the create datepublic static SamlSpAuthRequest findBySIEI_SSARK(java.lang.String samlIdpEntityId, java.lang.String samlSpAuthRequestKey) throws NoSuchSpAuthRequestException
NoSuchSpAuthRequestException
if it could not be found.samlIdpEntityId
- the saml idp entity IDsamlSpAuthRequestKey
- the saml sp auth request keyNoSuchSpAuthRequestException
- if a matching saml sp auth request could not be foundpublic static SamlSpAuthRequest fetchBySIEI_SSARK(java.lang.String samlIdpEntityId, java.lang.String samlSpAuthRequestKey)
null
if it could not be found. Uses the finder cache.samlIdpEntityId
- the saml idp entity IDsamlSpAuthRequestKey
- the saml sp auth request keynull
if a matching saml sp auth request could not be foundpublic static SamlSpAuthRequest fetchBySIEI_SSARK(java.lang.String samlIdpEntityId, java.lang.String samlSpAuthRequestKey, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.samlIdpEntityId
- the saml idp entity IDsamlSpAuthRequestKey
- the saml sp auth request keyuseFinderCache
- whether to use the finder cachenull
if a matching saml sp auth request could not be foundpublic static SamlSpAuthRequest removeBySIEI_SSARK(java.lang.String samlIdpEntityId, java.lang.String samlSpAuthRequestKey) throws NoSuchSpAuthRequestException
samlIdpEntityId
- the saml idp entity IDsamlSpAuthRequestKey
- the saml sp auth request keyNoSuchSpAuthRequestException
public static int countBySIEI_SSARK(java.lang.String samlIdpEntityId, java.lang.String samlSpAuthRequestKey)
samlIdpEntityId
- the saml idp entity IDsamlSpAuthRequestKey
- the saml sp auth request keypublic static void cacheResult(SamlSpAuthRequest samlSpAuthRequest)
samlSpAuthRequest
- the saml sp auth requestpublic static void cacheResult(java.util.List<SamlSpAuthRequest> samlSpAuthRequests)
samlSpAuthRequests
- the saml sp auth requestspublic static SamlSpAuthRequest create(long samlSpAuthnRequestId)
samlSpAuthnRequestId
- the primary key for the new saml sp auth requestpublic static SamlSpAuthRequest remove(long samlSpAuthnRequestId) throws NoSuchSpAuthRequestException
samlSpAuthnRequestId
- the primary key of the saml sp auth requestNoSuchSpAuthRequestException
- if a saml sp auth request with the primary key could not be foundpublic static SamlSpAuthRequest updateImpl(SamlSpAuthRequest samlSpAuthRequest)
public static SamlSpAuthRequest findByPrimaryKey(long samlSpAuthnRequestId) throws NoSuchSpAuthRequestException
NoSuchSpAuthRequestException
if it could not be found.samlSpAuthnRequestId
- the primary key of the saml sp auth requestNoSuchSpAuthRequestException
- if a saml sp auth request with the primary key could not be foundpublic static SamlSpAuthRequest fetchByPrimaryKey(long samlSpAuthnRequestId)
null
if it could not be found.samlSpAuthnRequestId
- the primary key of the saml sp auth requestnull
if a saml sp auth request with the primary key could not be foundpublic static java.util.List<SamlSpAuthRequest> findAll()
public static java.util.List<SamlSpAuthRequest> 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 SamlSpAuthRequestModelImpl
.
start
- the lower bound of the range of saml sp auth requestsend
- the upper bound of the range of saml sp auth requests (not inclusive)public static java.util.List<SamlSpAuthRequest> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> 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 SamlSpAuthRequestModelImpl
.
start
- the lower bound of the range of saml sp auth requestsend
- the upper bound of the range of saml sp auth requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SamlSpAuthRequest> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> 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 SamlSpAuthRequestModelImpl
.
start
- the lower bound of the range of saml sp auth requestsend
- the upper bound of the range of saml sp auth requests (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 SamlSpAuthRequestPersistence getPersistence()