public class

JavaBeansUtil

extends Object
java.lang.Object
   ↳ org.mybatis.generator.internal.util.JavaBeansUtil

Summary

Public Methods
static String getCamelCaseString(String inputString, boolean firstCharacterUppercase)
static String getGetterMethodName(String property, FullyQualifiedJavaType fullyQualifiedJavaType)
JavaBeans rules: eMail > geteMail() firstName > getFirstName() URL > getURL() XAxis > getXAxis() a > getA() B > invalid - this method assumes that this is not the case.
static String getSetterMethodName(String property)
JavaBeans rules: eMail > seteMail() firstName > setFirstName() URL > setURL() XAxis > setXAxis() a > setA() B > invalid - this method assumes that this is not the case.
static String getValidPropertyName(String inputString)
This method ensures that the specified input string is a valid Java property name.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static String getCamelCaseString (String inputString, boolean firstCharacterUppercase)

public static String getGetterMethodName (String property, FullyQualifiedJavaType fullyQualifiedJavaType)

JavaBeans rules: eMail > geteMail() firstName > getFirstName() URL > getURL() XAxis > getXAxis() a > getA() B > invalid - this method assumes that this is not the case. Call getValidPropertyName first. Yaxis > invalid - this method assumes that this is not the case. Call getValidPropertyName first.

Returns
  • the getter method name

public static String getSetterMethodName (String property)

JavaBeans rules: eMail > seteMail() firstName > setFirstName() URL > setURL() XAxis > setXAxis() a > setA() B > invalid - this method assumes that this is not the case. Call getValidPropertyName first. Yaxis > invalid - this method assumes that this is not the case. Call getValidPropertyName first.

Returns
  • the setter method name

public static String getValidPropertyName (String inputString)

This method ensures that the specified input string is a valid Java property name. The rules are as follows: 1. If the first character is lower case, then OK 2. If the first two characters are upper case, then OK 3. If the first character is upper case, and the second character is lower case, then the first character should be made lower case eMail > eMail firstName > firstName URL > URL XAxis > XAxis a > a B > b Yaxis > yaxis

Returns
  • the valid property name