@ProviderType public interface SyncDevicePersistence extends BasePersistence<SyncDevice>
Caching information and settings can be found in portal.properties
SyncDeviceUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<SyncDevice> syncDevices)
Caches the sync devices in the entity cache if it is enabled.
|
void |
cacheResult(SyncDevice syncDevice)
Caches the sync device in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of sync devices.
|
int |
countByC_U(long companyId,
java.lang.String userName)
Returns the number of sync devices where companyId = ? and userName LIKE ?.
|
int |
countByUserId(long userId)
Returns the number of sync devices where userId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of sync devices where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of sync devices where uuid = ?.
|
SyncDevice |
create(long syncDeviceId)
Creates a new sync device with the primary key.
|
SyncDevice |
fetchByC_U_First(long companyId,
java.lang.String userName,
OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where companyId = ? and userName LIKE ?.
|
SyncDevice |
fetchByC_U_Last(long companyId,
java.lang.String userName,
OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where companyId = ? and userName LIKE ?.
|
SyncDevice |
fetchByPrimaryKey(long syncDeviceId)
Returns the sync device with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,SyncDevice> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
SyncDevice |
fetchByUserId_First(long userId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where userId = ?.
|
SyncDevice |
fetchByUserId_Last(long userId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where userId = ?.
|
SyncDevice |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where uuid = ? and companyId = ?.
|
SyncDevice |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where uuid = ? and companyId = ?.
|
SyncDevice |
fetchByUuid_First(java.lang.String uuid,
OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where uuid = ?.
|
SyncDevice |
fetchByUuid_Last(java.lang.String uuid,
OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where uuid = ?.
|
java.util.List<SyncDevice> |
findAll()
Returns all the sync devices.
|
java.util.List<SyncDevice> |
findAll(int start,
int end)
Returns a range of all the sync devices.
|
java.util.List<SyncDevice> |
findAll(int start,
int end,
OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices.
|
java.util.List<SyncDevice> |
findAll(int start,
int end,
OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices.
|
SyncDevice |
findByC_U_First(long companyId,
java.lang.String userName,
OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where companyId = ? and userName LIKE ?.
|
SyncDevice |
findByC_U_Last(long companyId,
java.lang.String userName,
OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where companyId = ? and userName LIKE ?.
|
SyncDevice[] |
findByC_U_PrevAndNext(long syncDeviceId,
long companyId,
java.lang.String userName,
OrderByComparator<SyncDevice> orderByComparator)
Returns the sync devices before and after the current sync device in the ordered set where companyId = ? and userName LIKE ?.
|
java.util.List<SyncDevice> |
findByC_U(long companyId,
java.lang.String userName)
Returns all the sync devices where companyId = ? and userName LIKE ?.
|
java.util.List<SyncDevice> |
findByC_U(long companyId,
java.lang.String userName,
int start,
int end)
Returns a range of all the sync devices where companyId = ? and userName LIKE ?.
|
java.util.List<SyncDevice> |
findByC_U(long companyId,
java.lang.String userName,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices where companyId = ? and userName LIKE ?.
|
java.util.List<SyncDevice> |
findByC_U(long companyId,
java.lang.String userName,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices where companyId = ? and userName LIKE ?.
|
SyncDevice |
findByPrimaryKey(long syncDeviceId)
Returns the sync device with the primary key or throws a
NoSuchDeviceException if it could not be found. |
SyncDevice |
findByUserId_First(long userId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where userId = ?.
|
SyncDevice |
findByUserId_Last(long userId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where userId = ?.
|
SyncDevice[] |
findByUserId_PrevAndNext(long syncDeviceId,
long userId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the sync devices before and after the current sync device in the ordered set where userId = ?.
|
java.util.List<SyncDevice> |
findByUserId(long userId)
Returns all the sync devices where userId = ?.
|
java.util.List<SyncDevice> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the sync devices where userId = ?.
|
java.util.List<SyncDevice> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices where userId = ?.
|
java.util.List<SyncDevice> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices where userId = ?.
|
SyncDevice |
findByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where uuid = ? and companyId = ?.
|
SyncDevice |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where uuid = ? and companyId = ?.
|
SyncDevice[] |
findByUuid_C_PrevAndNext(long syncDeviceId,
java.lang.String uuid,
long companyId,
OrderByComparator<SyncDevice> orderByComparator)
Returns the sync devices before and after the current sync device in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<SyncDevice> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the sync devices where uuid = ? and companyId = ?.
|
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 = ?.
|
java.util.List<SyncDevice> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices where uuid = ? and companyId = ?.
|
java.util.List<SyncDevice> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices where uuid = ? and companyId = ?.
|
SyncDevice |
findByUuid_First(java.lang.String uuid,
OrderByComparator<SyncDevice> orderByComparator)
Returns the first sync device in the ordered set where uuid = ?.
|
SyncDevice |
findByUuid_Last(java.lang.String uuid,
OrderByComparator<SyncDevice> orderByComparator)
Returns the last sync device in the ordered set where uuid = ?.
|
SyncDevice[] |
findByUuid_PrevAndNext(long syncDeviceId,
java.lang.String uuid,
OrderByComparator<SyncDevice> orderByComparator)
Returns the sync devices before and after the current sync device in the ordered set where uuid = ?.
|
java.util.List<SyncDevice> |
findByUuid(java.lang.String uuid)
Returns all the sync devices where uuid = ?.
|
java.util.List<SyncDevice> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the sync devices where uuid = ?.
|
java.util.List<SyncDevice> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator)
Returns an ordered range of all the sync devices where uuid = ?.
|
java.util.List<SyncDevice> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sync devices where uuid = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
SyncDevice |
remove(long syncDeviceId)
Removes the sync device with the primary key from the database.
|
void |
removeAll()
Removes all the sync devices from the database.
|
void |
removeByC_U(long companyId,
java.lang.String userName)
Removes all the sync devices where companyId = ? and userName LIKE ? from the database.
|
void |
removeByUserId(long userId)
Removes all the sync devices where userId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the sync devices where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the sync devices where uuid = ? from the database.
|
SyncDevice |
updateImpl(SyncDevice syncDevice) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.Map<java.io.Serializable,SyncDevice> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<SyncDevice>
java.util.List<SyncDevice> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)java.util.List<SyncDevice> findByUuid(java.lang.String uuid, int start, int end, 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
)java.util.List<SyncDevice> findByUuid(java.lang.String uuid, int start, int end, 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 cacheSyncDevice findByUuid_First(java.lang.String uuid, 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 foundSyncDevice fetchByUuid_First(java.lang.String uuid, OrderByComparator<SyncDevice> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundSyncDevice findByUuid_Last(java.lang.String uuid, 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 foundSyncDevice fetchByUuid_Last(java.lang.String uuid, OrderByComparator<SyncDevice> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sync device could not be foundSyncDevice[] findByUuid_PrevAndNext(long syncDeviceId, java.lang.String uuid, 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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<SyncDevice> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)java.util.List<SyncDevice> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, 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
)java.util.List<SyncDevice> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, 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 cacheSyncDevice findByUuid_C_First(java.lang.String uuid, long companyId, 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 foundSyncDevice fetchByUuid_C_First(java.lang.String uuid, long companyId, 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 foundSyncDevice findByUuid_C_Last(java.lang.String uuid, long companyId, 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 foundSyncDevice fetchByUuid_C_Last(java.lang.String uuid, long companyId, 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 foundSyncDevice[] findByUuid_C_PrevAndNext(long syncDeviceId, java.lang.String uuid, long companyId, 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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<SyncDevice> findByUserId(long userId)
userId
- the user IDjava.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)java.util.List<SyncDevice> findByUserId(long userId, int start, int end, 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
)java.util.List<SyncDevice> findByUserId(long userId, int start, int end, 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 cacheSyncDevice findByUserId_First(long userId, 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 foundSyncDevice fetchByUserId_First(long userId, 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 foundSyncDevice findByUserId_Last(long userId, 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 foundSyncDevice fetchByUserId_Last(long userId, 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 foundSyncDevice[] findByUserId_PrevAndNext(long syncDeviceId, long userId, 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 foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDjava.util.List<SyncDevice> findByC_U(long companyId, java.lang.String userName)
companyId
- the company IDuserName
- the user namejava.util.List<SyncDevice> findByC_U(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)java.util.List<SyncDevice> findByC_U(long companyId, java.lang.String userName, int start, int end, 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
)java.util.List<SyncDevice> findByC_U(long companyId, java.lang.String userName, int start, int end, 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 cacheSyncDevice findByC_U_First(long companyId, java.lang.String userName, 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 foundSyncDevice fetchByC_U_First(long companyId, java.lang.String userName, 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 foundSyncDevice findByC_U_Last(long companyId, java.lang.String userName, 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 foundSyncDevice fetchByC_U_Last(long companyId, java.lang.String userName, 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 foundSyncDevice[] findByC_U_PrevAndNext(long syncDeviceId, long companyId, java.lang.String userName, 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 foundvoid removeByC_U(long companyId, java.lang.String userName)
companyId
- the company IDuserName
- the user nameint countByC_U(long companyId, java.lang.String userName)
companyId
- the company IDuserName
- the user namevoid cacheResult(SyncDevice syncDevice)
syncDevice
- the sync devicevoid cacheResult(java.util.List<SyncDevice> syncDevices)
syncDevices
- the sync devicesSyncDevice create(long syncDeviceId)
syncDeviceId
- the primary key for the new sync deviceSyncDevice remove(long syncDeviceId) throws NoSuchDeviceException
syncDeviceId
- the primary key of the sync deviceNoSuchDeviceException
- if a sync device with the primary key could not be foundSyncDevice updateImpl(SyncDevice syncDevice)
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 foundSyncDevice 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 foundjava.util.List<SyncDevice> findAll()
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)java.util.List<SyncDevice> findAll(int start, int end, 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
)java.util.List<SyncDevice> findAll(int start, int end, 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 cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames
in interface BasePersistence<SyncDevice>