public static Object getResult( FinderPath finderPath, Object[] args, BasePersistenceImpl<? extends BaseModel<?>> basePersistenceImpl) { return _finderCache.getResult(finderPath, args, basePersistenceImpl); }
public static Object getResult( FinderPath finderPath, Object[] args, SessionFactory sessionFactory) { return getFinderCache().getResult(finderPath, args, sessionFactory); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * Returns the number of journal feeds. * * @return the number of journal feeds */ @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_JOURNALFEED); 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(); }
/** * Returns the number of ddm structure links. * * @return the number of ddm structure 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_DDMSTRUCTURELINK); 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(); }
/** * Returns the number of journal folders. * * @return the number of journal folders */ @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_JOURNALFOLDER); 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(); }
/** * Returns the number of ddm form instance record versions. * * @return the number of ddm form instance record 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_DDMFORMINSTANCERECORDVERSION); 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(); }
/** * Returns the number of ddm form instance versions. * * @return the number of ddm form instance 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_DDMFORMINSTANCEVERSION); 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(); }
/** * Returns the number of ddm template links. * * @return the number of ddm template 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_DDMTEMPLATELINK); 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(); }
/** * Returns the number of journal article localizations. * * @return the number of journal article localizations */ @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_JOURNALARTICLELOCALIZATION); 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(); }
/** * Returns the number of ddm structures. * * @return the number of ddm structures */ @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_DDMSTRUCTURE); 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(); }
/** * Returns the number of ddm storage links. * * @return the number of ddm storage 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_DDMSTORAGELINK); 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(); }
/** * Returns the number of ddm templates. * * @return the number of ddm templates */ @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_DDMTEMPLATE); 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(); }
/** * Returns the number of ddm template versions. * * @return the number of ddm template 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_DDMTEMPLATEVERSION); 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(); }
/** * Returns the number of journal content searchs. * * @return the number of journal content searchs */ @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_JOURNALCONTENTSEARCH); 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(); }
/** * Returns the number of journal article resources. * * @return the number of journal article resources */ @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_JOURNALARTICLERESOURCE); 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(); }
/** * Returns the number of ddm contents. * * @return the number of ddm contents */ @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_DDMCONTENT); 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(); }