@ProviderType
public class EntryPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>
implements com.liferay.contacts.service.persistence.EntryPersistence
Caching information and settings can be found in portal.properties
EntryPersistence,
EntryUtil| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.service.persistence.CompanyProvider |
companyProvider |
protected com.liferay.portal.kernel.dao.orm.EntityCache |
entityCache |
static java.lang.String |
FINDER_CLASS_NAME_ENTITY |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_U_EA |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_USERID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_U_EA |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID |
protected com.liferay.portal.kernel.dao.orm.FinderCache |
finderCache |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR| Constructor and Description |
|---|
EntryPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the entry persistence.
|
void |
cacheResult(com.liferay.contacts.model.Entry entry)
Caches the entry in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<com.liferay.contacts.model.Entry> entries)
Caches the entries in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(EntryModelImpl entryModelImpl,
boolean isNew) |
void |
clearCache()
Clears the cache for all entries.
|
void |
clearCache(com.liferay.contacts.model.Entry entry)
Clears the cache for the entry.
|
void |
clearCache(java.util.List<com.liferay.contacts.model.Entry> entries) |
protected void |
clearUniqueFindersCache(EntryModelImpl entryModelImpl) |
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 = ?.
|
com.liferay.contacts.model.Entry |
create(long entryId)
Creates a new entry with the primary key.
|
void |
destroy() |
com.liferay.contacts.model.Entry |
fetchByPrimaryKey(long entryId)
Returns the entry with the primary key or returns
null if it could not be found. |
com.liferay.contacts.model.Entry |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the entry with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,com.liferay.contacts.model.Entry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
com.liferay.contacts.model.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. |
com.liferay.contacts.model.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. |
com.liferay.contacts.model.Entry |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
Returns the first entry in the ordered set where userId = ?.
|
com.liferay.contacts.model.Entry |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
Returns the last entry in the ordered set where userId = ?.
|
java.util.List<com.liferay.contacts.model.Entry> |
findAll()
Returns all the entries.
|
java.util.List<com.liferay.contacts.model.Entry> |
findAll(int start,
int end)
Returns a range of all the entries.
|
java.util.List<com.liferay.contacts.model.Entry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
Returns an ordered range of all the entries.
|
java.util.List<com.liferay.contacts.model.Entry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the entries.
|
com.liferay.contacts.model.Entry |
findByPrimaryKey(long entryId)
Returns the entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
com.liferay.contacts.model.Entry |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the entry with the primary key or throws a
NoSuchModelException if it could not be found. |
com.liferay.contacts.model.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. |
com.liferay.contacts.model.Entry |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
Returns the first entry in the ordered set where userId = ?.
|
com.liferay.contacts.model.Entry |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
Returns the last entry in the ordered set where userId = ?.
|
com.liferay.contacts.model.Entry[] |
findByUserId_PrevAndNext(long entryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
Returns the entries before and after the current entry in the ordered set where userId = ?.
|
java.util.List<com.liferay.contacts.model.Entry> |
findByUserId(long userId)
Returns all the entries where userId = ?.
|
java.util.List<com.liferay.contacts.model.Entry> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the entries where userId = ?.
|
java.util.List<com.liferay.contacts.model.Entry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
Returns an ordered range of all the entries where userId = ?.
|
java.util.List<com.liferay.contacts.model.Entry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the entries where userId = ?.
|
protected com.liferay.contacts.model.Entry |
getByUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.contacts.model.Entry entry,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator,
boolean previous) |
protected java.util.Map<java.lang.String,java.lang.Integer> |
getTableColumnsMap() |
com.liferay.contacts.model.Entry |
remove(long entryId)
Removes the entry with the primary key from the database.
|
com.liferay.contacts.model.Entry |
remove(java.io.Serializable primaryKey)
Removes the entry with the primary key from the database.
|
void |
removeAll()
Removes all the entries from the database.
|
com.liferay.contacts.model.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.
|
protected com.liferay.contacts.model.Entry |
removeImpl(com.liferay.contacts.model.Entry entry) |
protected com.liferay.contacts.model.Entry |
toUnwrappedModel(com.liferay.contacts.model.Entry entry) |
com.liferay.contacts.model.Entry |
updateImpl(com.liferay.contacts.model.Entry entry) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, updatepublic static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_U_EA
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U_EA
@ServiceReference(type=com.liferay.portal.kernel.service.persistence.CompanyProviderWrapper.class) protected com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider
@ServiceReference(type=com.liferay.portal.kernel.dao.orm.EntityCache.class) protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache
@ServiceReference(type=com.liferay.portal.kernel.dao.orm.FinderCache.class) protected com.liferay.portal.kernel.dao.orm.FinderCache finderCache
public java.util.List<com.liferay.contacts.model.Entry> findByUserId(long userId)
findByUserId in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDpublic java.util.List<com.liferay.contacts.model.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.
findByUserId in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDstart - the lower bound of the range of entriesend - the upper bound of the range of entries (not inclusive)public java.util.List<com.liferay.contacts.model.Entry> findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.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.
findByUserId in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - 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)public java.util.List<com.liferay.contacts.model.Entry> findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.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.
findByUserId in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - 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 cachepublic com.liferay.contacts.model.Entry findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
throws com.liferay.contacts.exception.NoSuchEntryException
findByUserId_First in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.contacts.exception.NoSuchEntryException - if a matching entry could not be foundpublic com.liferay.contacts.model.Entry fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
fetchByUserId_First in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching entry could not be foundpublic com.liferay.contacts.model.Entry findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
throws com.liferay.contacts.exception.NoSuchEntryException
findByUserId_Last in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.contacts.exception.NoSuchEntryException - if a matching entry could not be foundpublic com.liferay.contacts.model.Entry fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
fetchByUserId_Last in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching entry could not be foundpublic com.liferay.contacts.model.Entry[] findByUserId_PrevAndNext(long entryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator)
throws com.liferay.contacts.exception.NoSuchEntryException
findByUserId_PrevAndNext in interface com.liferay.contacts.service.persistence.EntryPersistenceentryId - the primary key of the current entryuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.contacts.exception.NoSuchEntryException - if a entry with the primary key could not be foundprotected com.liferay.contacts.model.Entry getByUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.contacts.model.Entry entry,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.Entry> orderByComparator,
boolean previous)
public void removeByUserId(long userId)
removeByUserId in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDpublic int countByUserId(long userId)
countByUserId in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDpublic com.liferay.contacts.model.Entry findByU_EA(long userId,
java.lang.String emailAddress)
throws com.liferay.contacts.exception.NoSuchEntryException
NoSuchEntryException if it could not be found.findByU_EA in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDemailAddress - the email addresscom.liferay.contacts.exception.NoSuchEntryException - if a matching entry could not be foundpublic com.liferay.contacts.model.Entry fetchByU_EA(long userId,
java.lang.String emailAddress)
null if it could not be found. Uses the finder cache.fetchByU_EA in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDemailAddress - the email addressnull if a matching entry could not be foundpublic com.liferay.contacts.model.Entry fetchByU_EA(long userId,
java.lang.String emailAddress,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.fetchByU_EA in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDemailAddress - the email addressretrieveFromCache - whether to retrieve from the finder cachenull if a matching entry could not be foundpublic com.liferay.contacts.model.Entry removeByU_EA(long userId,
java.lang.String emailAddress)
throws com.liferay.contacts.exception.NoSuchEntryException
removeByU_EA in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDemailAddress - the email addresscom.liferay.contacts.exception.NoSuchEntryExceptionpublic int countByU_EA(long userId,
java.lang.String emailAddress)
countByU_EA in interface com.liferay.contacts.service.persistence.EntryPersistenceuserId - the user IDemailAddress - the email addresspublic void cacheResult(com.liferay.contacts.model.Entry entry)
cacheResult in interface com.liferay.contacts.service.persistence.EntryPersistenceentry - the entrypublic void cacheResult(java.util.List<com.liferay.contacts.model.Entry> entries)
cacheResult in interface com.liferay.contacts.service.persistence.EntryPersistenceentries - the entriespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.contacts.model.Entry>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>public void clearCache(com.liferay.contacts.model.Entry entry)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.contacts.model.Entry>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>public void clearCache(java.util.List<com.liferay.contacts.model.Entry> entries)
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.contacts.model.Entry>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>protected void cacheUniqueFindersCache(EntryModelImpl entryModelImpl, boolean isNew)
protected void clearUniqueFindersCache(EntryModelImpl entryModelImpl)
public com.liferay.contacts.model.Entry create(long entryId)
create in interface com.liferay.contacts.service.persistence.EntryPersistenceentryId - the primary key for the new entrypublic com.liferay.contacts.model.Entry remove(long entryId)
throws com.liferay.contacts.exception.NoSuchEntryException
remove in interface com.liferay.contacts.service.persistence.EntryPersistenceentryId - the primary key of the entrycom.liferay.contacts.exception.NoSuchEntryException - if a entry with the primary key could not be foundpublic com.liferay.contacts.model.Entry remove(java.io.Serializable primaryKey)
throws com.liferay.contacts.exception.NoSuchEntryException
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.contacts.model.Entry>remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>primaryKey - the primary key of the entrycom.liferay.contacts.exception.NoSuchEntryException - if a entry with the primary key could not be foundprotected com.liferay.contacts.model.Entry removeImpl(com.liferay.contacts.model.Entry entry)
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>public com.liferay.contacts.model.Entry updateImpl(com.liferay.contacts.model.Entry entry)
updateImpl in interface com.liferay.contacts.service.persistence.EntryPersistenceupdateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>protected com.liferay.contacts.model.Entry toUnwrappedModel(com.liferay.contacts.model.Entry entry)
public com.liferay.contacts.model.Entry findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.contacts.exception.NoSuchEntryException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.contacts.model.Entry>findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>primaryKey - the primary key of the entrycom.liferay.contacts.exception.NoSuchEntryException - if a entry with the primary key could not be foundpublic com.liferay.contacts.model.Entry findByPrimaryKey(long entryId)
throws com.liferay.contacts.exception.NoSuchEntryException
NoSuchEntryException if it could not be found.findByPrimaryKey in interface com.liferay.contacts.service.persistence.EntryPersistenceentryId - the primary key of the entrycom.liferay.contacts.exception.NoSuchEntryException - if a entry with the primary key could not be foundpublic com.liferay.contacts.model.Entry fetchByPrimaryKey(java.io.Serializable primaryKey)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.contacts.model.Entry>fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>primaryKey - the primary key of the entrynull if a entry with the primary key could not be foundpublic com.liferay.contacts.model.Entry fetchByPrimaryKey(long entryId)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.contacts.service.persistence.EntryPersistenceentryId - the primary key of the entrynull if a entry with the primary key could not be foundpublic java.util.Map<java.io.Serializable,com.liferay.contacts.model.Entry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.contacts.service.persistence.EntryPersistencefetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.contacts.model.Entry>fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>public java.util.List<com.liferay.contacts.model.Entry> findAll()
findAll in interface com.liferay.contacts.service.persistence.EntryPersistencepublic java.util.List<com.liferay.contacts.model.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.
findAll in interface com.liferay.contacts.service.persistence.EntryPersistencestart - the lower bound of the range of entriesend - the upper bound of the range of entries (not inclusive)public java.util.List<com.liferay.contacts.model.Entry> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.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.
findAll in interface com.liferay.contacts.service.persistence.EntryPersistencestart - 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)public java.util.List<com.liferay.contacts.model.Entry> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.contacts.model.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.
findAll in interface com.liferay.contacts.service.persistence.EntryPersistencestart - 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 cachepublic void removeAll()
removeAll in interface com.liferay.contacts.service.persistence.EntryPersistencepublic int countAll()
countAll in interface com.liferay.contacts.service.persistence.EntryPersistenceprotected java.util.Map<java.lang.String,java.lang.Integer> getTableColumnsMap()
getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.contacts.model.Entry>public void afterPropertiesSet()
public void destroy()