org.springframework.data.neo4j.support.index
Class IndexProviderImpl
java.lang.Object
org.springframework.data.neo4j.support.index.IndexProviderImpl
- All Implemented Interfaces:
- IndexProvider
public class IndexProviderImpl
- extends Object
- implements IndexProvider
- Since:
- 17.10.11
- Author:
- mh
Method Summary |
<T extends org.neo4j.graphdb.PropertyContainer>
org.neo4j.graphdb.index.Index<T> |
|
createIndex(Class<T> type,
String indexName,
IndexType fullText)
|
String |
createIndexValueForType(Object value)
adjust your indexName for the "__types__" indices |
String |
customizeIndexName(String indexName,
Class<?> type)
possibility to do something with the high level index name |
<S extends org.neo4j.graphdb.PropertyContainer,T>
org.neo4j.graphdb.index.Index<S> |
|
getIndex(Class<T> type)
|
<S extends org.neo4j.graphdb.PropertyContainer,T>
org.neo4j.graphdb.index.Index<S> |
|
getIndex(Class<T> type,
String indexName)
|
<S extends org.neo4j.graphdb.PropertyContainer,T>
org.neo4j.graphdb.index.Index<S> |
|
getIndex(Class<T> type,
String indexName,
IndexType indexType)
|
<S extends org.neo4j.graphdb.PropertyContainer>
org.neo4j.graphdb.index.Index<S> |
|
getIndex(Neo4jPersistentProperty property,
Class<?> instanceType)
|
<T extends org.neo4j.graphdb.PropertyContainer>
org.neo4j.graphdb.index.Index<T> |
|
getIndex(String indexName)
|
boolean |
isNode(Class<? extends org.neo4j.graphdb.PropertyContainer> type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexProviderImpl
public IndexProviderImpl(Neo4jMappingContext mappingContext,
GraphDatabase graphDatabase)
getIndex
public <S extends org.neo4j.graphdb.PropertyContainer,T> org.neo4j.graphdb.index.Index<S> getIndex(Class<T> type)
- Specified by:
getIndex
in interface IndexProvider
getIndex
public <S extends org.neo4j.graphdb.PropertyContainer,T> org.neo4j.graphdb.index.Index<S> getIndex(Class<T> type,
String indexName)
- Specified by:
getIndex
in interface IndexProvider
getIndex
public <S extends org.neo4j.graphdb.PropertyContainer,T> org.neo4j.graphdb.index.Index<S> getIndex(Class<T> type,
String indexName,
IndexType indexType)
- Specified by:
getIndex
in interface IndexProvider
getIndex
public <T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> getIndex(String indexName)
- Specified by:
getIndex
in interface IndexProvider
isNode
public boolean isNode(Class<? extends org.neo4j.graphdb.PropertyContainer> type)
- Specified by:
isNode
in interface IndexProvider
createIndex
public <T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> createIndex(Class<T> type,
String indexName,
IndexType fullText)
- Specified by:
createIndex
in interface IndexProvider
getIndex
public <S extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<S> getIndex(Neo4jPersistentProperty property,
Class<?> instanceType)
- Specified by:
getIndex
in interface IndexProvider
createIndexValueForType
public String createIndexValueForType(Object value)
- Description copied from interface:
IndexProvider
- adjust your indexName for the "__types__" indices
- Specified by:
createIndexValueForType
in interface IndexProvider
- Returns:
- prefixed indexName for Type
customizeIndexName
public String customizeIndexName(String indexName,
Class<?> type)
- Description copied from interface:
IndexProvider
- possibility to do something with the high level index name
- Specified by:
customizeIndexName
in interface IndexProvider
Copyright © 2013 SpringSource. All Rights Reserved.