|
Spring Data Neo4j | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeRepresentationStrategy<S extends org.neo4j.graphdb.PropertyContainer>
Strategy to handle representation of java types in the graph. Possible implementation are type/class nodes (forming an inheritance chain) that is linked to from the instance and keeps a count of the instances. Another approach could use indexing and a type property on the instance fields. Contains a callback on entity creation that can setup the type representation. The finder methods are delegated to for the appropriate calls for the strategy set for the datastore. TODO use SDC TypeMapper implementations to delegate to for concrete implementation
Method Summary | ||
---|---|---|
long |
count(Class<?> entityClass)
|
|
|
findAll(Class<U> clazz)
|
|
|
getJavaType(S state)
|
|
void |
postEntityCreation(S state,
Class<?> type)
Callback for setting up and/or storing type information after creation. |
|
void |
preEntityRemoval(S state)
Callback for cleaning up type information before removal. |
Method Detail |
---|
void postEntityCreation(S state, Class<?> type)
state
- Backing state of entity being createdtype
- Type of entity being created<U> org.neo4j.helpers.collection.ClosableIterable<S> findAll(Class<U> clazz)
clazz
- Type whose instances should be iterated over
long count(Class<?> entityClass)
entityClass
-
<U> Class<U> getJavaType(S state)
state
-
void preEntityRemoval(S state)
state
- Backing state of entity being removed
|
Spring Data Neo4j | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |