public static void clearCache(String className) { _finderCache.clearCache(className); }
public static Object getResult( FinderPath finderPath, Object[] args, BasePersistenceImpl<? extends BaseModel<?>> basePersistenceImpl) { return _finderCache.getResult(finderPath, args, basePersistenceImpl); }
public static void putResult( FinderPath finderPath, Object[] args, Object result, boolean quiet) { _finderCache.putResult(finderPath, args, result, quiet); }
/** * Returns the number of ddm data provider instance links. * * @return the number of ddm data provider instance links */ @Override public int countAll() { Long count = (Long)finderCache.getResult(_finderPathCountAll, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_DDMDATAPROVIDERINSTANCELINK); count = (Long)q.uniqueResult(); finderCache.putResult(_finderPathCountAll, FINDER_ARGS_EMPTY, count); } catch (Exception e) { finderCache.removeResult(_finderPathCountAll, FINDER_ARGS_EMPTY); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }
public static void removeResult(FinderPath finderPath, Object[] args) { _finderCache.removeResult(finderPath, args); }
public static void removeCache(String className) { _finderCache.removeCache(className); }
public static void clearLocalCache() { _finderCache.clearLocalCache(); }
public static void invalidate() { getFinderCache().invalidate(); }
/** * Returns the number of ddm structure layouts. * * @return the number of ddm structure layouts */ @Override public int countAll() { Long count = (Long)finderCache.getResult(_finderPathCountAll, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_DDMSTRUCTURELAYOUT); count = (Long)q.uniqueResult(); finderCache.putResult(_finderPathCountAll, FINDER_ARGS_EMPTY, count); } catch (Exception e) { finderCache.removeResult(_finderPathCountAll, FINDER_ARGS_EMPTY); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }
public static void removeResult(FinderPath finderPath, Object[] args) { getFinderCache().removeResult(finderPath, args); }
public void destroy() { entityCache.removeCache(DDMStructureImpl.class.getName()); finderCache.removeCache(FINDER_CLASS_NAME_ENTITY); finderCache.removeCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); finderCache.removeCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); }
public static void clearLocalCache() { getFinderCache().clearLocalCache(); }
public static void invalidate() { getFinderCache().invalidate(); }
/** * Returns the number of ddm structure versions. * * @return the number of ddm structure versions */ @Override public int countAll() { Long count = (Long)finderCache.getResult(_finderPathCountAll, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_DDMSTRUCTUREVERSION); count = (Long)q.uniqueResult(); finderCache.putResult(_finderPathCountAll, FINDER_ARGS_EMPTY, count); } catch (Exception e) { finderCache.removeResult(_finderPathCountAll, FINDER_ARGS_EMPTY); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }
public static void clearCache() { _finderCache.clearCache(); }
public static void putResult( FinderPath finderPath, Object[] args, Object result) { _finderCache.putResult(finderPath, args, result); }
protected void clearUniqueFindersCache( DDMStorageLinkModelImpl ddmStorageLinkModelImpl, boolean clearCurrent) { if (clearCurrent) { Object[] args = new Object[] { ddmStorageLinkModelImpl.getClassPK() }; finderCache.removeResult(_finderPathCountByClassPK, args); finderCache.removeResult(_finderPathFetchByClassPK, args); } if ((ddmStorageLinkModelImpl.getColumnBitmask() & _finderPathFetchByClassPK.getColumnBitmask()) != 0) { Object[] args = new Object[] { ddmStorageLinkModelImpl.getOriginalClassPK() }; finderCache.removeResult(_finderPathCountByClassPK, args); finderCache.removeResult(_finderPathFetchByClassPK, args); } }
public void destroy() { entityCache.removeCache(DDMFormInstanceRecordVersionImpl.class.getName()); finderCache.removeCache(FINDER_CLASS_NAME_ENTITY); finderCache.removeCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); finderCache.removeCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); }
public static Object getResult( FinderPath finderPath, Object[] args, SessionFactory sessionFactory) { return getFinderCache().getResult(finderPath, args, sessionFactory); }
/** * Returns the number of ddm form instance records. * * @return the number of ddm form instance records */ @Override public int countAll() { Long count = (Long)finderCache.getResult(_finderPathCountAll, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_DDMFORMINSTANCERECORD); count = (Long)q.uniqueResult(); finderCache.putResult(_finderPathCountAll, FINDER_ARGS_EMPTY, count); } catch (Exception e) { finderCache.removeResult(_finderPathCountAll, FINDER_ARGS_EMPTY); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }