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
-
Method Summary
Modifier and TypeMethodDescriptiongenerateName
(Index.Type type, Collection<PropertyType<?>> properties) Generates a name for an index with the giventype
for the given list ofproperties
.default String
generateName
(String type, Collection<PropertyType<?>> properties) Generate a name for this item.
-
Constructor Details
-
DefaultIndexNameGenerator
public DefaultIndexNameGenerator()
-
-
Method Details
-
generateName
Description copied from interface:IndexNameGenerator
Generates a name for an index with the giventype
for the given list ofproperties
.- Specified by:
generateName
in 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
-