org.usergrid.persistence
Interface RelationManager
- All Known Implementing Classes:
- RelationManagerImpl
public interface RelationManager
Method Summary |
Entity |
addToCollection(String collectionName,
EntityRef itemRef)
|
Entity |
addToCollections(List<EntityRef> owners,
String collectionName)
|
boolean |
connectionExists(ConnectionRef connectionRef)
|
ConnectionRef |
connectionRef(ConnectedEntityRef... connections)
|
ConnectionRef |
connectionRef(String connectionType,
EntityRef connectedEntityRef)
|
ConnectionRef |
connectionRef(String pairedConnectionType,
EntityRef pairedEntity,
String connectionType,
EntityRef connectedEntityRef)
|
void |
copyRelationships(String srcRelationName,
EntityRef dstEntityRef,
String dstRelationName)
|
ConnectionRef |
createConnection(ConnectedEntityRef... connections)
|
ConnectionRef |
createConnection(ConnectionRef connection)
|
ConnectionRef |
createConnection(String connectionType,
EntityRef connectedEntityRef)
|
ConnectionRef |
createConnection(String pairedConnectionType,
EntityRef pairedEntity,
String connectionType,
EntityRef connectedEntityRef)
|
Entity |
createItemInCollection(String collectionName,
String itemType,
Map<String,Object> properties)
|
void |
deleteConnection(ConnectionRef connectionRef)
|
Map<String,Object> |
getAssociatedProperties(AssociatedEntityRef associatedEntityRef)
|
Object |
getAssociatedProperty(AssociatedEntityRef associatedEntityRef,
String propertyName)
|
Results |
getCollection(String collectionName,
Query query,
Results.Level resultsLevel)
|
Results |
getCollection(String collectionName,
UUID startResult,
int count,
Results.Level resultsLevel,
boolean reversed)
|
Set<String> |
getCollectionIndexes(String collectionName)
|
Set<String> |
getCollections()
|
long |
getCollectionSize(String collectionName)
|
Results |
getConnectedEntities(String connectionType,
String connectedEntityType,
Results.Level resultsLevel)
|
Results |
getConnectingEntities(String connectionType,
String connectedEntityType,
Results.Level resultsLevel)
|
Set<String> |
getConnectionIndexes(String connectionType)
|
List<ConnectedEntityRef> |
getConnections(Query query)
|
Set<String> |
getConnectionTypes()
|
Set<String> |
getConnectionTypes(boolean filterConnection)
|
Set<String> |
getConnectionTypes(UUID connectedEntityId)
|
Map<String,Map<UUID,Set<String>>> |
getOwners()
|
void |
removeFromCollection(String collectionName,
EntityRef itemRef)
|
Results |
searchCollection(String collectionName,
Query query)
|
Results |
searchConnectedEntities(Query query)
|
List<ConnectionRef> |
searchConnections(Query query)
|
void |
setAssociatedProperty(AssociatedEntityRef associatedEntityRef,
String propertyName,
Object propertyValue)
|
getCollectionIndexes
Set<String> getCollectionIndexes(String collectionName)
throws Exception
- Throws:
Exception
getOwners
Map<String,Map<UUID,Set<String>>> getOwners()
throws Exception
- Throws:
Exception
getCollections
Set<String> getCollections()
throws Exception
- Throws:
Exception
getCollection
Results getCollection(String collectionName,
UUID startResult,
int count,
Results.Level resultsLevel,
boolean reversed)
throws Exception
- Throws:
Exception
getCollection
Results getCollection(String collectionName,
Query query,
Results.Level resultsLevel)
throws Exception
- Throws:
Exception
addToCollection
Entity addToCollection(String collectionName,
EntityRef itemRef)
throws Exception
- Throws:
Exception
addToCollections
Entity addToCollections(List<EntityRef> owners,
String collectionName)
throws Exception
- Throws:
Exception
createItemInCollection
Entity createItemInCollection(String collectionName,
String itemType,
Map<String,Object> properties)
throws Exception
- Throws:
Exception
removeFromCollection
void removeFromCollection(String collectionName,
EntityRef itemRef)
throws Exception
- Throws:
Exception
copyRelationships
void copyRelationships(String srcRelationName,
EntityRef dstEntityRef,
String dstRelationName)
throws Exception
- Throws:
Exception
searchCollection
Results searchCollection(String collectionName,
Query query)
throws Exception
- Throws:
Exception
createConnection
ConnectionRef createConnection(ConnectionRef connection)
throws Exception
- Throws:
Exception
createConnection
ConnectionRef createConnection(String connectionType,
EntityRef connectedEntityRef)
throws Exception
- Throws:
Exception
createConnection
ConnectionRef createConnection(String pairedConnectionType,
EntityRef pairedEntity,
String connectionType,
EntityRef connectedEntityRef)
throws Exception
- Throws:
Exception
createConnection
ConnectionRef createConnection(ConnectedEntityRef... connections)
throws Exception
- Throws:
Exception
connectionRef
ConnectionRef connectionRef(String connectionType,
EntityRef connectedEntityRef)
throws Exception
- Throws:
Exception
connectionRef
ConnectionRef connectionRef(String pairedConnectionType,
EntityRef pairedEntity,
String connectionType,
EntityRef connectedEntityRef)
throws Exception
- Throws:
Exception
connectionRef
ConnectionRef connectionRef(ConnectedEntityRef... connections)
deleteConnection
void deleteConnection(ConnectionRef connectionRef)
throws Exception
- Throws:
Exception
connectionExists
boolean connectionExists(ConnectionRef connectionRef)
throws Exception
- Throws:
Exception
getConnectionTypes
Set<String> getConnectionTypes(UUID connectedEntityId)
throws Exception
- Throws:
Exception
getConnectionTypes
Set<String> getConnectionTypes()
throws Exception
- Throws:
Exception
getConnectionTypes
Set<String> getConnectionTypes(boolean filterConnection)
throws Exception
- Throws:
Exception
getConnectedEntities
Results getConnectedEntities(String connectionType,
String connectedEntityType,
Results.Level resultsLevel)
throws Exception
- Throws:
Exception
getConnectingEntities
Results getConnectingEntities(String connectionType,
String connectedEntityType,
Results.Level resultsLevel)
throws Exception
- Throws:
Exception
getConnections
List<ConnectedEntityRef> getConnections(Query query)
throws Exception
- Throws:
Exception
searchConnectedEntities
Results searchConnectedEntities(Query query)
throws Exception
- Throws:
Exception
searchConnections
List<ConnectionRef> searchConnections(Query query)
throws Exception
- Throws:
Exception
getConnectionIndexes
Set<String> getConnectionIndexes(String connectionType)
throws Exception
- Throws:
Exception
getAssociatedProperty
Object getAssociatedProperty(AssociatedEntityRef associatedEntityRef,
String propertyName)
throws Exception
- Throws:
Exception
getAssociatedProperties
Map<String,Object> getAssociatedProperties(AssociatedEntityRef associatedEntityRef)
throws Exception
- Throws:
Exception
setAssociatedProperty
void setAssociatedProperty(AssociatedEntityRef associatedEntityRef,
String propertyName,
Object propertyValue)
throws Exception
- Throws:
Exception
getCollectionSize
long getCollectionSize(String collectionName)
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.