Package org.mybatis.generator.codegen
Class RootClassInfo
java.lang.Object
org.mybatis.generator.codegen.RootClassInfo
Holds information about a class (uses the JavaBeans Introspector to find properties).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate booleanprivate PropertyDescriptor[]private static final Map<String, RootClassInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsProperty(IntrospectedColumn introspectedColumn) static RootClassInfogetInstance(String className, List<String> warnings) private booleanhasCorrectName(String propertyName, PropertyDescriptor propertyDescriptor) private booleanhasGetter(String propertyName, PropertyDescriptor propertyDescriptor) private booleanhasProperty(String propertyName, String propertyType, PropertyDescriptor propertyDescriptor) private booleanhasSetter(String propertyName, PropertyDescriptor propertyDescriptor) private booleanisProperType(String propertyName, String propertyType, PropertyDescriptor propertyDescriptor) static voidreset()Clears the internal map containing root class info.
-
Field Details
-
rootClassInfoMap
-
propertyDescriptors
-
className
-
warnings
-
genericMode
private boolean genericMode
-
-
Constructor Details
-
RootClassInfo
-
-
Method Details
-
getInstance
-
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
-
hasProperty
private boolean hasProperty(String propertyName, String propertyType, PropertyDescriptor propertyDescriptor) -
hasCorrectName
-
isProperType
private boolean isProperType(String propertyName, String propertyType, PropertyDescriptor propertyDescriptor) -
hasGetter
-
hasSetter
-