Class DefaultIndexNameGenerator
java.lang.Object
ac.simons.neo4j.migrations.annotations.proc.impl.DefaultIndexNameGenerator
- All Implemented Interfaces:
IndexNameGenerator
- Since:
- 1.11.0
- Author:
- Michael J. Simons
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateName(Index.Type type, Collection<PropertyType<?>> properties) Generates a name for an index with the giventypefor the given list ofproperties.default StringgenerateName(String type, Collection<PropertyType<?>> properties) Generate a name for this item.
-
Constructor Details
-
DefaultIndexNameGenerator
public DefaultIndexNameGenerator()
-
-
Method Details
-
generateName
Description copied from interface:IndexNameGeneratorGenerates a name for an index with the giventypefor the given list ofproperties.- Specified by:
generateNamein interfaceIndexNameGenerator- Parameters:
type- The type of the indexproperties- The properties to create the index for. All properties will have the same owner.- Returns:
- A valid index name
-
generateName
Generate a name for this item.- Parameters:
type- The type of the itemproperties- The items properties- Returns:
- A generated, stable name
-