com.adaptrex.core.persistence.api
Interface AdaptrexPersistenceManager

All Known Implementing Classes:
CayennePersistenceManager, JPAPersistenceManager

public interface AdaptrexPersistenceManager


Field Summary
static String DEFAULT_NAME
           
 
Method Summary
 ModelInstance createModelInstance(ExtConfig extConfig, Map<String,Object> data)
           
 ModelInstance deleteModelInstance(ExtConfig extConfig, Object id)
           
 ModelInstance deleteModelInstance(ExtConfig extConfig, String key, Object value)
           
 AdaptrexEntityType getAdaptrexEntity(String name)
           
 Object getEntity(Class<?> clazz, Object id)
           
 Object getEntity(Class<?> clazz, String key, Object value)
           
 ModelInstance getModelInstance(ExtConfig extConfig, Object id)
           
 ModelInstance getModelInstance(ExtConfig extConfig, String key, Object value)
           
 String getName()
           
 Object getNativeSession()
           
 AdaptrexStoreData getStoreData(ExtConfig extConfig)
           
 void shutdown()
           
 ModelInstance updateModelInstance(ExtConfig extConfig, Object id, Map<String,Object> data)
           
 ModelInstance updateModelInstance(ExtConfig extConfig, String key, Object value, Map<String,Object> data)
           
 

Field Detail

DEFAULT_NAME

static final String DEFAULT_NAME
See Also:
Constant Field Values
Method Detail

getName

String getName()

getNativeSession

Object getNativeSession()

shutdown

void shutdown()

getEntity

Object getEntity(Class<?> clazz,
                 Object id)

getEntity

Object getEntity(Class<?> clazz,
                 String key,
                 Object value)

getStoreData

AdaptrexStoreData getStoreData(ExtConfig extConfig)

getModelInstance

ModelInstance getModelInstance(ExtConfig extConfig,
                               Object id)
                               throws Exception
Throws:
Exception

getModelInstance

ModelInstance getModelInstance(ExtConfig extConfig,
                               String key,
                               Object value)
                               throws Exception
Throws:
Exception

createModelInstance

ModelInstance createModelInstance(ExtConfig extConfig,
                                  Map<String,Object> data)

updateModelInstance

ModelInstance updateModelInstance(ExtConfig extConfig,
                                  Object id,
                                  Map<String,Object> data)
                                  throws Exception
Throws:
Exception

updateModelInstance

ModelInstance updateModelInstance(ExtConfig extConfig,
                                  String key,
                                  Object value,
                                  Map<String,Object> data)
                                  throws Exception
Throws:
Exception

deleteModelInstance

ModelInstance deleteModelInstance(ExtConfig extConfig,
                                  Object id)
                                  throws Exception
Throws:
Exception

deleteModelInstance

ModelInstance deleteModelInstance(ExtConfig extConfig,
                                  String key,
                                  Object value)
                                  throws Exception
Throws:
Exception

getAdaptrexEntity

AdaptrexEntityType getAdaptrexEntity(String name)


Copyright © 2012 Adaptrex, LLC. All Rights Reserved.