public class DataStoreImpl extends Object implements org.apache.ambari.view.DataStore
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAX_ENTITY_FIELD_LENGTH_TOTAL
Max total length of all the fields of an entity.
|
protected static int |
MAX_ENTITY_STRING_FIELD_LENGTH
Max length of entity string field.
|
| Constructor and Description |
|---|
DataStoreImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
find(Class<T> clazz,
Object primaryKey) |
<T> Collection<T> |
findAll(Class<T> clazz,
String whereClause) |
void |
remove(Object entity) |
void |
store(Object entity) |
protected static final int MAX_ENTITY_STRING_FIELD_LENGTH
protected static final int MAX_ENTITY_FIELD_LENGTH_TOTAL
public void store(Object entity) throws org.apache.ambari.view.PersistenceException
store in interface org.apache.ambari.view.DataStoreorg.apache.ambari.view.PersistenceExceptionpublic void remove(Object entity) throws org.apache.ambari.view.PersistenceException
remove in interface org.apache.ambari.view.DataStoreorg.apache.ambari.view.PersistenceExceptionpublic <T> T find(Class<T> clazz, Object primaryKey) throws org.apache.ambari.view.PersistenceException
find in interface org.apache.ambari.view.DataStoreorg.apache.ambari.view.PersistenceExceptionpublic <T> Collection<T> findAll(Class<T> clazz, String whereClause) throws org.apache.ambari.view.PersistenceException
findAll in interface org.apache.ambari.view.DataStoreorg.apache.ambari.view.PersistenceExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.