[
https://issues.apache.org/jira/browse/AMBARI-5554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tom Beerbower resolved AMBARI-5554.
-----------------------------------
Resolution: Fixed
> 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)