Class DefaultIndexNameGenerator

java.lang.Object
ac.simons.neo4j.migrations.annotations.proc.impl.DefaultIndexNameGenerator
All Implemented Interfaces:
IndexNameGenerator

public class DefaultIndexNameGenerator extends Object implements IndexNameGenerator
Since:
1.11.0
Author:
Michael J. Simons
  • Constructor Details

    • DefaultIndexNameGenerator

      public DefaultIndexNameGenerator()
  • Method Details

    • generateName

      public String generateName(Index.Type type, Collection<PropertyType<?>> properties)
      Description copied from interface: IndexNameGenerator
      Generates a name for an index with the given type for the given list of properties.
      Specified by:
      generateName in interface IndexNameGenerator
      Parameters:
      type - The type of the index
      properties - The properties to create the index for. All properties will have the same owner.
      Returns:
      A valid index name
    • generateName

      default String generateName(String type, Collection<PropertyType<?>> properties)
      Generate a name for this item.
      Parameters:
      type - The type of the item
      properties - The items properties
      Returns:
      A generated, stable name