@ProviderType public interface PasswordTrackerPersistence extends BasePersistence<PasswordTracker>
Caching information and settings can be found in portal.properties
PasswordTrackerUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(List<PasswordTracker> passwordTrackers)
Caches the password trackers in the entity cache if it is enabled.
|
void |
cacheResult(PasswordTracker passwordTracker)
Caches the password tracker in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of password trackers.
|
int |
countByUserId(long userId)
Returns the number of password trackers where userId = ?.
|
PasswordTracker |
create(long passwordTrackerId)
Creates a new password tracker with the primary key.
|
PasswordTracker |
fetchByPrimaryKey(long passwordTrackerId)
Returns the password tracker with the primary key or returns
null if it could not be found. |
PasswordTracker |
fetchByUserId_First(long userId,
OrderByComparator<PasswordTracker> orderByComparator)
Returns the first password tracker in the ordered set where userId = ?.
|
PasswordTracker |
fetchByUserId_Last(long userId,
OrderByComparator<PasswordTracker> orderByComparator)
Returns the last password tracker in the ordered set where userId = ?.
|
List<PasswordTracker> |
findAll()
Returns all the password trackers.
|
List<PasswordTracker> |
findAll(int start,
int end)
Returns a range of all the password trackers.
|
List<PasswordTracker> |
findAll(int start,
int end,
OrderByComparator<PasswordTracker> orderByComparator)
Returns an ordered range of all the password trackers.
|
List<PasswordTracker> |
findAll(int start,
int end,
OrderByComparator<PasswordTracker> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the password trackers.
|
PasswordTracker |
findByPrimaryKey(long passwordTrackerId)
Returns the password tracker with the primary key or throws a
NoSuchPasswordTrackerException if it could not be found. |
PasswordTracker |
findByUserId_First(long userId,
OrderByComparator<PasswordTracker> orderByComparator)
Returns the first password tracker in the ordered set where userId = ?.
|
PasswordTracker |
findByUserId_Last(long userId,
OrderByComparator<PasswordTracker> orderByComparator)
Returns the last password tracker in the ordered set where userId = ?.
|
PasswordTracker[] |
findByUserId_PrevAndNext(long passwordTrackerId,
long userId,
OrderByComparator<PasswordTracker> orderByComparator)
Returns the password trackers before and after the current password tracker in the ordered set where userId = ?.
|
List<PasswordTracker> |
findByUserId(long userId)
Returns all the password trackers where userId = ?.
|
List<PasswordTracker> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the password trackers where userId = ?.
|
List<PasswordTracker> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<PasswordTracker> orderByComparator)
Returns an ordered range of all the password trackers where userId = ?.
|
List<PasswordTracker> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<PasswordTracker> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the password trackers where userId = ?.
|
PasswordTracker |
remove(long passwordTrackerId)
Removes the password tracker with the primary key from the database.
|
void |
removeAll()
Removes all the password trackers from the database.
|
void |
removeByUserId(long userId)
Removes all the password trackers where userId = ? from the database.
|
PasswordTracker |
updateImpl(PasswordTracker passwordTracker) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<PasswordTracker> findByUserId(long userId)
userId
- the user IDList<PasswordTracker> 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 PasswordTrackerModelImpl
.
userId
- the user IDstart
- the lower bound of the range of password trackersend
- the upper bound of the range of password trackers (not inclusive)List<PasswordTracker> findByUserId(long userId, int start, int end, OrderByComparator<PasswordTracker> 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 PasswordTrackerModelImpl
.
userId
- the user IDstart
- the lower bound of the range of password trackersend
- the upper bound of the range of password trackers (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<PasswordTracker> findByUserId(long userId, int start, int end, OrderByComparator<PasswordTracker> 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 PasswordTrackerModelImpl
.
userId
- the user IDstart
- the lower bound of the range of password trackersend
- the upper bound of the range of password trackers (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachePasswordTracker findByUserId_First(long userId, OrderByComparator<PasswordTracker> orderByComparator) throws NoSuchPasswordTrackerException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPasswordTrackerException
- if a matching password tracker could not be foundPasswordTracker fetchByUserId_First(long userId, OrderByComparator<PasswordTracker> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching password tracker could not be foundPasswordTracker findByUserId_Last(long userId, OrderByComparator<PasswordTracker> orderByComparator) throws NoSuchPasswordTrackerException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPasswordTrackerException
- if a matching password tracker could not be foundPasswordTracker fetchByUserId_Last(long userId, OrderByComparator<PasswordTracker> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching password tracker could not be foundPasswordTracker[] findByUserId_PrevAndNext(long passwordTrackerId, long userId, OrderByComparator<PasswordTracker> orderByComparator) throws NoSuchPasswordTrackerException
passwordTrackerId
- the primary key of the current password trackeruserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPasswordTrackerException
- if a password tracker with the primary key could not be foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDvoid cacheResult(PasswordTracker passwordTracker)
passwordTracker
- the password trackervoid cacheResult(List<PasswordTracker> passwordTrackers)
passwordTrackers
- the password trackersPasswordTracker create(long passwordTrackerId)
passwordTrackerId
- the primary key for the new password trackerPasswordTracker remove(long passwordTrackerId) throws NoSuchPasswordTrackerException
passwordTrackerId
- the primary key of the password trackerNoSuchPasswordTrackerException
- if a password tracker with the primary key could not be foundPasswordTracker updateImpl(PasswordTracker passwordTracker)
PasswordTracker findByPrimaryKey(long passwordTrackerId) throws NoSuchPasswordTrackerException
NoSuchPasswordTrackerException
if it could not be found.passwordTrackerId
- the primary key of the password trackerNoSuchPasswordTrackerException
- if a password tracker with the primary key could not be foundPasswordTracker fetchByPrimaryKey(long passwordTrackerId)
null
if it could not be found.passwordTrackerId
- the primary key of the password trackernull
if a password tracker with the primary key could not be foundList<PasswordTracker> findAll()
List<PasswordTracker> 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 PasswordTrackerModelImpl
.
start
- the lower bound of the range of password trackersend
- the upper bound of the range of password trackers (not inclusive)List<PasswordTracker> findAll(int start, int end, OrderByComparator<PasswordTracker> 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 PasswordTrackerModelImpl
.
start
- the lower bound of the range of password trackersend
- the upper bound of the range of password trackers (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<PasswordTracker> findAll(int start, int end, OrderByComparator<PasswordTracker> 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 PasswordTrackerModelImpl
.
start
- the lower bound of the range of password trackersend
- the upper bound of the range of password trackers (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()