Class EntryUtil
java.lang.Object
com.liferay.portal.reports.engine.console.service.persistence.EntryUtil
The persistence utility for the entry service. This utility wraps
com.liferay.portal.reports.engine.console.service.persistence.impl.EntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(Entry entry) static voidcacheResult(List<Entry> entries) static voidstatic voidclearCache(Entry entry) static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static Entrycreate(long entryId) Creates a new entry with the primary key.static EntryfetchByPrimaryKey(long entryId) Returns the entry with the primary key or returnsnullif it could not be found.static Map<Serializable, Entry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static EntryfindByPrimaryKey(long entryId) Returns the entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) static EntryPersistencestatic Entryremove(long entryId) Removes the entry with the primary key from the database.static voidsetPersistence(EntryPersistence persistence) static Entrystatic Entrystatic EntryupdateImpl(Entry entry)
-
Constructor Details
-
EntryUtil
public EntryUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<Entry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<Entry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<Entry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static Entry update(Entry entry, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
create
Creates a new entry with the primary key. Does not add the entry to the database.- Parameters:
entryId- the primary key for the new entry- Returns:
- the new entry
-
remove
Removes the entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
entryId- the primary key of the entry- Returns:
- the entry that was removed
-
updateImpl
-
findByPrimaryKey
Returns the entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.- Parameters:
entryId- the primary key of the entry- Returns:
- the entry
-
fetchByPrimaryKey
Returns the entry with the primary key or returnsnullif it could not be found.- Parameters:
entryId- the primary key of the entry- Returns:
- the entry, or
nullif a entry with the primary key could not be found
-
getPersistence
-
setPersistence
-