You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2014/04/24 04:12:14 UTC

[jira] [Created] (AMBARI-5554) Ambari Views : Persistence Data Store

Tom Beerbower created AMBARI-5554:
-------------------------------------

             Summary: Ambari Views : Persistence Data Store
                 Key: AMBARI-5554
                 URL: https://issues.apache.org/jira/browse/AMBARI-5554
             Project: Ambari
          Issue Type: Task
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower


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

{code}
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;
}

{code}

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



--
This message was sent by Atlassian JIRA
(v6.2#6252)