Class ConvertSnakeCaseToCamelCase

java.lang.Object
com.northconcepts.datapipeline.foundations.tools.ConvertSnakeCaseToCamelCase

public class ConvertSnakeCaseToCamelCase extends Object
Renames schema definitions in place from database-style snake_case names to Java-style camel case.
  • Constructor Details

    • ConvertSnakeCaseToCamelCase

      public ConvertSnakeCaseToCamelCase()
  • Method Details

    • convert

      public static SchemaDef convert(SchemaDef schema)
      Converts the schema name to UpperCamelCase, along with its entities and relationships, in place.
    • convert

      public static EntityDef convert(EntityDef entity)
      Converts the entity and super-entity names to UpperCamelCase, along with the entity's fields and indexes, in place.
    • convert

      public static FieldDef convert(FieldDef field)
      Converts the field name to lowerCamelCase, and a record field's referenced entity name to UpperCamelCase, in place.
    • convert

      public static EntityRelationshipDef convert(EntityRelationshipDef entityRelationship)
    • convert

      public static IndexDef convert(IndexDef index)
      Converts the index name and its field names to lowerCamelCase, in place.
    • convert

      public static IndexFieldDef convert(IndexFieldDef indexField)
      Converts the indexed field's name to lowerCamelCase, in place.