@ProviderType public interface WikiPageResourcePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<WikiPageResource>
Caching information and settings can be found in portal.properties
WikiPageResourceUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<WikiPageResource> wikiPageResources)
Caches the wiki page resources in the entity cache if it is enabled.
|
void |
cacheResult(WikiPageResource wikiPageResource)
Caches the wiki page resource in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of wiki page resources.
|
int |
countByN_T(long nodeId,
java.lang.String title)
Returns the number of wiki page resources where nodeId = ? and title = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of wiki page resources where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of wiki page resources where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of wiki page resources where uuid = ?.
|
WikiPageResource |
create(long resourcePrimKey)
Creates a new wiki page resource with the primary key.
|
WikiPageResource |
fetchByN_T(long nodeId,
java.lang.String title)
Returns the wiki page resource where nodeId = ? and title = ? or returns
null if it could not be found. |
WikiPageResource |
fetchByN_T(long nodeId,
java.lang.String title,
boolean useFinderCache)
Returns the wiki page resource where nodeId = ? and title = ? or returns
null if it could not be found, optionally using the finder cache. |
WikiPageResource |
fetchByPrimaryKey(long resourcePrimKey)
Returns the wiki page resource with the primary key or returns
null if it could not be found. |
WikiPageResource |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the first wiki page resource in the ordered set where uuid = ? and companyId = ?.
|
WikiPageResource |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the last wiki page resource in the ordered set where uuid = ? and companyId = ?.
|
WikiPageResource |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the first wiki page resource in the ordered set where uuid = ?.
|
WikiPageResource |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the wiki page resource where uuid = ? and groupId = ? or returns
null if it could not be found. |
WikiPageResource |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the wiki page resource where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
WikiPageResource |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the last wiki page resource in the ordered set where uuid = ?.
|
java.util.List<WikiPageResource> |
findAll()
Returns all the wiki page resources.
|
java.util.List<WikiPageResource> |
findAll(int start,
int end)
Returns a range of all the wiki page resources.
|
java.util.List<WikiPageResource> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns an ordered range of all the wiki page resources.
|
java.util.List<WikiPageResource> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the wiki page resources.
|
WikiPageResource |
findByN_T(long nodeId,
java.lang.String title)
Returns the wiki page resource where nodeId = ? and title = ? or throws a
NoSuchPageResourceException if it could not be found. |
WikiPageResource |
findByPrimaryKey(long resourcePrimKey)
Returns the wiki page resource with the primary key or throws a
NoSuchPageResourceException if it could not be found. |
WikiPageResource |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the first wiki page resource in the ordered set where uuid = ? and companyId = ?.
|
WikiPageResource |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the last wiki page resource in the ordered set where uuid = ? and companyId = ?.
|
WikiPageResource[] |
findByUuid_C_PrevAndNext(long resourcePrimKey,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the wiki page resources before and after the current wiki page resource in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<WikiPageResource> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the wiki page resources where uuid = ? and companyId = ?.
|
java.util.List<WikiPageResource> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the wiki page resources where uuid = ? and companyId = ?.
|
java.util.List<WikiPageResource> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns an ordered range of all the wiki page resources where uuid = ? and companyId = ?.
|
java.util.List<WikiPageResource> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the wiki page resources where uuid = ? and companyId = ?.
|
WikiPageResource |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the first wiki page resource in the ordered set where uuid = ?.
|
WikiPageResource |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the wiki page resource where uuid = ? and groupId = ? or throws a
NoSuchPageResourceException if it could not be found. |
WikiPageResource |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the last wiki page resource in the ordered set where uuid = ?.
|
WikiPageResource[] |
findByUuid_PrevAndNext(long resourcePrimKey,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns the wiki page resources before and after the current wiki page resource in the ordered set where uuid = ?.
|
java.util.List<WikiPageResource> |
findByUuid(java.lang.String uuid)
Returns all the wiki page resources where uuid = ?.
|
java.util.List<WikiPageResource> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the wiki page resources where uuid = ?.
|
java.util.List<WikiPageResource> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
Returns an ordered range of all the wiki page resources where uuid = ?.
|
java.util.List<WikiPageResource> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the wiki page resources where uuid = ?.
|
WikiPageResource |
remove(long resourcePrimKey)
Removes the wiki page resource with the primary key from the database.
|
void |
removeAll()
Removes all the wiki page resources from the database.
|
WikiPageResource |
removeByN_T(long nodeId,
java.lang.String title)
Removes the wiki page resource where nodeId = ? and title = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the wiki page resources where uuid = ? and companyId = ? from the database.
|
WikiPageResource |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the wiki page resource where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the wiki page resources where uuid = ? from the database.
|
WikiPageResource |
updateImpl(WikiPageResource wikiPageResource) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<WikiPageResource> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<WikiPageResource> findByUuid(java.lang.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, then the query will include the default ORDER BY logic from WikiPageResourceModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of wiki page resourcesend
- the upper bound of the range of wiki page resources (not inclusive)java.util.List<WikiPageResource> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> 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 WikiPageResourceModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of wiki page resourcesend
- the upper bound of the range of wiki page resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<WikiPageResource> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> 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 WikiPageResourceModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of wiki page resourcesend
- the upper bound of the range of wiki page resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheWikiPageResource findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator) throws NoSuchPageResourceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPageResourceException
- if a matching wiki page resource could not be foundWikiPageResource fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching wiki page resource could not be foundWikiPageResource findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator) throws NoSuchPageResourceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPageResourceException
- if a matching wiki page resource could not be foundWikiPageResource fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching wiki page resource could not be foundWikiPageResource[] findByUuid_PrevAndNext(long resourcePrimKey, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator) throws NoSuchPageResourceException
resourcePrimKey
- the primary key of the current wiki page resourceuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPageResourceException
- if a wiki page resource with the primary key could not be foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidWikiPageResource findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchPageResourceException
NoSuchPageResourceException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchPageResourceException
- if a matching wiki page resource could not be foundWikiPageResource fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching wiki page resource could not be foundWikiPageResource fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching wiki page resource could not be foundWikiPageResource removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchPageResourceException
uuid
- the uuidgroupId
- the group IDNoSuchPageResourceException
int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDjava.util.List<WikiPageResource> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<WikiPageResource> findByUuid_C(java.lang.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, then the query will include the default ORDER BY logic from WikiPageResourceModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of wiki page resourcesend
- the upper bound of the range of wiki page resources (not inclusive)java.util.List<WikiPageResource> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> 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 WikiPageResourceModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of wiki page resourcesend
- the upper bound of the range of wiki page resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<WikiPageResource> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> 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 WikiPageResourceModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of wiki page resourcesend
- the upper bound of the range of wiki page resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheWikiPageResource findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator) throws NoSuchPageResourceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPageResourceException
- if a matching wiki page resource could not be foundWikiPageResource fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching wiki page resource could not be foundWikiPageResource findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator) throws NoSuchPageResourceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPageResourceException
- if a matching wiki page resource could not be foundWikiPageResource fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching wiki page resource could not be foundWikiPageResource[] findByUuid_C_PrevAndNext(long resourcePrimKey, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> orderByComparator) throws NoSuchPageResourceException
resourcePrimKey
- the primary key of the current wiki page resourceuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPageResourceException
- if a wiki page resource with the primary key could not be foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDWikiPageResource findByN_T(long nodeId, java.lang.String title) throws NoSuchPageResourceException
NoSuchPageResourceException
if it could not be found.nodeId
- the node IDtitle
- the titleNoSuchPageResourceException
- if a matching wiki page resource could not be foundWikiPageResource fetchByN_T(long nodeId, java.lang.String title)
null
if it could not be found. Uses the finder cache.nodeId
- the node IDtitle
- the titlenull
if a matching wiki page resource could not be foundWikiPageResource fetchByN_T(long nodeId, java.lang.String title, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.nodeId
- the node IDtitle
- the titleuseFinderCache
- whether to use the finder cachenull
if a matching wiki page resource could not be foundWikiPageResource removeByN_T(long nodeId, java.lang.String title) throws NoSuchPageResourceException
nodeId
- the node IDtitle
- the titleNoSuchPageResourceException
int countByN_T(long nodeId, java.lang.String title)
nodeId
- the node IDtitle
- the titlevoid cacheResult(WikiPageResource wikiPageResource)
wikiPageResource
- the wiki page resourcevoid cacheResult(java.util.List<WikiPageResource> wikiPageResources)
wikiPageResources
- the wiki page resourcesWikiPageResource create(long resourcePrimKey)
resourcePrimKey
- the primary key for the new wiki page resourceWikiPageResource remove(long resourcePrimKey) throws NoSuchPageResourceException
resourcePrimKey
- the primary key of the wiki page resourceNoSuchPageResourceException
- if a wiki page resource with the primary key could not be foundWikiPageResource updateImpl(WikiPageResource wikiPageResource)
WikiPageResource findByPrimaryKey(long resourcePrimKey) throws NoSuchPageResourceException
NoSuchPageResourceException
if it could not be found.resourcePrimKey
- the primary key of the wiki page resourceNoSuchPageResourceException
- if a wiki page resource with the primary key could not be foundWikiPageResource fetchByPrimaryKey(long resourcePrimKey)
null
if it could not be found.resourcePrimKey
- the primary key of the wiki page resourcenull
if a wiki page resource with the primary key could not be foundjava.util.List<WikiPageResource> findAll()
java.util.List<WikiPageResource> 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 WikiPageResourceModelImpl
.
start
- the lower bound of the range of wiki page resourcesend
- the upper bound of the range of wiki page resources (not inclusive)java.util.List<WikiPageResource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> 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 WikiPageResourceModelImpl
.
start
- the lower bound of the range of wiki page resourcesend
- the upper bound of the range of wiki page resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<WikiPageResource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPageResource> 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 WikiPageResourceModelImpl
.
start
- the lower bound of the range of wiki page resourcesend
- the upper bound of the range of wiki page resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()