public class SyncDeviceUtil
extends java.lang.Object
com.liferay.sync.service.persistence.impl.SyncDevicePersistenceImpl
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
SyncDevicePersistence
Constructor and Description |
---|
SyncDeviceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<SyncDevice> syncDevices)
Caches the sync devices in the entity cache if it is enabled.
|
static void |
cacheResult(SyncDevice syncDevice)
Caches the sync device in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SyncDevice syncDevice) |
static int |
countAll()
Returns the number of sync devices.
|
static int |
countByC_LikeU(long companyId,
java.lang.String userName)
Returns the number of sync devices where companyId = ? and userName LIKE ?.
|
static int |
countByUserId(long userId)
Returns the number of sync devices where userId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of sync devices where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of sync devices where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SyncDevice |
create(long syncDeviceId)
Creates a new sync device with the primary key.
|
static SyncDevice |
fetchByC_LikeU_First(long companyId,
java.lang.String userName,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where companyId = ? and userName LIKE ?.
|
static SyncDevice |
fetchByC_LikeU_Last(long companyId,
java.lang.String userName,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where companyId = ? and userName LIKE ?.
|
static SyncDevice |
fetchByPrimaryKey(long syncDeviceId)
Returns the sync device with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SyncDevice> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static SyncDevice |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where userId = ?.
|
static SyncDevice |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where userId = ?.
|
static SyncDevice |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where uuid = ? and companyId = ?.
|
static SyncDevice |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where uuid = ? and companyId = ?.
|
static SyncDevice |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where uuid = ?.
|
static SyncDevice |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where uuid = ?.
|
static java.util.List<SyncDevice> |
findAll()
Returns all the sync devices.
|
static java.util.List<SyncDevice> |
findAll(int start,
int end)
Returns a range of all the sync devices.
|
static java.util.List<SyncDevice> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices.
|
static java.util.List<SyncDevice> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices.
|
static SyncDevice |
findByC_LikeU_First(long companyId,
java.lang.String userName,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where companyId = ? and userName LIKE ?.
|
static SyncDevice |
findByC_LikeU_Last(long companyId,
java.lang.String userName,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where companyId = ? and userName LIKE ?.
|
static SyncDevice[] |
findByC_LikeU_PrevAndNext(long syncDeviceId,
long companyId,
java.lang.String userName,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the sync devices before and after the current sync device in the ordered set where companyId = ? and userName LIKE ?.
|
static java.util.List<SyncDevice> |
findByC_LikeU(long companyId,
java.lang.String userName)
Returns all the sync devices where companyId = ? and userName LIKE ?.
|
static java.util.List<SyncDevice> |
findByC_LikeU(long companyId,
java.lang.String userName,
int start,
int end)
Returns a range of all the sync devices where companyId = ? and userName LIKE ?.
|
static java.util.List<SyncDevice> |
findByC_LikeU(long companyId,
java.lang.String userName,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices where companyId = ? and userName LIKE ?.
|
static java.util.List<SyncDevice> |
findByC_LikeU(long companyId,
java.lang.String userName,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices where companyId = ? and userName LIKE ?.
|
static SyncDevice |
findByPrimaryKey(long syncDeviceId)
Returns the sync device with the primary key or throws a
NoSuchDeviceException if it could not be found. |
static SyncDevice |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where userId = ?.
|
static SyncDevice |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where userId = ?.
|
static SyncDevice[] |
findByUserId_PrevAndNext(long syncDeviceId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the sync devices before and after the current sync device in the ordered set where userId = ?.
|
static java.util.List<SyncDevice> |
findByUserId(long userId)
Returns all the sync devices where userId = ?.
|
static java.util.List<SyncDevice> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the sync devices where userId = ?.
|
static java.util.List<SyncDevice> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices where userId = ?.
|
static java.util.List<SyncDevice> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices where userId = ?.
|
static SyncDevice |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where uuid = ? and companyId = ?.
|
static SyncDevice |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where uuid = ? and companyId = ?.
|
static SyncDevice[] |
findByUuid_C_PrevAndNext(long syncDeviceId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the sync devices before and after the current sync device in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<SyncDevice> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the sync devices where uuid = ? and companyId = ?.
|
static java.util.List<SyncDevice> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the sync devices where uuid = ? and companyId = ?.
|
static java.util.List<SyncDevice> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices where uuid = ? and companyId = ?.
|
static java.util.List<SyncDevice> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices where uuid = ? and companyId = ?.
|
static SyncDevice |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where uuid = ?.
|
static SyncDevice |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where uuid = ?.
|
static SyncDevice[] |
findByUuid_PrevAndNext(long syncDeviceId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns the sync devices before and after the current sync device in the ordered set where uuid = ?.
|
static java.util.List<SyncDevice> |
findByUuid(java.lang.String uuid)
Returns all the sync devices where uuid = ?.
|
static java.util.List<SyncDevice> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the sync devices where uuid = ?.
|
static java.util.List<SyncDevice> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices where uuid = ?.
|
static java.util.List<SyncDevice> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices where uuid = ?.
|
static java.util.List<SyncDevice> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SyncDevice> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SyncDevice> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) |
static SyncDevicePersistence |
getPersistence() |
static SyncDevice |
remove(long syncDeviceId)
Removes the sync device with the primary key from the database.
|
static void |
removeAll()
Removes all the sync devices from the database.
|
static void |
removeByC_LikeU(long companyId,
java.lang.String userName)
Removes all the sync devices where companyId = ? and userName LIKE ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the sync devices where userId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the sync devices where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the sync devices where uuid = ? from the database.
|
static SyncDevice |
update(SyncDevice syncDevice) |
static SyncDevice |
update(SyncDevice syncDevice,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SyncDevice |
updateImpl(SyncDevice syncDevice) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SyncDevice syncDevice)
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,SyncDevice> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<SyncDevice> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<SyncDevice> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<SyncDevice> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SyncDevice update(SyncDevice syncDevice)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static SyncDevice update(SyncDevice syncDevice, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<SyncDevice> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<SyncDevice> 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, then the query will include the default ORDER BY logic from SyncDeviceModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)public static java.util.List<SyncDevice> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SyncDevice> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SyncDevice findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching sync device could not be foundpublic static SyncDevice fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundpublic static SyncDevice findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching sync device could not be foundpublic static SyncDevice fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundpublic static SyncDevice[] findByUuid_PrevAndNext(long syncDeviceId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
syncDeviceId
- the primary key of the current sync deviceuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a sync device 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<SyncDevice> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<SyncDevice> 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, then the query will include the default ORDER BY logic from SyncDeviceModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)public static java.util.List<SyncDevice> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SyncDevice> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SyncDevice findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching sync device could not be foundpublic static SyncDevice fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundpublic static SyncDevice findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching sync device could not be foundpublic static SyncDevice fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundpublic static SyncDevice[] findByUuid_C_PrevAndNext(long syncDeviceId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
syncDeviceId
- the primary key of the current sync deviceuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a sync device 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<SyncDevice> findByUserId(long userId)
userId
- the user IDpublic static java.util.List<SyncDevice> 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 SyncDeviceModelImpl
.
userId
- the user IDstart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)public static java.util.List<SyncDevice> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
userId
- the user IDstart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SyncDevice> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
userId
- the user IDstart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SyncDevice findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching sync device could not be foundpublic static SyncDevice fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundpublic static SyncDevice findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching sync device could not be foundpublic static SyncDevice fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundpublic static SyncDevice[] findByUserId_PrevAndNext(long syncDeviceId, long userId, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
syncDeviceId
- the primary key of the current sync deviceuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a sync device 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<SyncDevice> findByC_LikeU(long companyId, java.lang.String userName)
companyId
- the company IDuserName
- the user namepublic static java.util.List<SyncDevice> findByC_LikeU(long companyId, java.lang.String userName, 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 SyncDeviceModelImpl
.
companyId
- the company IDuserName
- the user namestart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)public static java.util.List<SyncDevice> findByC_LikeU(long companyId, java.lang.String userName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
companyId
- the company IDuserName
- the user namestart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SyncDevice> findByC_LikeU(long companyId, java.lang.String userName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
companyId
- the company IDuserName
- the user namestart
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SyncDevice findByC_LikeU_First(long companyId, java.lang.String userName, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
companyId
- the company IDuserName
- the user nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching sync device could not be foundpublic static SyncDevice fetchByC_LikeU_First(long companyId, java.lang.String userName, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
companyId
- the company IDuserName
- the user nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundpublic static SyncDevice findByC_LikeU_Last(long companyId, java.lang.String userName, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
companyId
- the company IDuserName
- the user nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching sync device could not be foundpublic static SyncDevice fetchByC_LikeU_Last(long companyId, java.lang.String userName, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator)
companyId
- the company IDuserName
- the user nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundpublic static SyncDevice[] findByC_LikeU_PrevAndNext(long syncDeviceId, long companyId, java.lang.String userName, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> orderByComparator) throws NoSuchDeviceException
syncDeviceId
- the primary key of the current sync devicecompanyId
- the company IDuserName
- the user nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a sync device with the primary key could not be foundpublic static void removeByC_LikeU(long companyId, java.lang.String userName)
companyId
- the company IDuserName
- the user namepublic static int countByC_LikeU(long companyId, java.lang.String userName)
companyId
- the company IDuserName
- the user namepublic static void cacheResult(SyncDevice syncDevice)
syncDevice
- the sync devicepublic static void cacheResult(java.util.List<SyncDevice> syncDevices)
syncDevices
- the sync devicespublic static SyncDevice create(long syncDeviceId)
syncDeviceId
- the primary key for the new sync devicepublic static SyncDevice remove(long syncDeviceId) throws NoSuchDeviceException
syncDeviceId
- the primary key of the sync deviceNoSuchDeviceException
- if a sync device with the primary key could not be foundpublic static SyncDevice updateImpl(SyncDevice syncDevice)
public static SyncDevice findByPrimaryKey(long syncDeviceId) throws NoSuchDeviceException
NoSuchDeviceException
if it could not be found.syncDeviceId
- the primary key of the sync deviceNoSuchDeviceException
- if a sync device with the primary key could not be foundpublic static SyncDevice fetchByPrimaryKey(long syncDeviceId)
null
if it could not be found.syncDeviceId
- the primary key of the sync devicenull
if a sync device with the primary key could not be foundpublic static java.util.List<SyncDevice> findAll()
public static java.util.List<SyncDevice> 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 SyncDeviceModelImpl
.
start
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)public static java.util.List<SyncDevice> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
start
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SyncDevice> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SyncDevice> 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 SyncDeviceModelImpl
.
start
- the lower bound of the range of sync devicesend
- the upper bound of the range of sync devices (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 SyncDevicePersistence getPersistence()