@ProviderType public interface FolderPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<Folder>
Caching information and settings can be found in portal.properties
FolderUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(Folder folder)
Caches the folder in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<Folder> folders)
Caches the folders in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of folders.
|
int |
countByA_F(long accountId,
java.lang.String fullName)
Returns the number of folders where accountId = ? and fullName = ?.
|
int |
countByAccountId(long accountId)
Returns the number of folders where accountId = ?.
|
Folder |
create(long folderId)
Creates a new folder with the primary key.
|
Folder |
fetchByA_F(long accountId,
java.lang.String fullName)
Returns the folder where accountId = ? and fullName = ? or returns
null if it could not be found. |
Folder |
fetchByA_F(long accountId,
java.lang.String fullName,
boolean useFinderCache)
Returns the folder where accountId = ? and fullName = ? or returns
null if it could not be found, optionally using the finder cache. |
Folder |
fetchByAccountId_First(long accountId,
com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator)
Returns the first folder in the ordered set where accountId = ?.
|
Folder |
fetchByAccountId_Last(long accountId,
com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator)
Returns the last folder in the ordered set where accountId = ?.
|
Folder |
fetchByPrimaryKey(long folderId)
Returns the folder with the primary key or returns
null if it could not be found. |
java.util.List<Folder> |
findAll()
Returns all the folders.
|
java.util.List<Folder> |
findAll(int start,
int end)
Returns a range of all the folders.
|
java.util.List<Folder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator)
Returns an ordered range of all the folders.
|
java.util.List<Folder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the folders.
|
Folder |
findByA_F(long accountId,
java.lang.String fullName)
Returns the folder where accountId = ? and fullName = ? or throws a
NoSuchFolderException if it could not be found. |
Folder |
findByAccountId_First(long accountId,
com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator)
Returns the first folder in the ordered set where accountId = ?.
|
Folder |
findByAccountId_Last(long accountId,
com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator)
Returns the last folder in the ordered set where accountId = ?.
|
Folder[] |
findByAccountId_PrevAndNext(long folderId,
long accountId,
com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator)
Returns the folders before and after the current folder in the ordered set where accountId = ?.
|
java.util.List<Folder> |
findByAccountId(long accountId)
Returns all the folders where accountId = ?.
|
java.util.List<Folder> |
findByAccountId(long accountId,
int start,
int end)
Returns a range of all the folders where accountId = ?.
|
java.util.List<Folder> |
findByAccountId(long accountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator)
Returns an ordered range of all the folders where accountId = ?.
|
java.util.List<Folder> |
findByAccountId(long accountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the folders where accountId = ?.
|
Folder |
findByPrimaryKey(long folderId)
Returns the folder with the primary key or throws a
NoSuchFolderException if it could not be found. |
Folder |
remove(long folderId)
Removes the folder with the primary key from the database.
|
void |
removeAll()
Removes all the folders from the database.
|
Folder |
removeByA_F(long accountId,
java.lang.String fullName)
Removes the folder where accountId = ? and fullName = ? from the database.
|
void |
removeByAccountId(long accountId)
Removes all the folders where accountId = ? from the database.
|
Folder |
updateImpl(Folder folder) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<Folder> findByAccountId(long accountId)
accountId
- the account IDjava.util.List<Folder> findByAccountId(long accountId, 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 FolderModelImpl
.
accountId
- the account IDstart
- the lower bound of the range of foldersend
- the upper bound of the range of folders (not inclusive)java.util.List<Folder> findByAccountId(long accountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Folder> 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 FolderModelImpl
.
accountId
- the account IDstart
- the lower bound of the range of foldersend
- the upper bound of the range of folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Folder> findByAccountId(long accountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Folder> 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 FolderModelImpl
.
accountId
- the account IDstart
- the lower bound of the range of foldersend
- the upper bound of the range of folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheFolder findByAccountId_First(long accountId, com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator) throws NoSuchFolderException
accountId
- the account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a matching folder could not be foundFolder fetchByAccountId_First(long accountId, com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator)
accountId
- the account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching folder could not be foundFolder findByAccountId_Last(long accountId, com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator) throws NoSuchFolderException
accountId
- the account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a matching folder could not be foundFolder fetchByAccountId_Last(long accountId, com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator)
accountId
- the account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching folder could not be foundFolder[] findByAccountId_PrevAndNext(long folderId, long accountId, com.liferay.portal.kernel.util.OrderByComparator<Folder> orderByComparator) throws NoSuchFolderException
folderId
- the primary key of the current folderaccountId
- the account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a folder with the primary key could not be foundvoid removeByAccountId(long accountId)
accountId
- the account IDint countByAccountId(long accountId)
accountId
- the account IDFolder findByA_F(long accountId, java.lang.String fullName) throws NoSuchFolderException
NoSuchFolderException
if it could not be found.accountId
- the account IDfullName
- the full nameNoSuchFolderException
- if a matching folder could not be foundFolder fetchByA_F(long accountId, java.lang.String fullName)
null
if it could not be found. Uses the finder cache.accountId
- the account IDfullName
- the full namenull
if a matching folder could not be foundFolder fetchByA_F(long accountId, java.lang.String fullName, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.accountId
- the account IDfullName
- the full nameuseFinderCache
- whether to use the finder cachenull
if a matching folder could not be foundFolder removeByA_F(long accountId, java.lang.String fullName) throws NoSuchFolderException
accountId
- the account IDfullName
- the full nameNoSuchFolderException
int countByA_F(long accountId, java.lang.String fullName)
accountId
- the account IDfullName
- the full namevoid cacheResult(Folder folder)
folder
- the foldervoid cacheResult(java.util.List<Folder> folders)
folders
- the foldersFolder create(long folderId)
folderId
- the primary key for the new folderFolder remove(long folderId) throws NoSuchFolderException
folderId
- the primary key of the folderNoSuchFolderException
- if a folder with the primary key could not be foundFolder findByPrimaryKey(long folderId) throws NoSuchFolderException
NoSuchFolderException
if it could not be found.folderId
- the primary key of the folderNoSuchFolderException
- if a folder with the primary key could not be foundFolder fetchByPrimaryKey(long folderId)
null
if it could not be found.folderId
- the primary key of the foldernull
if a folder with the primary key could not be foundjava.util.List<Folder> findAll()
java.util.List<Folder> 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 FolderModelImpl
.
start
- the lower bound of the range of foldersend
- the upper bound of the range of folders (not inclusive)java.util.List<Folder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Folder> 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 FolderModelImpl
.
start
- the lower bound of the range of foldersend
- the upper bound of the range of folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<Folder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Folder> 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 FolderModelImpl
.
start
- the lower bound of the range of foldersend
- the upper bound of the range of folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()