public class SamlSpMessageUtil
extends java.lang.Object
com.liferay.saml.persistence.service.persistence.impl.SamlSpMessagePersistenceImpl
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
SamlSpMessagePersistence
Constructor and Description |
---|
SamlSpMessageUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<SamlSpMessage> samlSpMessages)
Caches the saml sp messages in the entity cache if it is enabled.
|
static void |
cacheResult(SamlSpMessage samlSpMessage)
Caches the saml sp message in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SamlSpMessage samlSpMessage) |
static int |
countAll()
Returns the number of saml sp messages.
|
static int |
countByLtExpirationDate(java.util.Date expirationDate)
Returns the number of saml sp messages where expirationDate < ?.
|
static int |
countBySIEI_SIRK(java.lang.String samlIdpEntityId,
java.lang.String samlIdpResponseKey)
Returns the number of saml sp messages where samlIdpEntityId = ? and samlIdpResponseKey = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SamlSpMessage |
create(long samlSpMessageId)
Creates a new saml sp message with the primary key.
|
static SamlSpMessage |
fetchByLtExpirationDate_First(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
Returns the first saml sp message in the ordered set where expirationDate < ?.
|
static SamlSpMessage |
fetchByLtExpirationDate_Last(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
Returns the last saml sp message in the ordered set where expirationDate < ?.
|
static SamlSpMessage |
fetchByPrimaryKey(long samlSpMessageId)
Returns the saml sp message with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SamlSpMessage> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static SamlSpMessage |
fetchBySIEI_SIRK(java.lang.String samlIdpEntityId,
java.lang.String samlIdpResponseKey)
Returns the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? or returns
null if it could not be found. |
static SamlSpMessage |
fetchBySIEI_SIRK(java.lang.String samlIdpEntityId,
java.lang.String samlIdpResponseKey,
boolean useFinderCache)
Returns the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? or returns
null if it could not be found, optionally using the finder cache. |
static java.util.List<SamlSpMessage> |
findAll()
Returns all the saml sp messages.
|
static java.util.List<SamlSpMessage> |
findAll(int start,
int end)
Returns a range of all the saml sp messages.
|
static java.util.List<SamlSpMessage> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
Returns an ordered range of all the saml sp messages.
|
static java.util.List<SamlSpMessage> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the saml sp messages.
|
static SamlSpMessage |
findByLtExpirationDate_First(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
Returns the first saml sp message in the ordered set where expirationDate < ?.
|
static SamlSpMessage |
findByLtExpirationDate_Last(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
Returns the last saml sp message in the ordered set where expirationDate < ?.
|
static SamlSpMessage[] |
findByLtExpirationDate_PrevAndNext(long samlSpMessageId,
java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
Returns the saml sp messages before and after the current saml sp message in the ordered set where expirationDate < ?.
|
static java.util.List<SamlSpMessage> |
findByLtExpirationDate(java.util.Date expirationDate)
Returns all the saml sp messages where expirationDate < ?.
|
static java.util.List<SamlSpMessage> |
findByLtExpirationDate(java.util.Date expirationDate,
int start,
int end)
Returns a range of all the saml sp messages where expirationDate < ?.
|
static java.util.List<SamlSpMessage> |
findByLtExpirationDate(java.util.Date expirationDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
Returns an ordered range of all the saml sp messages where expirationDate < ?.
|
static java.util.List<SamlSpMessage> |
findByLtExpirationDate(java.util.Date expirationDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the saml sp messages where expirationDate < ?.
|
static SamlSpMessage |
findByPrimaryKey(long samlSpMessageId)
Returns the saml sp message with the primary key or throws a
NoSuchSpMessageException if it could not be found. |
static SamlSpMessage |
findBySIEI_SIRK(java.lang.String samlIdpEntityId,
java.lang.String samlIdpResponseKey)
Returns the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? or throws a
NoSuchSpMessageException if it could not be found. |
static java.util.List<SamlSpMessage> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SamlSpMessage> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SamlSpMessage> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) |
static SamlSpMessagePersistence |
getPersistence() |
static SamlSpMessage |
remove(long samlSpMessageId)
Removes the saml sp message with the primary key from the database.
|
static void |
removeAll()
Removes all the saml sp messages from the database.
|
static void |
removeByLtExpirationDate(java.util.Date expirationDate)
Removes all the saml sp messages where expirationDate < ? from the database.
|
static SamlSpMessage |
removeBySIEI_SIRK(java.lang.String samlIdpEntityId,
java.lang.String samlIdpResponseKey)
Removes the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? from the database.
|
static SamlSpMessage |
update(SamlSpMessage samlSpMessage) |
static SamlSpMessage |
update(SamlSpMessage samlSpMessage,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SamlSpMessage |
updateImpl(SamlSpMessage samlSpMessage) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SamlSpMessage samlSpMessage)
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,SamlSpMessage> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<SamlSpMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<SamlSpMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<SamlSpMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SamlSpMessage update(SamlSpMessage samlSpMessage)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static SamlSpMessage update(SamlSpMessage samlSpMessage, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<SamlSpMessage> findByLtExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration datepublic static java.util.List<SamlSpMessage> findByLtExpirationDate(java.util.Date expirationDate, 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 SamlSpMessageModelImpl
.
expirationDate
- the expiration datestart
- the lower bound of the range of saml sp messagesend
- the upper bound of the range of saml sp messages (not inclusive)public static java.util.List<SamlSpMessage> findByLtExpirationDate(java.util.Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> 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 SamlSpMessageModelImpl
.
expirationDate
- the expiration datestart
- the lower bound of the range of saml sp messagesend
- the upper bound of the range of saml sp messages (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SamlSpMessage> findByLtExpirationDate(java.util.Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> 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 SamlSpMessageModelImpl
.
expirationDate
- the expiration datestart
- the lower bound of the range of saml sp messagesend
- the upper bound of the range of saml sp messages (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SamlSpMessage findByLtExpirationDate_First(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) throws NoSuchSpMessageException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpMessageException
- if a matching saml sp message could not be foundpublic static SamlSpMessage fetchByLtExpirationDate_First(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp message could not be foundpublic static SamlSpMessage findByLtExpirationDate_Last(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) throws NoSuchSpMessageException
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpMessageException
- if a matching saml sp message could not be foundpublic static SamlSpMessage fetchByLtExpirationDate_Last(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator)
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp message could not be foundpublic static SamlSpMessage[] findByLtExpirationDate_PrevAndNext(long samlSpMessageId, java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) throws NoSuchSpMessageException
samlSpMessageId
- the primary key of the current saml sp messageexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpMessageException
- if a saml sp message with the primary key could not be foundpublic static void removeByLtExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration datepublic static int countByLtExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration datepublic static SamlSpMessage findBySIEI_SIRK(java.lang.String samlIdpEntityId, java.lang.String samlIdpResponseKey) throws NoSuchSpMessageException
NoSuchSpMessageException
if it could not be found.samlIdpEntityId
- the saml idp entity IDsamlIdpResponseKey
- the saml idp response keyNoSuchSpMessageException
- if a matching saml sp message could not be foundpublic static SamlSpMessage fetchBySIEI_SIRK(java.lang.String samlIdpEntityId, java.lang.String samlIdpResponseKey)
null
if it could not be found. Uses the finder cache.samlIdpEntityId
- the saml idp entity IDsamlIdpResponseKey
- the saml idp response keynull
if a matching saml sp message could not be foundpublic static SamlSpMessage fetchBySIEI_SIRK(java.lang.String samlIdpEntityId, java.lang.String samlIdpResponseKey, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.samlIdpEntityId
- the saml idp entity IDsamlIdpResponseKey
- the saml idp response keyuseFinderCache
- whether to use the finder cachenull
if a matching saml sp message could not be foundpublic static SamlSpMessage removeBySIEI_SIRK(java.lang.String samlIdpEntityId, java.lang.String samlIdpResponseKey) throws NoSuchSpMessageException
samlIdpEntityId
- the saml idp entity IDsamlIdpResponseKey
- the saml idp response keyNoSuchSpMessageException
public static int countBySIEI_SIRK(java.lang.String samlIdpEntityId, java.lang.String samlIdpResponseKey)
samlIdpEntityId
- the saml idp entity IDsamlIdpResponseKey
- the saml idp response keypublic static void cacheResult(SamlSpMessage samlSpMessage)
samlSpMessage
- the saml sp messagepublic static void cacheResult(java.util.List<SamlSpMessage> samlSpMessages)
samlSpMessages
- the saml sp messagespublic static SamlSpMessage create(long samlSpMessageId)
samlSpMessageId
- the primary key for the new saml sp messagepublic static SamlSpMessage remove(long samlSpMessageId) throws NoSuchSpMessageException
samlSpMessageId
- the primary key of the saml sp messageNoSuchSpMessageException
- if a saml sp message with the primary key could not be foundpublic static SamlSpMessage updateImpl(SamlSpMessage samlSpMessage)
public static SamlSpMessage findByPrimaryKey(long samlSpMessageId) throws NoSuchSpMessageException
NoSuchSpMessageException
if it could not be found.samlSpMessageId
- the primary key of the saml sp messageNoSuchSpMessageException
- if a saml sp message with the primary key could not be foundpublic static SamlSpMessage fetchByPrimaryKey(long samlSpMessageId)
null
if it could not be found.samlSpMessageId
- the primary key of the saml sp messagenull
if a saml sp message with the primary key could not be foundpublic static java.util.List<SamlSpMessage> findAll()
public static java.util.List<SamlSpMessage> 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 SamlSpMessageModelImpl
.
start
- the lower bound of the range of saml sp messagesend
- the upper bound of the range of saml sp messages (not inclusive)public static java.util.List<SamlSpMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> 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 SamlSpMessageModelImpl
.
start
- the lower bound of the range of saml sp messagesend
- the upper bound of the range of saml sp messages (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SamlSpMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> 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 SamlSpMessageModelImpl
.
start
- the lower bound of the range of saml sp messagesend
- the upper bound of the range of saml sp messages (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 SamlSpMessagePersistence getPersistence()