@ProviderType public interface EntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<Entry>
Caching information and settings can be found in portal.properties
com.liferay.contacts.service.persistence.impl.EntryPersistenceImpl
,
EntryUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(Entry entry)
Caches the entry in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<Entry> entries)
Caches the entries in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of entries.
|
int |
countByU_EA(long userId,
java.lang.String emailAddress)
Returns the number of entries where userId = ? and emailAddress = ?.
|
int |
countByUserId(long userId)
Returns the number of entries where userId = ?.
|
Entry |
create(long entryId)
Creates a new entry with the primary key.
|
Entry |
fetchByPrimaryKey(long entryId)
Returns the entry with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,Entry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
Entry |
fetchByU_EA(long userId,
java.lang.String emailAddress)
Returns the entry where userId = ? and emailAddress = ? or returns
null if it could not be found. |
Entry |
fetchByU_EA(long userId,
java.lang.String emailAddress,
boolean retrieveFromCache)
Returns the entry where userId = ? and emailAddress = ? or returns
null if it could not be found, optionally using the finder cache. |
Entry |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where userId = ?.
|
Entry |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where userId = ?.
|
java.util.List<Entry> |
findAll()
Returns all the entries.
|
java.util.List<Entry> |
findAll(int start,
int end)
Returns a range of all the entries.
|
java.util.List<Entry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries.
|
java.util.List<Entry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the entries.
|
Entry |
findByPrimaryKey(long entryId)
Returns the entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
Entry |
findByU_EA(long userId,
java.lang.String emailAddress)
Returns the entry where userId = ? and emailAddress = ? or throws a
NoSuchEntryException if it could not be found. |
Entry |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the first entry in the ordered set where userId = ?.
|
Entry |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the last entry in the ordered set where userId = ?.
|
Entry[] |
findByUserId_PrevAndNext(long entryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where userId = ?.
|
java.util.List<Entry> |
findByUserId(long userId)
Returns all the entries where userId = ?.
|
java.util.List<Entry> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the entries where userId = ?.
|
java.util.List<Entry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries where userId = ?.
|
java.util.List<Entry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the entries where userId = ?.
|
Entry |
remove(long entryId)
Removes the entry with the primary key from the database.
|
void |
removeAll()
Removes all the entries from the database.
|
Entry |
removeByU_EA(long userId,
java.lang.String emailAddress)
Removes the entry where userId = ? and emailAddress = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the entries where userId = ? from the database.
|
Entry |
updateImpl(Entry entry) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<Entry> findByUserId(long userId)
userId
- the user IDjava.util.List<Entry> 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 EntryModelImpl
. 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 entriesend
- the upper bound of the range of entries (not inclusive)java.util.List<Entry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> 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 EntryModelImpl
. 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 entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Entry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> 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 EntryModelImpl
. 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 entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundEntry fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundEntry findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching entry could not be foundEntry fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching entry could not be foundEntry[] findByUserId_PrevAndNext(long entryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current entryuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a entry with the primary key could not be foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDEntry findByU_EA(long userId, java.lang.String emailAddress) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.userId
- the user IDemailAddress
- the email addressNoSuchEntryException
- if a matching entry could not be foundEntry fetchByU_EA(long userId, java.lang.String emailAddress)
null
if it could not be found. Uses the finder cache.userId
- the user IDemailAddress
- the email addressnull
if a matching entry could not be foundEntry fetchByU_EA(long userId, java.lang.String emailAddress, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.userId
- the user IDemailAddress
- the email addressretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching entry could not be foundEntry removeByU_EA(long userId, java.lang.String emailAddress) throws NoSuchEntryException
userId
- the user IDemailAddress
- the email addressNoSuchEntryException
int countByU_EA(long userId, java.lang.String emailAddress)
userId
- the user IDemailAddress
- the email addressvoid cacheResult(Entry entry)
entry
- the entryvoid cacheResult(java.util.List<Entry> entries)
entries
- the entriesEntry create(long entryId)
entryId
- the primary key for the new entryEntry remove(long entryId) throws NoSuchEntryException
entryId
- the primary key of the entryNoSuchEntryException
- if a entry with the primary key could not be foundEntry findByPrimaryKey(long entryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.entryId
- the primary key of the entryNoSuchEntryException
- if a entry with the primary key could not be foundEntry fetchByPrimaryKey(long entryId)
null
if it could not be found.entryId
- the primary key of the entrynull
if a entry with the primary key could not be foundjava.util.Map<java.io.Serializable,Entry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<Entry>
java.util.List<Entry> findAll()
java.util.List<Entry> 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 EntryModelImpl
. 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 entriesend
- the upper bound of the range of entries (not inclusive)java.util.List<Entry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> 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 EntryModelImpl
. 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 entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Entry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> 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 EntryModelImpl
. 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 entriesend
- the upper bound of the range of entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()