|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<RepositoryEntry>
com.liferay.portal.service.persistence.impl.RepositoryEntryPersistenceImpl
@ProviderType public class RepositoryEntryPersistenceImpl
The persistence implementation for the repository entry service.
Caching information and settings can be found in portal.properties
RepositoryEntryPersistence,
RepositoryEntryUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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 Summary | |
|---|---|
RepositoryEntryPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the repository entry persistence. |
void |
cacheResult(List<RepositoryEntry> repositoryEntries)
Caches the repository entries in the entity cache if it is enabled. |
void |
cacheResult(RepositoryEntry repositoryEntry)
Caches the repository entry in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(RepositoryEntryModelImpl repositoryEntryModelImpl,
boolean isNew)
|
void |
clearCache()
Clears the cache for all repository entries. |
void |
clearCache(List<RepositoryEntry> repositoryEntries)
Clears the cache for a List instances of this model. |
void |
clearCache(RepositoryEntry repositoryEntry)
Clears the cache for the repository entry. |
protected void |
clearUniqueFindersCache(RepositoryEntryModelImpl repositoryEntryModelImpl)
|
int |
countAll()
Returns the number of repository entries. |
int |
countByR_M(long repositoryId,
String mappedId)
Returns the number of repository entries where repositoryId = ? and mappedId = ?. |
int |
countByRepositoryId(long repositoryId)
Returns the number of repository entries where repositoryId = ?. |
int |
countByUuid_C(String uuid,
long companyId)
Returns the number of repository entries where uuid = ? and companyId = ?. |
int |
countByUUID_G(String uuid,
long groupId)
Returns the number of repository entries where uuid = ? and groupId = ?. |
int |
countByUuid(String uuid)
Returns the number of repository entries where uuid = ?. |
RepositoryEntry |
create(long repositoryEntryId)
Creates a new repository entry with the primary key. |
void |
destroy()
|
RepositoryEntry |
fetchByPrimaryKey(long repositoryEntryId)
Returns the repository entry with the primary key or returns null if it could not be found. |
RepositoryEntry |
fetchByPrimaryKey(Serializable primaryKey)
Returns the repository entry with the primary key or returns null if it could not be found. |
Map<Serializable,RepositoryEntry> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
RepositoryEntry |
fetchByR_M(long repositoryId,
String mappedId)
Returns the repository entry where repositoryId = ? and mappedId = ? or returns null if it could not be found. |
RepositoryEntry |
fetchByR_M(long repositoryId,
String mappedId,
boolean retrieveFromCache)
Returns the repository entry where repositoryId = ? and mappedId = ? or returns null if it could not be found, optionally using the finder cache. |
RepositoryEntry |
fetchByRepositoryId_First(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where repositoryId = ?. |
RepositoryEntry |
fetchByRepositoryId_Last(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where repositoryId = ?. |
RepositoryEntry |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where uuid = ? and companyId = ?. |
RepositoryEntry |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where uuid = ? and companyId = ?. |
RepositoryEntry |
fetchByUuid_First(String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where uuid = ?. |
RepositoryEntry |
fetchByUUID_G(String uuid,
long groupId)
Returns the repository entry where uuid = ? and groupId = ? or returns null if it could not be found. |
RepositoryEntry |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the repository entry where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. |
RepositoryEntry |
fetchByUuid_Last(String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where uuid = ?. |
List<RepositoryEntry> |
findAll()
Returns all the repository entries. |
List<RepositoryEntry> |
findAll(int start,
int end)
Returns a range of all the repository entries. |
List<RepositoryEntry> |
findAll(int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns an ordered range of all the repository entries. |
List<RepositoryEntry> |
findAll(int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the repository entries. |
RepositoryEntry |
findByPrimaryKey(long repositoryEntryId)
Returns the repository entry with the primary key or throws a NoSuchRepositoryEntryException if it could not be found. |
RepositoryEntry |
findByPrimaryKey(Serializable primaryKey)
Returns the repository entry with the primary key or throws a NoSuchModelException if it could not be found. |
RepositoryEntry |
findByR_M(long repositoryId,
String mappedId)
Returns the repository entry where repositoryId = ? and mappedId = ? or throws a NoSuchRepositoryEntryException if it could not be found. |
RepositoryEntry |
findByRepositoryId_First(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where repositoryId = ?. |
RepositoryEntry |
findByRepositoryId_Last(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where repositoryId = ?. |
RepositoryEntry[] |
findByRepositoryId_PrevAndNext(long repositoryEntryId,
long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the repository entries before and after the current repository entry in the ordered set where repositoryId = ?. |
List<RepositoryEntry> |
findByRepositoryId(long repositoryId)
Returns all the repository entries where repositoryId = ?. |
List<RepositoryEntry> |
findByRepositoryId(long repositoryId,
int start,
int end)
Returns a range of all the repository entries where repositoryId = ?. |
List<RepositoryEntry> |
findByRepositoryId(long repositoryId,
int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns an ordered range of all the repository entries where repositoryId = ?. |
List<RepositoryEntry> |
findByRepositoryId(long repositoryId,
int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the repository entries where repositoryId = ?. |
RepositoryEntry |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where uuid = ? and companyId = ?. |
RepositoryEntry |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where uuid = ? and companyId = ?. |
RepositoryEntry[] |
findByUuid_C_PrevAndNext(long repositoryEntryId,
String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the repository entries before and after the current repository entry in the ordered set where uuid = ? and companyId = ?. |
List<RepositoryEntry> |
findByUuid_C(String uuid,
long companyId)
Returns all the repository entries where uuid = ? and companyId = ?. |
List<RepositoryEntry> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the repository entries where uuid = ? and companyId = ?. |
List<RepositoryEntry> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns an ordered range of all the repository entries where uuid = ? and companyId = ?. |
List<RepositoryEntry> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the repository entries where uuid = ? and companyId = ?. |
RepositoryEntry |
findByUuid_First(String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the first repository entry in the ordered set where uuid = ?. |
RepositoryEntry |
findByUUID_G(String uuid,
long groupId)
Returns the repository entry where uuid = ? and groupId = ? or throws a NoSuchRepositoryEntryException if it could not be found. |
RepositoryEntry |
findByUuid_Last(String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the last repository entry in the ordered set where uuid = ?. |
RepositoryEntry[] |
findByUuid_PrevAndNext(long repositoryEntryId,
String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns the repository entries before and after the current repository entry in the ordered set where uuid = ?. |
List<RepositoryEntry> |
findByUuid(String uuid)
Returns all the repository entries where uuid = ?. |
List<RepositoryEntry> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the repository entries where uuid = ?. |
List<RepositoryEntry> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator)
Returns an ordered range of all the repository entries where uuid = ?. |
List<RepositoryEntry> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the repository entries where uuid = ?. |
Set<String> |
getBadColumnNames()
|
protected RepositoryEntry |
getByRepositoryId_PrevAndNext(Session session,
RepositoryEntry repositoryEntry,
long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean previous)
|
protected RepositoryEntry |
getByUuid_C_PrevAndNext(Session session,
RepositoryEntry repositoryEntry,
String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean previous)
|
protected RepositoryEntry |
getByUuid_PrevAndNext(Session session,
RepositoryEntry repositoryEntry,
String uuid,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean previous)
|
protected Map<String,Integer> |
getTableColumnsMap()
|
RepositoryEntry |
remove(long repositoryEntryId)
Removes the repository entry with the primary key from the database. |
RepositoryEntry |
remove(Serializable primaryKey)
Removes the repository entry with the primary key from the database. |
void |
removeAll()
Removes all the repository entries from the database. |
RepositoryEntry |
removeByR_M(long repositoryId,
String mappedId)
Removes the repository entry where repositoryId = ? and mappedId = ? from the database. |
void |
removeByRepositoryId(long repositoryId)
Removes all the repository entries where repositoryId = ? from the database. |
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the repository entries where uuid = ? and companyId = ? from the database. |
RepositoryEntry |
removeByUUID_G(String uuid,
long groupId)
Removes the repository entry where uuid = ? and groupId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the repository entries where uuid = ? from the database. |
protected RepositoryEntry |
removeImpl(RepositoryEntry repositoryEntry)
Removes the model instance from the database. |
protected RepositoryEntry |
toUnwrappedModel(RepositoryEntry repositoryEntry)
|
RepositoryEntry |
updateImpl(RepositoryEntry repositoryEntry)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_REPOSITORYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_REPOSITORYID
public static final FinderPath FINDER_PATH_COUNT_BY_REPOSITORYID
public static final FinderPath FINDER_PATH_FETCH_BY_R_M
public static final FinderPath FINDER_PATH_COUNT_BY_R_M
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public RepositoryEntryPersistenceImpl()
| Method Detail |
|---|
public List<RepositoryEntry> findByUuid(String uuid)
findByUuid in interface RepositoryEntryPersistenceuuid - the uuid
public List<RepositoryEntry> findByUuid(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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl. 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.
findByUuid in interface RepositoryEntryPersistenceuuid - the uuidstart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)
public List<RepositoryEntry> findByUuid(String uuid,
int start,
int end,
OrderByComparator<RepositoryEntry> 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 RepositoryEntryModelImpl. 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.
findByUuid in interface RepositoryEntryPersistenceuuid - the uuidstart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<RepositoryEntry> findByUuid(String uuid,
int start,
int end,
OrderByComparator<RepositoryEntry> 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 RepositoryEntryModelImpl. 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.
findByUuid in interface RepositoryEntryPersistenceuuid - the uuidstart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public RepositoryEntry findByUuid_First(String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
throws NoSuchRepositoryEntryException
findByUuid_First in interface RepositoryEntryPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRepositoryEntryException - if a matching repository entry could not be found
public RepositoryEntry fetchByUuid_First(String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
fetchByUuid_First in interface RepositoryEntryPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching repository entry could not be found
public RepositoryEntry findByUuid_Last(String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
throws NoSuchRepositoryEntryException
findByUuid_Last in interface RepositoryEntryPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRepositoryEntryException - if a matching repository entry could not be found
public RepositoryEntry fetchByUuid_Last(String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
fetchByUuid_Last in interface RepositoryEntryPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching repository entry could not be found
public RepositoryEntry[] findByUuid_PrevAndNext(long repositoryEntryId,
String uuid,
OrderByComparator<RepositoryEntry> orderByComparator)
throws NoSuchRepositoryEntryException
findByUuid_PrevAndNext in interface RepositoryEntryPersistencerepositoryEntryId - the primary key of the current repository entryuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
protected RepositoryEntry getByUuid_PrevAndNext(Session session,
RepositoryEntry repositoryEntry,
String uuid,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean previous)
public void removeByUuid(String uuid)
removeByUuid in interface RepositoryEntryPersistenceuuid - the uuidpublic int countByUuid(String uuid)
countByUuid in interface RepositoryEntryPersistenceuuid - the uuid
public RepositoryEntry findByUUID_G(String uuid,
long groupId)
throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryException if it could not be found.
findByUUID_G in interface RepositoryEntryPersistenceuuid - the uuidgroupId - the group ID
NoSuchRepositoryEntryException - if a matching repository entry could not be found
public RepositoryEntry fetchByUUID_G(String uuid,
long groupId)
null if it could not be found. Uses the finder cache.
fetchByUUID_G in interface RepositoryEntryPersistenceuuid - the uuidgroupId - the group ID
null if a matching repository entry could not be found
public RepositoryEntry fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByUUID_G in interface RepositoryEntryPersistenceuuid - the uuidgroupId - the group IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching repository entry could not be found
public RepositoryEntry removeByUUID_G(String uuid,
long groupId)
throws NoSuchRepositoryEntryException
removeByUUID_G in interface RepositoryEntryPersistenceuuid - the uuidgroupId - the group ID
NoSuchRepositoryEntryException
public int countByUUID_G(String uuid,
long groupId)
countByUUID_G in interface RepositoryEntryPersistenceuuid - the uuidgroupId - the group ID
public List<RepositoryEntry> findByUuid_C(String uuid,
long companyId)
findByUuid_C in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company ID
public List<RepositoryEntry> findByUuid_C(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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from RepositoryEntryModelImpl. 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.
findByUuid_C in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)
public List<RepositoryEntry> findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<RepositoryEntry> 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 RepositoryEntryModelImpl. 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.
findByUuid_C in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<RepositoryEntry> findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<RepositoryEntry> 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 RepositoryEntryModelImpl. 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.
findByUuid_C in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public RepositoryEntry findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
throws NoSuchRepositoryEntryException
findByUuid_C_First in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRepositoryEntryException - if a matching repository entry could not be found
public RepositoryEntry fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
fetchByUuid_C_First in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching repository entry could not be found
public RepositoryEntry findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
throws NoSuchRepositoryEntryException
findByUuid_C_Last in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRepositoryEntryException - if a matching repository entry could not be found
public RepositoryEntry fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
fetchByUuid_C_Last in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching repository entry could not be found
public RepositoryEntry[] findByUuid_C_PrevAndNext(long repositoryEntryId,
String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator)
throws NoSuchRepositoryEntryException
findByUuid_C_PrevAndNext in interface RepositoryEntryPersistencerepositoryEntryId - the primary key of the current repository entryuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
protected RepositoryEntry getByUuid_C_PrevAndNext(Session session,
RepositoryEntry repositoryEntry,
String uuid,
long companyId,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean previous)
public void removeByUuid_C(String uuid,
long companyId)
removeByUuid_C in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company ID
public int countByUuid_C(String uuid,
long companyId)
countByUuid_C in interface RepositoryEntryPersistenceuuid - the uuidcompanyId - the company ID
public List<RepositoryEntry> findByRepositoryId(long repositoryId)
findByRepositoryId in interface RepositoryEntryPersistencerepositoryId - the repository ID
public List<RepositoryEntry> findByRepositoryId(long repositoryId,
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 RepositoryEntryModelImpl. 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.
findByRepositoryId in interface RepositoryEntryPersistencerepositoryId - the repository IDstart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)
public List<RepositoryEntry> findByRepositoryId(long repositoryId,
int start,
int end,
OrderByComparator<RepositoryEntry> 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 RepositoryEntryModelImpl. 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.
findByRepositoryId in interface RepositoryEntryPersistencerepositoryId - the repository IDstart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<RepositoryEntry> findByRepositoryId(long repositoryId,
int start,
int end,
OrderByComparator<RepositoryEntry> 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 RepositoryEntryModelImpl. 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.
findByRepositoryId in interface RepositoryEntryPersistencerepositoryId - the repository IDstart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public RepositoryEntry findByRepositoryId_First(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
throws NoSuchRepositoryEntryException
findByRepositoryId_First in interface RepositoryEntryPersistencerepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRepositoryEntryException - if a matching repository entry could not be found
public RepositoryEntry fetchByRepositoryId_First(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
fetchByRepositoryId_First in interface RepositoryEntryPersistencerepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching repository entry could not be found
public RepositoryEntry findByRepositoryId_Last(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
throws NoSuchRepositoryEntryException
findByRepositoryId_Last in interface RepositoryEntryPersistencerepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRepositoryEntryException - if a matching repository entry could not be found
public RepositoryEntry fetchByRepositoryId_Last(long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
fetchByRepositoryId_Last in interface RepositoryEntryPersistencerepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching repository entry could not be found
public RepositoryEntry[] findByRepositoryId_PrevAndNext(long repositoryEntryId,
long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator)
throws NoSuchRepositoryEntryException
findByRepositoryId_PrevAndNext in interface RepositoryEntryPersistencerepositoryEntryId - the primary key of the current repository entryrepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
protected RepositoryEntry getByRepositoryId_PrevAndNext(Session session,
RepositoryEntry repositoryEntry,
long repositoryId,
OrderByComparator<RepositoryEntry> orderByComparator,
boolean previous)
public void removeByRepositoryId(long repositoryId)
removeByRepositoryId in interface RepositoryEntryPersistencerepositoryId - the repository IDpublic int countByRepositoryId(long repositoryId)
countByRepositoryId in interface RepositoryEntryPersistencerepositoryId - the repository ID
public RepositoryEntry findByR_M(long repositoryId,
String mappedId)
throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryException if it could not be found.
findByR_M in interface RepositoryEntryPersistencerepositoryId - the repository IDmappedId - the mapped ID
NoSuchRepositoryEntryException - if a matching repository entry could not be found
public RepositoryEntry fetchByR_M(long repositoryId,
String mappedId)
null if it could not be found. Uses the finder cache.
fetchByR_M in interface RepositoryEntryPersistencerepositoryId - the repository IDmappedId - the mapped ID
null if a matching repository entry could not be found
public RepositoryEntry fetchByR_M(long repositoryId,
String mappedId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByR_M in interface RepositoryEntryPersistencerepositoryId - the repository IDmappedId - the mapped IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching repository entry could not be found
public RepositoryEntry removeByR_M(long repositoryId,
String mappedId)
throws NoSuchRepositoryEntryException
removeByR_M in interface RepositoryEntryPersistencerepositoryId - the repository IDmappedId - the mapped ID
NoSuchRepositoryEntryException
public int countByR_M(long repositoryId,
String mappedId)
countByR_M in interface RepositoryEntryPersistencerepositoryId - the repository IDmappedId - the mapped ID
public void cacheResult(RepositoryEntry repositoryEntry)
cacheResult in interface RepositoryEntryPersistencerepositoryEntry - the repository entrypublic void cacheResult(List<RepositoryEntry> repositoryEntries)
cacheResult in interface RepositoryEntryPersistencerepositoryEntries - the repository entriespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<RepositoryEntry>clearCache in class BasePersistenceImpl<RepositoryEntry>public void clearCache(RepositoryEntry repositoryEntry)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<RepositoryEntry>clearCache in class BasePersistenceImpl<RepositoryEntry>repositoryEntry - the instance of this model to clear the cache forpublic void clearCache(List<RepositoryEntry> repositoryEntries)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<RepositoryEntry>clearCache in class BasePersistenceImpl<RepositoryEntry>repositoryEntries - the List instances of this model to clear the cache for
protected void cacheUniqueFindersCache(RepositoryEntryModelImpl repositoryEntryModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(RepositoryEntryModelImpl repositoryEntryModelImpl)
public RepositoryEntry create(long repositoryEntryId)
create in interface RepositoryEntryPersistencerepositoryEntryId - the primary key for the new repository entry
public RepositoryEntry remove(long repositoryEntryId)
throws NoSuchRepositoryEntryException
remove in interface RepositoryEntryPersistencerepositoryEntryId - the primary key of the repository entry
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
public RepositoryEntry remove(Serializable primaryKey)
throws NoSuchRepositoryEntryException
remove in interface BasePersistence<RepositoryEntry>remove in class BasePersistenceImpl<RepositoryEntry>primaryKey - the primary key of the repository entry
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be foundprotected RepositoryEntry removeImpl(RepositoryEntry repositoryEntry)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<RepositoryEntry>repositoryEntry - the model instance to remove
public RepositoryEntry updateImpl(RepositoryEntry repositoryEntry)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface RepositoryEntryPersistenceupdateImpl in class BasePersistenceImpl<RepositoryEntry>repositoryEntry - the model instance to update
protected RepositoryEntry toUnwrappedModel(RepositoryEntry repositoryEntry)
public RepositoryEntry findByPrimaryKey(Serializable primaryKey)
throws NoSuchRepositoryEntryException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<RepositoryEntry>findByPrimaryKey in class BasePersistenceImpl<RepositoryEntry>primaryKey - the primary key of the repository entry
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be found
public RepositoryEntry findByPrimaryKey(long repositoryEntryId)
throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryException if it could not be found.
findByPrimaryKey in interface RepositoryEntryPersistencerepositoryEntryId - the primary key of the repository entry
NoSuchRepositoryEntryException - if a repository entry with the primary key could not be foundpublic RepositoryEntry fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<RepositoryEntry>fetchByPrimaryKey in class BasePersistenceImpl<RepositoryEntry>primaryKey - the primary key of the repository entry
null if a repository entry with the primary key could not be foundpublic RepositoryEntry fetchByPrimaryKey(long repositoryEntryId)
null if it could not be found.
fetchByPrimaryKey in interface RepositoryEntryPersistencerepositoryEntryId - the primary key of the repository entry
null if a repository entry with the primary key could not be foundpublic Map<Serializable,RepositoryEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<RepositoryEntry>fetchByPrimaryKeys in interface RepositoryEntryPersistencefetchByPrimaryKeys in class BasePersistenceImpl<RepositoryEntry>public List<RepositoryEntry> findAll()
findAll in interface RepositoryEntryPersistence
public List<RepositoryEntry> 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 RepositoryEntryModelImpl. 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 RepositoryEntryPersistencestart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)
public List<RepositoryEntry> findAll(int start,
int end,
OrderByComparator<RepositoryEntry> 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 RepositoryEntryModelImpl. 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 RepositoryEntryPersistencestart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<RepositoryEntry> findAll(int start,
int end,
OrderByComparator<RepositoryEntry> 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 RepositoryEntryModelImpl. 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 RepositoryEntryPersistencestart - the lower bound of the range of repository entriesend - the upper bound of the range of repository entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface RepositoryEntryPersistencepublic int countAll()
countAll in interface RepositoryEntryPersistencepublic Set<String> getBadColumnNames()
getBadColumnNames in interface BasePersistence<RepositoryEntry>getBadColumnNames in interface RepositoryEntryPersistencegetBadColumnNames in class BasePersistenceImpl<RepositoryEntry>protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<RepositoryEntry>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||