@ProviderType public interface HtmlPreviewEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<HtmlPreviewEntry>
Caching information and settings can be found in portal.properties
HtmlPreviewEntryUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(HtmlPreviewEntry htmlPreviewEntry)
Caches the html preview entry in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<HtmlPreviewEntry> htmlPreviewEntries)
Caches the html preview entries in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of html preview entries.
|
int |
countByG_C_C(long groupId,
long classNameId,
long classPK)
Returns the number of html preview entries where groupId = ? and classNameId = ? and classPK = ?.
|
HtmlPreviewEntry |
create(long htmlPreviewEntryId)
Creates a new html preview entry with the primary key.
|
HtmlPreviewEntry |
fetchByG_C_C(long groupId,
long classNameId,
long classPK)
Returns the html preview entry where groupId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found. |
HtmlPreviewEntry |
fetchByG_C_C(long groupId,
long classNameId,
long classPK,
boolean useFinderCache)
Returns the html preview entry where groupId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
HtmlPreviewEntry |
fetchByPrimaryKey(long htmlPreviewEntryId)
Returns the html preview entry with the primary key or returns
null if it could not be found. |
java.util.List<HtmlPreviewEntry> |
findAll()
Returns all the html preview entries.
|
java.util.List<HtmlPreviewEntry> |
findAll(int start,
int end)
Returns a range of all the html preview entries.
|
java.util.List<HtmlPreviewEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<HtmlPreviewEntry> orderByComparator)
Returns an ordered range of all the html preview entries.
|
java.util.List<HtmlPreviewEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<HtmlPreviewEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the html preview entries.
|
HtmlPreviewEntry |
findByG_C_C(long groupId,
long classNameId,
long classPK)
Returns the html preview entry where groupId = ? and classNameId = ? and classPK = ? or throws a
NoSuchHtmlPreviewEntryException if it could not be found. |
HtmlPreviewEntry |
findByPrimaryKey(long htmlPreviewEntryId)
Returns the html preview entry with the primary key or throws a
NoSuchHtmlPreviewEntryException if it could not be found. |
HtmlPreviewEntry |
remove(long htmlPreviewEntryId)
Removes the html preview entry with the primary key from the database.
|
void |
removeAll()
Removes all the html preview entries from the database.
|
HtmlPreviewEntry |
removeByG_C_C(long groupId,
long classNameId,
long classPK)
Removes the html preview entry where groupId = ? and classNameId = ? and classPK = ? from the database.
|
HtmlPreviewEntry |
updateImpl(HtmlPreviewEntry htmlPreviewEntry) |
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
HtmlPreviewEntry findByG_C_C(long groupId, long classNameId, long classPK) throws NoSuchHtmlPreviewEntryException
NoSuchHtmlPreviewEntryException
if it could not be found.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkNoSuchHtmlPreviewEntryException
- if a matching html preview entry could not be foundHtmlPreviewEntry fetchByG_C_C(long groupId, long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pknull
if a matching html preview entry could not be foundHtmlPreviewEntry fetchByG_C_C(long groupId, long classNameId, long classPK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cachenull
if a matching html preview entry could not be foundHtmlPreviewEntry removeByG_C_C(long groupId, long classNameId, long classPK) throws NoSuchHtmlPreviewEntryException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkNoSuchHtmlPreviewEntryException
int countByG_C_C(long groupId, long classNameId, long classPK)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkvoid cacheResult(HtmlPreviewEntry htmlPreviewEntry)
htmlPreviewEntry
- the html preview entryvoid cacheResult(java.util.List<HtmlPreviewEntry> htmlPreviewEntries)
htmlPreviewEntries
- the html preview entriesHtmlPreviewEntry create(long htmlPreviewEntryId)
htmlPreviewEntryId
- the primary key for the new html preview entryHtmlPreviewEntry remove(long htmlPreviewEntryId) throws NoSuchHtmlPreviewEntryException
htmlPreviewEntryId
- the primary key of the html preview entryNoSuchHtmlPreviewEntryException
- if a html preview entry with the primary key could not be foundHtmlPreviewEntry updateImpl(HtmlPreviewEntry htmlPreviewEntry)
HtmlPreviewEntry findByPrimaryKey(long htmlPreviewEntryId) throws NoSuchHtmlPreviewEntryException
NoSuchHtmlPreviewEntryException
if it could not be found.htmlPreviewEntryId
- the primary key of the html preview entryNoSuchHtmlPreviewEntryException
- if a html preview entry with the primary key could not be foundHtmlPreviewEntry fetchByPrimaryKey(long htmlPreviewEntryId)
null
if it could not be found.htmlPreviewEntryId
- the primary key of the html preview entrynull
if a html preview entry with the primary key could not be foundjava.util.List<HtmlPreviewEntry> findAll()
java.util.List<HtmlPreviewEntry> 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 HtmlPreviewEntryModelImpl
.
start
- the lower bound of the range of html preview entriesend
- the upper bound of the range of html preview entries (not inclusive)java.util.List<HtmlPreviewEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<HtmlPreviewEntry> 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 HtmlPreviewEntryModelImpl
.
start
- the lower bound of the range of html preview entriesend
- the upper bound of the range of html preview entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<HtmlPreviewEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<HtmlPreviewEntry> 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 HtmlPreviewEntryModelImpl
.
start
- the lower bound of the range of html preview entriesend
- the upper bound of the range of html preview entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()