Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5554

Ambari Views : Persistence Data Store

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      The view context will expose a data store object with the following interface ...

      public interface DataStore {
       
        public void store(Object entity) throws PersistenceException;
      
        public void remove(Object entity) throws PersistenceException;
       
        public <T> T find(Class<T> clazz, Object primaryKey) 
          throws PersistenceException;
      
        public <T> Collection<T> findAll(Class<T> clazz, String whereClause) 
          throws PersistenceException;
      }
      
      

      This will allow a view to persist any Java Bean as application data.

      Attachments

        Issue Links

          Activity

            People

              tbeerbower Tom Beerbower
              tbeerbower Tom Beerbower
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: