Class Naming.Adapter

java.lang.Object
org.seasar.doma.jdbc.Naming.Adapter
All Implemented Interfaces:
Naming
Enclosing interface:
Naming

public static class Naming.Adapter extends Object implements Naming
  • Field Details

    • namingType

      protected final NamingType namingType
  • Method Details

    • apply

      public String apply(NamingType namingType, String text)
      Description copied from interface: Naming
      Applies the naming convention.
      Specified by:
      apply in interface Naming
      Parameters:
      namingType - the naming convention. If this parameter is null, Entity.naming() does not have explicit value.
      text - the text
      Returns:
      the converted text
    • revert

      public String revert(NamingType namingType, String text)
      Description copied from interface: Naming
      Reverts the text to the original as much as possible.
      Specified by:
      revert in interface Naming
      Parameters:
      namingType - the naming convention. If this parameter is null, Entity.naming() does not have explicit value.
      text - the text that is converted by this convention
      Returns:
      the original