Class RootClassInfo

java.lang.Object
org.mybatis.generator.codegen.RootClassInfo

public class RootClassInfo extends Object
Holds information about a class (uses the JavaBeans Introspector to find properties).
  • Field Details

    • rootClassInfoMap

      private static final Map<String,RootClassInfo> rootClassInfoMap
    • propertyDescriptors

      private PropertyDescriptor[] propertyDescriptors
    • className

      private final String className
    • warnings

      private final List<String> warnings
    • genericMode

      private boolean genericMode
  • Constructor Details

    • RootClassInfo

      private RootClassInfo(String className, List<String> warnings)
  • Method Details

    • getInstance

      public static RootClassInfo getInstance(String className, List<String> warnings)
    • reset

      public static void reset()
      Clears the internal map containing root class info. This method should be called at the beginning of a generation run to clear the cached root class info in case there has been a change. For example, when using the eclipse launcher, the cache would be kept until eclipse was restarted.
    • containsProperty

      public boolean containsProperty(IntrospectedColumn introspectedColumn)
    • hasProperty

      private boolean hasProperty(String propertyName, String propertyType, PropertyDescriptor propertyDescriptor)
    • hasCorrectName

      private boolean hasCorrectName(String propertyName, PropertyDescriptor propertyDescriptor)
    • isProperType

      private boolean isProperType(String propertyName, String propertyType, PropertyDescriptor propertyDescriptor)
    • hasGetter

      private boolean hasGetter(String propertyName, PropertyDescriptor propertyDescriptor)
    • hasSetter

      private boolean hasSetter(String propertyName, PropertyDescriptor propertyDescriptor)