public class OAuthClientEntryUtil
extends java.lang.Object
com.liferay.oauth.client.persistence.service.persistence.impl.OAuthClientEntryPersistenceImpl
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
OAuthClientEntryPersistence
Constructor and Description |
---|
OAuthClientEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<OAuthClientEntry> oAuthClientEntries)
Caches the o auth client entries in the entity cache if it is enabled.
|
static void |
cacheResult(OAuthClientEntry oAuthClientEntry)
Caches the o auth client entry in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(OAuthClientEntry oAuthClientEntry) |
static int |
countAll()
Returns the number of o auth client entries.
|
static int |
countByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Returns the number of o auth client entries where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static int |
countByC_A(long companyId,
java.lang.String authServerWellKnownURI)
Returns the number of o auth client entries where companyId = ? and authServerWellKnownURI = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of o auth client entries where companyId = ?.
|
static int |
countByUserId(long userId)
Returns the number of o auth client entries where userId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static OAuthClientEntry |
create(long oAuthClientEntryId)
Creates a new o auth client entry with the primary key.
|
static OAuthClientEntry |
fetchByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Returns the o auth client entry where companyId = ? and authServerWellKnownURI = ? and clientId = ? or returns
null if it could not be found. |
static OAuthClientEntry |
fetchByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
boolean useFinderCache)
Returns the o auth client entry where companyId = ? and authServerWellKnownURI = ? and clientId = ? or returns
null if it could not be found, optionally using the finder cache. |
static OAuthClientEntry |
fetchByC_A_First(long companyId,
java.lang.String authServerWellKnownURI,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the first o auth client entry in the ordered set where companyId = ? and authServerWellKnownURI = ?.
|
static OAuthClientEntry |
fetchByC_A_Last(long companyId,
java.lang.String authServerWellKnownURI,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the last o auth client entry in the ordered set where companyId = ? and authServerWellKnownURI = ?.
|
static OAuthClientEntry |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the first o auth client entry in the ordered set where companyId = ?.
|
static OAuthClientEntry |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the last o auth client entry in the ordered set where companyId = ?.
|
static OAuthClientEntry |
fetchByPrimaryKey(long oAuthClientEntryId)
Returns the o auth client entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,OAuthClientEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static OAuthClientEntry |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the first o auth client entry in the ordered set where userId = ?.
|
static OAuthClientEntry |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the last o auth client entry in the ordered set where userId = ?.
|
static int |
filterCountByC_A(long companyId,
java.lang.String authServerWellKnownURI)
Returns the number of o auth client entries that the user has permission to view where companyId = ? and authServerWellKnownURI = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of o auth client entries that the user has permission to view where companyId = ?.
|
static int |
filterCountByUserId(long userId)
Returns the number of o auth client entries that the user has permission to view where userId = ?.
|
static OAuthClientEntry[] |
filterFindByC_A_PrevAndNext(long oAuthClientEntryId,
long companyId,
java.lang.String authServerWellKnownURI,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the o auth client entries before and after the current o auth client entry in the ordered set of o auth client entries that the user has permission to view where companyId = ? and authServerWellKnownURI = ?.
|
static java.util.List<OAuthClientEntry> |
filterFindByC_A(long companyId,
java.lang.String authServerWellKnownURI)
Returns all the o auth client entries that the user has permission to view where companyId = ? and authServerWellKnownURI = ?.
|
static java.util.List<OAuthClientEntry> |
filterFindByC_A(long companyId,
java.lang.String authServerWellKnownURI,
int start,
int end)
Returns a range of all the o auth client entries that the user has permission to view where companyId = ? and authServerWellKnownURI = ?.
|
static java.util.List<OAuthClientEntry> |
filterFindByC_A(long companyId,
java.lang.String authServerWellKnownURI,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns an ordered range of all the o auth client entries that the user has permissions to view where companyId = ? and authServerWellKnownURI = ?.
|
static OAuthClientEntry[] |
filterFindByCompanyId_PrevAndNext(long oAuthClientEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the o auth client entries before and after the current o auth client entry in the ordered set of o auth client entries that the user has permission to view where companyId = ?.
|
static java.util.List<OAuthClientEntry> |
filterFindByCompanyId(long companyId)
Returns all the o auth client entries that the user has permission to view where companyId = ?.
|
static java.util.List<OAuthClientEntry> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the o auth client entries that the user has permission to view where companyId = ?.
|
static java.util.List<OAuthClientEntry> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns an ordered range of all the o auth client entries that the user has permissions to view where companyId = ?.
|
static OAuthClientEntry[] |
filterFindByUserId_PrevAndNext(long oAuthClientEntryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the o auth client entries before and after the current o auth client entry in the ordered set of o auth client entries that the user has permission to view where userId = ?.
|
static java.util.List<OAuthClientEntry> |
filterFindByUserId(long userId)
Returns all the o auth client entries that the user has permission to view where userId = ?.
|
static java.util.List<OAuthClientEntry> |
filterFindByUserId(long userId,
int start,
int end)
Returns a range of all the o auth client entries that the user has permission to view where userId = ?.
|
static java.util.List<OAuthClientEntry> |
filterFindByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns an ordered range of all the o auth client entries that the user has permissions to view where userId = ?.
|
static java.util.List<OAuthClientEntry> |
findAll()
Returns all the o auth client entries.
|
static java.util.List<OAuthClientEntry> |
findAll(int start,
int end)
Returns a range of all the o auth client entries.
|
static java.util.List<OAuthClientEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns an ordered range of all the o auth client entries.
|
static java.util.List<OAuthClientEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth client entries.
|
static OAuthClientEntry |
findByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Returns the o auth client entry where companyId = ? and authServerWellKnownURI = ? and clientId = ? or throws a
NoSuchOAuthClientEntryException if it could not be found. |
static OAuthClientEntry |
findByC_A_First(long companyId,
java.lang.String authServerWellKnownURI,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the first o auth client entry in the ordered set where companyId = ? and authServerWellKnownURI = ?.
|
static OAuthClientEntry |
findByC_A_Last(long companyId,
java.lang.String authServerWellKnownURI,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the last o auth client entry in the ordered set where companyId = ? and authServerWellKnownURI = ?.
|
static OAuthClientEntry[] |
findByC_A_PrevAndNext(long oAuthClientEntryId,
long companyId,
java.lang.String authServerWellKnownURI,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the o auth client entries before and after the current o auth client entry in the ordered set where companyId = ? and authServerWellKnownURI = ?.
|
static java.util.List<OAuthClientEntry> |
findByC_A(long companyId,
java.lang.String authServerWellKnownURI)
Returns all the o auth client entries where companyId = ? and authServerWellKnownURI = ?.
|
static java.util.List<OAuthClientEntry> |
findByC_A(long companyId,
java.lang.String authServerWellKnownURI,
int start,
int end)
Returns a range of all the o auth client entries where companyId = ? and authServerWellKnownURI = ?.
|
static java.util.List<OAuthClientEntry> |
findByC_A(long companyId,
java.lang.String authServerWellKnownURI,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns an ordered range of all the o auth client entries where companyId = ? and authServerWellKnownURI = ?.
|
static java.util.List<OAuthClientEntry> |
findByC_A(long companyId,
java.lang.String authServerWellKnownURI,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth client entries where companyId = ? and authServerWellKnownURI = ?.
|
static OAuthClientEntry |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the first o auth client entry in the ordered set where companyId = ?.
|
static OAuthClientEntry |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the last o auth client entry in the ordered set where companyId = ?.
|
static OAuthClientEntry[] |
findByCompanyId_PrevAndNext(long oAuthClientEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the o auth client entries before and after the current o auth client entry in the ordered set where companyId = ?.
|
static java.util.List<OAuthClientEntry> |
findByCompanyId(long companyId)
Returns all the o auth client entries where companyId = ?.
|
static java.util.List<OAuthClientEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the o auth client entries where companyId = ?.
|
static java.util.List<OAuthClientEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns an ordered range of all the o auth client entries where companyId = ?.
|
static java.util.List<OAuthClientEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth client entries where companyId = ?.
|
static OAuthClientEntry |
findByPrimaryKey(long oAuthClientEntryId)
Returns the o auth client entry with the primary key or throws a
NoSuchOAuthClientEntryException if it could not be found. |
static OAuthClientEntry |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the first o auth client entry in the ordered set where userId = ?.
|
static OAuthClientEntry |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the last o auth client entry in the ordered set where userId = ?.
|
static OAuthClientEntry[] |
findByUserId_PrevAndNext(long oAuthClientEntryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns the o auth client entries before and after the current o auth client entry in the ordered set where userId = ?.
|
static java.util.List<OAuthClientEntry> |
findByUserId(long userId)
Returns all the o auth client entries where userId = ?.
|
static java.util.List<OAuthClientEntry> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the o auth client entries where userId = ?.
|
static java.util.List<OAuthClientEntry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
Returns an ordered range of all the o auth client entries where userId = ?.
|
static java.util.List<OAuthClientEntry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the o auth client entries where userId = ?.
|
static java.util.List<OAuthClientEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<OAuthClientEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<OAuthClientEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) |
static OAuthClientEntryPersistence |
getPersistence() |
static OAuthClientEntry |
remove(long oAuthClientEntryId)
Removes the o auth client entry with the primary key from the database.
|
static void |
removeAll()
Removes all the o auth client entries from the database.
|
static OAuthClientEntry |
removeByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Removes the o auth client entry where companyId = ? and authServerWellKnownURI = ? and clientId = ? from the database.
|
static void |
removeByC_A(long companyId,
java.lang.String authServerWellKnownURI)
Removes all the o auth client entries where companyId = ? and authServerWellKnownURI = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the o auth client entries where companyId = ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the o auth client entries where userId = ? from the database.
|
static void |
setPersistence(OAuthClientEntryPersistence persistence) |
static OAuthClientEntry |
update(OAuthClientEntry oAuthClientEntry) |
static OAuthClientEntry |
update(OAuthClientEntry oAuthClientEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static OAuthClientEntry |
updateImpl(OAuthClientEntry oAuthClientEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(OAuthClientEntry oAuthClientEntry)
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,OAuthClientEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<OAuthClientEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<OAuthClientEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<OAuthClientEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static OAuthClientEntry update(OAuthClientEntry oAuthClientEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static OAuthClientEntry update(OAuthClientEntry oAuthClientEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<OAuthClientEntry> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)public static java.util.List<OAuthClientEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuthClientEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OAuthClientEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a matching o auth client entry could not be foundpublic static OAuthClientEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth client entry could not be foundpublic static OAuthClientEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a matching o auth client entry could not be foundpublic static OAuthClientEntry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth client entry could not be foundpublic static OAuthClientEntry[] findByCompanyId_PrevAndNext(long oAuthClientEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
oAuthClientEntryId
- the primary key of the current o auth client entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a o auth client entry with the primary key could not be foundpublic static java.util.List<OAuthClientEntry> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<OAuthClientEntry> filterFindByCompanyId(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 OAuthClientEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)public static java.util.List<OAuthClientEntry> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static OAuthClientEntry[] filterFindByCompanyId_PrevAndNext(long oAuthClientEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
oAuthClientEntryId
- the primary key of the current o auth client entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a o auth client entry 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 int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<OAuthClientEntry> findByUserId(long userId)
userId
- the user IDpublic static java.util.List<OAuthClientEntry> findByUserId(long userId, 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 OAuthClientEntryModelImpl
.
userId
- the user IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)public static java.util.List<OAuthClientEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
userId
- the user IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuthClientEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
userId
- the user IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OAuthClientEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a matching o auth client entry could not be foundpublic static OAuthClientEntry fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth client entry could not be foundpublic static OAuthClientEntry findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a matching o auth client entry could not be foundpublic static OAuthClientEntry fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth client entry could not be foundpublic static OAuthClientEntry[] findByUserId_PrevAndNext(long oAuthClientEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
oAuthClientEntryId
- the primary key of the current o auth client entryuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a o auth client entry with the primary key could not be foundpublic static java.util.List<OAuthClientEntry> filterFindByUserId(long userId)
userId
- the user IDpublic static java.util.List<OAuthClientEntry> filterFindByUserId(long userId, 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 OAuthClientEntryModelImpl
.
userId
- the user IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)public static java.util.List<OAuthClientEntry> filterFindByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
userId
- the user IDstart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static OAuthClientEntry[] filterFindByUserId_PrevAndNext(long oAuthClientEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
oAuthClientEntryId
- the primary key of the current o auth client entryuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a o auth client entry with the primary key could not be foundpublic static void removeByUserId(long userId)
userId
- the user IDpublic static int countByUserId(long userId)
userId
- the user IDpublic static int filterCountByUserId(long userId)
userId
- the user IDpublic static java.util.List<OAuthClientEntry> findByC_A(long companyId, java.lang.String authServerWellKnownURI)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uripublic static java.util.List<OAuthClientEntry> findByC_A(long companyId, java.lang.String authServerWellKnownURI, 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 OAuthClientEntryModelImpl
.
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uristart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)public static java.util.List<OAuthClientEntry> findByC_A(long companyId, java.lang.String authServerWellKnownURI, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uristart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuthClientEntry> findByC_A(long companyId, java.lang.String authServerWellKnownURI, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uristart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OAuthClientEntry findByC_A_First(long companyId, java.lang.String authServerWellKnownURI, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a matching o auth client entry could not be foundpublic static OAuthClientEntry fetchByC_A_First(long companyId, java.lang.String authServerWellKnownURI, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth client entry could not be foundpublic static OAuthClientEntry findByC_A_Last(long companyId, java.lang.String authServerWellKnownURI, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a matching o auth client entry could not be foundpublic static OAuthClientEntry fetchByC_A_Last(long companyId, java.lang.String authServerWellKnownURI, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching o auth client entry could not be foundpublic static OAuthClientEntry[] findByC_A_PrevAndNext(long oAuthClientEntryId, long companyId, java.lang.String authServerWellKnownURI, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
oAuthClientEntryId
- the primary key of the current o auth client entrycompanyId
- the company IDauthServerWellKnownURI
- the auth server well known uriorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a o auth client entry with the primary key could not be foundpublic static java.util.List<OAuthClientEntry> filterFindByC_A(long companyId, java.lang.String authServerWellKnownURI)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uripublic static java.util.List<OAuthClientEntry> filterFindByC_A(long companyId, java.lang.String authServerWellKnownURI, 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 OAuthClientEntryModelImpl
.
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uristart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)public static java.util.List<OAuthClientEntry> filterFindByC_A(long companyId, java.lang.String authServerWellKnownURI, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uristart
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static OAuthClientEntry[] filterFindByC_A_PrevAndNext(long oAuthClientEntryId, long companyId, java.lang.String authServerWellKnownURI, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> orderByComparator) throws NoSuchOAuthClientEntryException
oAuthClientEntryId
- the primary key of the current o auth client entrycompanyId
- the company IDauthServerWellKnownURI
- the auth server well known uriorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOAuthClientEntryException
- if a o auth client entry with the primary key could not be foundpublic static void removeByC_A(long companyId, java.lang.String authServerWellKnownURI)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uripublic static int countByC_A(long companyId, java.lang.String authServerWellKnownURI)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uripublic static int filterCountByC_A(long companyId, java.lang.String authServerWellKnownURI)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uripublic static OAuthClientEntry findByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId) throws NoSuchOAuthClientEntryException
NoSuchOAuthClientEntryException
if it could not be found.companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDNoSuchOAuthClientEntryException
- if a matching o auth client entry could not be foundpublic static OAuthClientEntry fetchByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId)
null
if it could not be found. Uses the finder cache.companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDnull
if a matching o auth client entry could not be foundpublic static OAuthClientEntry fetchByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDuseFinderCache
- whether to use the finder cachenull
if a matching o auth client entry could not be foundpublic static OAuthClientEntry removeByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId) throws NoSuchOAuthClientEntryException
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDNoSuchOAuthClientEntryException
public static int countByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDpublic static void cacheResult(OAuthClientEntry oAuthClientEntry)
oAuthClientEntry
- the o auth client entrypublic static void cacheResult(java.util.List<OAuthClientEntry> oAuthClientEntries)
oAuthClientEntries
- the o auth client entriespublic static OAuthClientEntry create(long oAuthClientEntryId)
oAuthClientEntryId
- the primary key for the new o auth client entrypublic static OAuthClientEntry remove(long oAuthClientEntryId) throws NoSuchOAuthClientEntryException
oAuthClientEntryId
- the primary key of the o auth client entryNoSuchOAuthClientEntryException
- if a o auth client entry with the primary key could not be foundpublic static OAuthClientEntry updateImpl(OAuthClientEntry oAuthClientEntry)
public static OAuthClientEntry findByPrimaryKey(long oAuthClientEntryId) throws NoSuchOAuthClientEntryException
NoSuchOAuthClientEntryException
if it could not be found.oAuthClientEntryId
- the primary key of the o auth client entryNoSuchOAuthClientEntryException
- if a o auth client entry with the primary key could not be foundpublic static OAuthClientEntry fetchByPrimaryKey(long oAuthClientEntryId)
null
if it could not be found.oAuthClientEntryId
- the primary key of the o auth client entrynull
if a o auth client entry with the primary key could not be foundpublic static java.util.List<OAuthClientEntry> findAll()
public static java.util.List<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
start
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)public static java.util.List<OAuthClientEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
start
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OAuthClientEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthClientEntry> 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 OAuthClientEntryModelImpl
.
start
- the lower bound of the range of o auth client entriesend
- the upper bound of the range of o auth client entries (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 OAuthClientEntryPersistence getPersistence()
public static void setPersistence(OAuthClientEntryPersistence persistence)