/* (non-Javadoc) * @see edu.ur.dao.UniqueNameDAO#findByUniqueName(java.lang.String) */ public MetadataType findByUniqueName(String name) { Query q = hbCrudDAO.getSessionFactory().getCurrentSession().getNamedQuery("getMetadataTypeByName"); q.setParameter(0, name); return (MetadataType) q.uniqueResult(); }
/** * Get a count of the metadata types * * @see edu.ur.dao.CountableDAO#getCount() */ public Long getCount() { return (Long) hbCrudDAO .getSessionFactory() .getCurrentSession() .getNamedQuery("metadataTypeCount") .uniqueResult(); }
/** * Get a count of the Versions * * @see edu.ur.CountableDAO#getCount() */ public Long getCount() { Query q = hbCrudDAO.getSessionFactory().getCurrentSession().getNamedQuery("versionCount"); return (Long) q.uniqueResult(); }