|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityManagerFactory
The interface class that specifies the operations that can be performed on the Usergrid Datastore. This interface is designed to be implemented by different backends. Although these operations are meant to take advantage of the capabilities of Cassandra, they should be implementable using other relational databases such as MySql or NoSQL databases such as GAE or MongoDB.
Method Summary | |
---|---|
UUID |
createApplication(String organizationName,
String name)
Creates a new application. |
UUID |
createApplication(String organizationName,
String name,
Map<String,Object> properties)
Creates a Application entity. |
boolean |
deleteServiceProperty(String name)
|
Map<String,UUID> |
getApplications()
Returns all the applications in the system. |
EntityManager |
getEntityManager(UUID applicationId)
Gets the entity manager. |
String |
getImpementationDescription()
A string description provided by the implementing class. |
Map<String,String> |
getServiceProperties()
|
UUID |
importApplication(String organization,
UUID applicationId,
String name,
Map<String,Object> properties)
|
UUID |
lookupApplication(String name)
Returns the application id for the application name. |
boolean |
setServiceProperty(String name,
String value)
|
void |
setup()
|
boolean |
updateServiceProperties(Map<String,String> properties)
|
Method Detail |
---|
String getImpementationDescription() throws Exception
Exception
- the exceptionEntityManager getEntityManager(UUID applicationId)
applicationId
- the application id
UUID createApplication(String organizationName, String name) throws Exception
name
- a unique application name.
Exception
- the exceptionUUID createApplication(String organizationName, String name, Map<String,Object> properties) throws Exception
name
- the name of the application to create.properties
- property values to create in the new entity or null.
Exception
- the exceptionUUID importApplication(String organization, UUID applicationId, String name, Map<String,Object> properties) throws Exception
Exception
UUID lookupApplication(String name) throws Exception
name
- a unique application name.
Exception
- the exceptionMap<String,UUID> getApplications() throws Exception
Exception
- the exceptionvoid setup() throws Exception
Exception
Map<String,String> getServiceProperties()
boolean updateServiceProperties(Map<String,String> properties)
boolean setServiceProperty(String name, String value)
boolean deleteServiceProperty(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |