Example usage for com.liferay.portal.kernel.cache CacheRegistryUtil clear

List of usage examples for com.liferay.portal.kernel.cache CacheRegistryUtil clear

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.cache CacheRegistryUtil clear.

Prototype

public static void clear(String name) 

Source Link

Usage

From source file:at.bibbox.reactjsservice.service.persistence.ToolInformationPersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all tool informations.
 *
 * <p>/*from  w  ww .j a  v a 2 s .c  o m*/
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(ToolInformationImpl.class.getName());
    }

    EntityCacheUtil.clearCache(ToolInformationImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.persistence.ConfigurationPersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all configurations.
 *
 * <p>//from   w  w  w.j  av  a 2s.  c  om
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(ConfigurationImpl.class.getName());
    }

    EntityCacheUtil.clearCache(ConfigurationImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.persistence.FahrzeugPersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all fahrzeugs./* w  w  w  . j a  v a  2  s .c o m*/
 *
 * <p>
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(FahrzeugImpl.class.getName());
    }

    EntityCacheUtil.clearCache(FahrzeugImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.persistence.ObjectDataPersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all object datas.
 *
 * <p>/*from  w w  w.j  ava 2 s. c o m*/
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(ObjectDataImpl.class.getName());
    }

    EntityCacheUtil.clearCache(ObjectDataImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.persistence.ObjectImagePersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all object images.
 *
 * <p>/*from   ww w.  j  a  v a 2s  .c om*/
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(ObjectImageImpl.class.getName());
    }

    EntityCacheUtil.clearCache(ObjectImageImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.persistence.ParameterConfigurationPersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all parameter configurations.
 *
 * <p>/*from  w  w w.  j av  a2s  .c o m*/
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(ParameterConfigurationImpl.class.getName());
    }

    EntityCacheUtil.clearCache(ParameterConfigurationImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.persistence.ParameterOptionsConfigurationPersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all parameter options configurations.
 *
 * <p>/*w  ww. j a v a2 s  . c  om*/
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(ParameterOptionsConfigurationImpl.class.getName());
    }

    EntityCacheUtil.clearCache(ParameterOptionsConfigurationImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.persistence.PersonPersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all persons./*from  w  ww  . j  av  a2 s.co  m*/
 *
 * <p>
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(PersonImpl.class.getName());
    }

    EntityCacheUtil.clearCache(PersonImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.persistence.PuchMuseumsObjektPersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all puch museums objekts.
 *
 * <p>/*from   w  w w  . j av  a2s. c  om*/
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(PuchMuseumsObjektImpl.class.getName());
    }

    EntityCacheUtil.clearCache(PuchMuseumsObjektImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.persistence.TransaktionDataPersistenceImpl.java

License:Open Source License

/**
 * Clears the cache for all transaktion datas.
 *
 * <p>//from w w w  .ja va  2 s .com
 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
 * </p>
 */
@Override
public void clearCache() {
    if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
        CacheRegistryUtil.clear(TransaktionDataImpl.class.getName());
    }

    EntityCacheUtil.clearCache(TransaktionDataImpl.class.getName());

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}