@ProviderType
public class AnonymousUserUtil
extends java.lang.Object
com.liferay.content.targeting.anonymous.users.service.persistence.impl.AnonymousUserPersistenceImpl
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
AnonymousUserPersistence
,
com.liferay.content.targeting.anonymous.users.service.persistence.impl.AnonymousUserPersistenceImpl
Constructor and Description |
---|
AnonymousUserUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(AnonymousUser anonymousUser)
Caches the anonymous user in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<AnonymousUser> anonymousUsers)
Caches the anonymous users in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(AnonymousUser anonymousUser) |
static int |
countAll()
Returns the number of anonymous users.
|
static int |
countByC_LtD(long companyId,
java.util.Date createDate)
Returns the number of anonymous users where companyId = ? and createDate < ?.
|
static int |
countByUserId(long userId)
Returns the number of anonymous users where userId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of anonymous users where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of anonymous users where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static AnonymousUser |
create(long anonymousUserId)
Creates a new anonymous user with the primary key.
|
static AnonymousUser |
fetchByC_LtD_First(long companyId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the first anonymous user in the ordered set where companyId = ? and createDate < ?.
|
static AnonymousUser |
fetchByC_LtD_Last(long companyId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the last anonymous user in the ordered set where companyId = ? and createDate < ?.
|
static AnonymousUser |
fetchByPrimaryKey(long anonymousUserId)
Returns the anonymous user with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,AnonymousUser> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static AnonymousUser |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the first anonymous user in the ordered set where userId = ?.
|
static AnonymousUser |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the last anonymous user in the ordered set where userId = ?.
|
static AnonymousUser |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the first anonymous user in the ordered set where uuid = ? and companyId = ?.
|
static AnonymousUser |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the last anonymous user in the ordered set where uuid = ? and companyId = ?.
|
static AnonymousUser |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the first anonymous user in the ordered set where uuid = ?.
|
static AnonymousUser |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the last anonymous user in the ordered set where uuid = ?.
|
static java.util.List<AnonymousUser> |
findAll()
Returns all the anonymous users.
|
static java.util.List<AnonymousUser> |
findAll(int start,
int end)
Returns a range of all the anonymous users.
|
static java.util.List<AnonymousUser> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns an ordered range of all the anonymous users.
|
static java.util.List<AnonymousUser> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the anonymous users.
|
static AnonymousUser |
findByC_LtD_First(long companyId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the first anonymous user in the ordered set where companyId = ? and createDate < ?.
|
static AnonymousUser |
findByC_LtD_Last(long companyId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the last anonymous user in the ordered set where companyId = ? and createDate < ?.
|
static AnonymousUser[] |
findByC_LtD_PrevAndNext(long anonymousUserId,
long companyId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the anonymous users before and after the current anonymous user in the ordered set where companyId = ? and createDate < ?.
|
static java.util.List<AnonymousUser> |
findByC_LtD(long companyId,
java.util.Date createDate)
Returns all the anonymous users where companyId = ? and createDate < ?.
|
static java.util.List<AnonymousUser> |
findByC_LtD(long companyId,
java.util.Date createDate,
int start,
int end)
Returns a range of all the anonymous users where companyId = ? and createDate < ?.
|
static java.util.List<AnonymousUser> |
findByC_LtD(long companyId,
java.util.Date createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns an ordered range of all the anonymous users where companyId = ? and createDate < ?.
|
static java.util.List<AnonymousUser> |
findByC_LtD(long companyId,
java.util.Date createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the anonymous users where companyId = ? and createDate < ?.
|
static AnonymousUser |
findByPrimaryKey(long anonymousUserId)
Returns the anonymous user with the primary key or throws a
NoSuchAnonymousUserException if it could not be found. |
static AnonymousUser |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the first anonymous user in the ordered set where userId = ?.
|
static AnonymousUser |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the last anonymous user in the ordered set where userId = ?.
|
static AnonymousUser[] |
findByUserId_PrevAndNext(long anonymousUserId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the anonymous users before and after the current anonymous user in the ordered set where userId = ?.
|
static java.util.List<AnonymousUser> |
findByUserId(long userId)
Returns all the anonymous users where userId = ?.
|
static java.util.List<AnonymousUser> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the anonymous users where userId = ?.
|
static java.util.List<AnonymousUser> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns an ordered range of all the anonymous users where userId = ?.
|
static java.util.List<AnonymousUser> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the anonymous users where userId = ?.
|
static AnonymousUser |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the first anonymous user in the ordered set where uuid = ? and companyId = ?.
|
static AnonymousUser |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the last anonymous user in the ordered set where uuid = ? and companyId = ?.
|
static AnonymousUser[] |
findByUuid_C_PrevAndNext(long anonymousUserId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the anonymous users before and after the current anonymous user in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<AnonymousUser> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the anonymous users where uuid = ? and companyId = ?.
|
static java.util.List<AnonymousUser> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the anonymous users where uuid = ? and companyId = ?.
|
static java.util.List<AnonymousUser> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns an ordered range of all the anonymous users where uuid = ? and companyId = ?.
|
static java.util.List<AnonymousUser> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the anonymous users where uuid = ? and companyId = ?.
|
static AnonymousUser |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the first anonymous user in the ordered set where uuid = ?.
|
static AnonymousUser |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the last anonymous user in the ordered set where uuid = ?.
|
static AnonymousUser[] |
findByUuid_PrevAndNext(long anonymousUserId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns the anonymous users before and after the current anonymous user in the ordered set where uuid = ?.
|
static java.util.List<AnonymousUser> |
findByUuid(java.lang.String uuid)
Returns all the anonymous users where uuid = ?.
|
static java.util.List<AnonymousUser> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the anonymous users where uuid = ?.
|
static java.util.List<AnonymousUser> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
Returns an ordered range of all the anonymous users where uuid = ?.
|
static java.util.List<AnonymousUser> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the anonymous users where uuid = ?.
|
static java.util.List<AnonymousUser> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<AnonymousUser> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<AnonymousUser> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static AnonymousUserPersistence |
getPersistence() |
static AnonymousUser |
remove(long anonymousUserId)
Removes the anonymous user with the primary key from the database.
|
static void |
removeAll()
Removes all the anonymous users from the database.
|
static void |
removeByC_LtD(long companyId,
java.util.Date createDate)
Removes all the anonymous users where companyId = ? and createDate < ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the anonymous users where userId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the anonymous users where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the anonymous users where uuid = ? from the database.
|
static AnonymousUser |
update(AnonymousUser anonymousUser) |
static AnonymousUser |
update(AnonymousUser anonymousUser,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static AnonymousUser |
updateImpl(AnonymousUser anonymousUser) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AnonymousUser anonymousUser)
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.List<AnonymousUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<AnonymousUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<AnonymousUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AnonymousUser update(AnonymousUser anonymousUser)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static AnonymousUser update(AnonymousUser anonymousUser, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<AnonymousUser> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<AnonymousUser> findByUuid(java.lang.String uuid, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)public static java.util.List<AnonymousUser> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AnonymousUser> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static AnonymousUser findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a matching anonymous user could not be foundpublic static AnonymousUser fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching anonymous user could not be foundpublic static AnonymousUser findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a matching anonymous user could not be foundpublic static AnonymousUser fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching anonymous user could not be foundpublic static AnonymousUser[] findByUuid_PrevAndNext(long anonymousUserId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
anonymousUserId
- the primary key of the current anonymous useruuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a anonymous user with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<AnonymousUser> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<AnonymousUser> findByUuid_C(java.lang.String uuid, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)public static java.util.List<AnonymousUser> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AnonymousUser> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static AnonymousUser findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a matching anonymous user could not be foundpublic static AnonymousUser fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching anonymous user could not be foundpublic static AnonymousUser findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a matching anonymous user could not be foundpublic static AnonymousUser fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching anonymous user could not be foundpublic static AnonymousUser[] findByUuid_C_PrevAndNext(long anonymousUserId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
anonymousUserId
- the primary key of the current anonymous useruuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a anonymous user with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<AnonymousUser> findByUserId(long userId)
userId
- the user IDpublic static java.util.List<AnonymousUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)public static java.util.List<AnonymousUser> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AnonymousUser> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static AnonymousUser findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a matching anonymous user could not be foundpublic static AnonymousUser fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching anonymous user could not be foundpublic static AnonymousUser findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a matching anonymous user could not be foundpublic static AnonymousUser fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching anonymous user could not be foundpublic static AnonymousUser[] findByUserId_PrevAndNext(long anonymousUserId, long userId, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
anonymousUserId
- the primary key of the current anonymous useruserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a anonymous user 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 java.util.List<AnonymousUser> findByC_LtD(long companyId, java.util.Date createDate)
companyId
- the company IDcreateDate
- the create datepublic static java.util.List<AnonymousUser> findByC_LtD(long companyId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDcreateDate
- the create datestart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)public static java.util.List<AnonymousUser> findByC_LtD(long companyId, java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDcreateDate
- the create datestart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AnonymousUser> findByC_LtD(long companyId, java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDcreateDate
- the create datestart
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static AnonymousUser findByC_LtD_First(long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
companyId
- the company IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a matching anonymous user could not be foundpublic static AnonymousUser fetchByC_LtD_First(long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
companyId
- the company IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching anonymous user could not be foundpublic static AnonymousUser findByC_LtD_Last(long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
companyId
- the company IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a matching anonymous user could not be foundpublic static AnonymousUser fetchByC_LtD_Last(long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator)
companyId
- the company IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching anonymous user could not be foundpublic static AnonymousUser[] findByC_LtD_PrevAndNext(long anonymousUserId, long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator) throws NoSuchAnonymousUserException
anonymousUserId
- the primary key of the current anonymous usercompanyId
- the company IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAnonymousUserException
- if a anonymous user with the primary key could not be foundpublic static void removeByC_LtD(long companyId, java.util.Date createDate)
companyId
- the company IDcreateDate
- the create datepublic static int countByC_LtD(long companyId, java.util.Date createDate)
companyId
- the company IDcreateDate
- the create datepublic static void cacheResult(AnonymousUser anonymousUser)
anonymousUser
- the anonymous userpublic static void cacheResult(java.util.List<AnonymousUser> anonymousUsers)
anonymousUsers
- the anonymous userspublic static AnonymousUser create(long anonymousUserId)
anonymousUserId
- the primary key for the new anonymous userpublic static AnonymousUser remove(long anonymousUserId) throws NoSuchAnonymousUserException
anonymousUserId
- the primary key of the anonymous userNoSuchAnonymousUserException
- if a anonymous user with the primary key could not be foundpublic static AnonymousUser updateImpl(AnonymousUser anonymousUser)
public static AnonymousUser findByPrimaryKey(long anonymousUserId) throws NoSuchAnonymousUserException
NoSuchAnonymousUserException
if it could not be found.anonymousUserId
- the primary key of the anonymous userNoSuchAnonymousUserException
- if a anonymous user with the primary key could not be foundpublic static AnonymousUser fetchByPrimaryKey(long anonymousUserId)
null
if it could not be found.anonymousUserId
- the primary key of the anonymous usernull
if a anonymous user with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,AnonymousUser> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<AnonymousUser> findAll()
public static java.util.List<AnonymousUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)public static java.util.List<AnonymousUser> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AnonymousUser> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnonymousUser> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AnonymousUserModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of anonymous usersend
- the upper bound of the range of anonymous users (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static AnonymousUserPersistence getPersistence()