ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-5554) Ambari Views : Persistence Data Store
Date Thu, 24 Apr 2014 02:12:14 GMT
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)

Mime
View raw message