Class ResourcesHbmDAO

java.lang.Object
org.europa.together.application.GenericHbmDAO<org.europa.together.domain.acl.ResourcesDO,String>
org.europa.together.application.acl.ResourcesHbmDAO
All Implemented Interfaces:
Serializable, org.europa.together.business.acl.ResourcesDAO, org.europa.together.business.GenericDAO<org.europa.together.domain.acl.ResourcesDO,String>

@Repository @Transactional public class ResourcesHbmDAO extends org.europa.together.application.GenericHbmDAO<org.europa.together.domain.acl.ResourcesDO,String> implements org.europa.together.business.acl.ResourcesDAO
Implementation of the ResourcesDAO.
See Also:
  • Field Summary

    Fields inherited from class org.europa.together.application.GenericHbmDAO

    mainEntityManagerFactory

    Fields inherited from interface org.europa.together.business.GenericDAO

    FEATURE_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String resourceID)
    Deprecated.
    boolean
    delete(org.europa.together.domain.acl.ResourcesDO resource)
     
    org.europa.together.domain.acl.ResourcesDO
    find(String resource)
     
    org.europa.together.domain.acl.ResourcesDO
    find(String resource, String view)
     
    List<org.europa.together.domain.acl.ResourcesDO>
     
    List<org.europa.together.domain.acl.ResourcesDO>
     
    void
    update(String id, org.europa.together.domain.acl.ResourcesDO object)
    Deprecated.
    void
    update(org.europa.together.domain.acl.ResourcesDO resource)
     

    Methods inherited from class org.europa.together.application.GenericHbmDAO

    countAllElements, create, deserializeJsonAsList, deserializeJsonAsObject, getPrimaryKeyOfObject, listAllElements, serializeAsJson

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.europa.together.business.GenericDAO

    countAllElements, create, deserializeJsonAsList, deserializeJsonAsObject, getPrimaryKeyOfObject, listAllElements, serializeAsJson
  • Constructor Details

    • ResourcesHbmDAO

      public ResourcesHbmDAO()
      Default Constructor.
  • Method Details

    • update

      @Deprecated public void update(String id, org.europa.together.domain.acl.ResourcesDO object)
      Deprecated.
      Specified by:
      update in interface org.europa.together.business.GenericDAO<org.europa.together.domain.acl.ResourcesDO,String>
      Overrides:
      update in class org.europa.together.application.GenericHbmDAO<org.europa.together.domain.acl.ResourcesDO,String>
    • delete

      @Deprecated public void delete(String resourceID)
      Deprecated.
      Specified by:
      delete in interface org.europa.together.business.GenericDAO<org.europa.together.domain.acl.ResourcesDO,String>
      Overrides:
      delete in class org.europa.together.application.GenericHbmDAO<org.europa.together.domain.acl.ResourcesDO,String>
    • find

      @Transactional(readOnly=true) public org.europa.together.domain.acl.ResourcesDO find(String resource)
      Specified by:
      find in interface org.europa.together.business.GenericDAO<org.europa.together.domain.acl.ResourcesDO,String>
      Overrides:
      find in class org.europa.together.application.GenericHbmDAO<org.europa.together.domain.acl.ResourcesDO,String>
    • find

      @Transactional(readOnly=true) public org.europa.together.domain.acl.ResourcesDO find(String resource, String view)
      Specified by:
      find in interface org.europa.together.business.acl.ResourcesDAO
    • update

      public void update(org.europa.together.domain.acl.ResourcesDO resource) throws jakarta.persistence.EntityNotFoundException
      Specified by:
      update in interface org.europa.together.business.acl.ResourcesDAO
      Throws:
      jakarta.persistence.EntityNotFoundException
    • delete

      public boolean delete(org.europa.together.domain.acl.ResourcesDO resource) throws jakarta.persistence.EntityNotFoundException
      Specified by:
      delete in interface org.europa.together.business.acl.ResourcesDAO
      Throws:
      jakarta.persistence.EntityNotFoundException
    • listResourcesOfSameType

      @Transactional(readOnly=true) public List<org.europa.together.domain.acl.ResourcesDO> listResourcesOfSameType(String resource)
      Specified by:
      listResourcesOfSameType in interface org.europa.together.business.acl.ResourcesDAO
    • listProtectedResources

      @Transactional(readOnly=true) public List<org.europa.together.domain.acl.ResourcesDO> listProtectedResources()
      Specified by:
      listProtectedResources in interface org.europa.together.business.acl.ResourcesDAO