|
Spring Data Graph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.graph.neo4j.support.GraphDatabaseContext
public class GraphDatabaseContext
Mediator class for the graph related services like the GraphDatabaseService
, the used
TypeRepresentationStrategy
, entity instantiators for nodes and relationships as well as a spring conversion service.
It delegates the appropriate methods to those services. The services are not intended to be accessible from outside.
Field Summary | |
---|---|
static String |
DEFAULT_NODE_INDEX_NAME
|
static String |
DEFAULT_RELATIONSHIP_INDEX_NAME
|
Constructor Summary | |
---|---|
GraphDatabaseContext()
|
Method Summary | ||
---|---|---|
org.neo4j.graphdb.Transaction |
beginTx()
Delegates to GraphDatabaseService |
|
|
count(Class<T> entityClass)
|
|
|
createEntityFromState(S state,
Class<T> type)
|
|
|
createEntityFromStoredType(S state)
|
|
org.neo4j.graphdb.Node |
createNode()
Delegates to GraphDatabaseService |
|
|
findAll(Class<T> entityClass)
|
|
Iterable<? extends org.neo4j.graphdb.Node> |
getAllNodes()
Delegates to GraphDatabaseService |
|
ConversionService |
getConversionService()
|
|
org.neo4j.graphdb.GraphDatabaseService |
getGraphDatabaseService()
|
|
|
getIndex(Class<T> type)
|
|
|
getIndex(Class<T> type,
String indexName)
|
|
|
getIndex(Class<T> type,
String indexName,
boolean fullText)
|
|
org.neo4j.graphdb.Node |
getNodeById(long nodeId)
Delegates to GraphDatabaseService |
|
NodeTypeRepresentationStrategy |
getNodeTypeRepresentationStrategy()
|
|
org.neo4j.graphdb.Node |
getReferenceNode()
Delegates to GraphDatabaseService |
|
org.neo4j.graphdb.Relationship |
getRelationshipById(long id)
Delegates to GraphDatabaseService |
|
RelationshipTypeRepresentationStrategy |
getRelationshipTypeRepresentationStrategy()
|
|
javax.validation.Validator |
getValidator()
|
|
|
postEntityCreation(S node,
Class<T> entityClass)
|
|
|
projectTo(GraphBacked<S> entity,
Class<T> targetType)
|
|
void |
removeNodeEntity(NodeBacked entity)
|
|
void |
removeRelationshipEntity(RelationshipBacked entity)
|
|
void |
setConversionService(ConversionService conversionService)
|
|
void |
setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)
|
|
void |
setNodeTypeRepresentationStrategy(NodeTypeRepresentationStrategy nodeTypeRepresentationStrategy)
|
|
void |
setRelationshipTypeRepresentationStrategy(RelationshipTypeRepresentationStrategy relationshipTypeRepresentationStrategy)
|
|
void |
setValidator(javax.validation.Validator validatorFactory)
|
|
boolean |
transactionIsRunning()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_NODE_INDEX_NAME
public static final String DEFAULT_RELATIONSHIP_INDEX_NAME
Constructor Detail |
---|
public GraphDatabaseContext()
Method Detail |
---|
public <S extends org.neo4j.graphdb.PropertyContainer,T extends GraphBacked<S>> org.neo4j.graphdb.index.Index<S> getIndex(Class<T> type)
public <S extends org.neo4j.graphdb.PropertyContainer,T extends GraphBacked<S>> org.neo4j.graphdb.index.Index<S> getIndex(Class<T> type, String indexName)
public <S extends org.neo4j.graphdb.PropertyContainer,T extends GraphBacked<S>> org.neo4j.graphdb.index.Index<S> getIndex(Class<T> type, String indexName, boolean fullText)
public boolean transactionIsRunning()
public <T extends GraphBacked<? extends org.neo4j.graphdb.PropertyContainer>> org.neo4j.helpers.collection.ClosableIterable<T> findAll(Class<T> entityClass)
public <T extends GraphBacked<? extends org.neo4j.graphdb.PropertyContainer>> long count(Class<T> entityClass)
public <S extends org.neo4j.graphdb.PropertyContainer,T extends GraphBacked<S>> T createEntityFromStoredType(S state)
public <S extends org.neo4j.graphdb.PropertyContainer,T extends GraphBacked<S>> T createEntityFromState(S state, Class<T> type)
public <S extends org.neo4j.graphdb.PropertyContainer,T extends GraphBacked<S>> T projectTo(GraphBacked<S> entity, Class<T> targetType)
public <S extends org.neo4j.graphdb.PropertyContainer,T extends GraphBacked<S>> void postEntityCreation(S node, Class<T> entityClass)
public void removeNodeEntity(NodeBacked entity)
public void removeRelationshipEntity(RelationshipBacked entity)
public org.neo4j.graphdb.Node createNode()
GraphDatabaseService
public org.neo4j.graphdb.Node getNodeById(long nodeId)
GraphDatabaseService
public org.neo4j.graphdb.Node getReferenceNode()
GraphDatabaseService
public Iterable<? extends org.neo4j.graphdb.Node> getAllNodes()
GraphDatabaseService
public org.neo4j.graphdb.Transaction beginTx()
GraphDatabaseService
public org.neo4j.graphdb.Relationship getRelationshipById(long id)
GraphDatabaseService
public org.neo4j.graphdb.GraphDatabaseService getGraphDatabaseService()
public void setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)
public NodeTypeRepresentationStrategy getNodeTypeRepresentationStrategy()
public void setNodeTypeRepresentationStrategy(NodeTypeRepresentationStrategy nodeTypeRepresentationStrategy)
public RelationshipTypeRepresentationStrategy getRelationshipTypeRepresentationStrategy()
public void setRelationshipTypeRepresentationStrategy(RelationshipTypeRepresentationStrategy relationshipTypeRepresentationStrategy)
public ConversionService getConversionService()
public void setConversionService(ConversionService conversionService)
public javax.validation.Validator getValidator()
public void setValidator(javax.validation.Validator validatorFactory)
|
Spring Data Graph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |