public class JavaBeansUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getCamelCaseString(String inputString,
boolean firstCharacterUppercase)
特殊符号后第一个字母大写
|
static String |
getGetterMethodName(String property,
FullyQualifiedJavaType fullyQualifiedJavaType)
JavaBeans rules:
eMail > geteMail() firstName > getFirstName() URL $gt; getURL()
XAxis > getXAxis() a > getA() B > invalid - this method assumes
that this is not the case.
|
static Method |
getImportJavaBeansGetter(IntrospectedColumn introspectedColumn,
Context context) |
static Method |
getImportJavaBeansSetter(IntrospectedColumn introspectedColumn,
Context context) |
static Field |
getJavaBeansField(IntrospectedColumn introspectedColumn,
Context context,
IntrospectedTable introspectedTable)
Gets the java beans field.
|
static Method |
getJavaBeansGetter(IntrospectedColumn introspectedColumn,
Context context,
IntrospectedTable introspectedTable)
Gets the java beans getter.
|
static Method |
getJavaBeansSetter(IntrospectedColumn introspectedColumn,
Context context,
IntrospectedTable introspectedTable)
Gets the java beans setter.
|
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.
|
public static String getGetterMethodName(String property, FullyQualifiedJavaType fullyQualifiedJavaType)
property - the propertyfullyQualifiedJavaType - the fully qualified java typepublic static String getSetterMethodName(String property)
property - the propertypublic static String getCamelCaseString(String inputString, boolean firstCharacterUppercase)
inputString - the input stringfirstCharacterUppercase - the first character uppercasepublic static String getValidPropertyName(String inputString)
inputString - the input stringpublic static Method getJavaBeansGetter(IntrospectedColumn introspectedColumn, Context context, IntrospectedTable introspectedTable)
introspectedColumn - the introspected columncontext - the contextintrospectedTable - the introspected tablepublic static Field getJavaBeansField(IntrospectedColumn introspectedColumn, Context context, IntrospectedTable introspectedTable)
introspectedColumn - the introspected columncontext - the contextintrospectedTable - the introspected tablepublic static Method getJavaBeansSetter(IntrospectedColumn introspectedColumn, Context context, IntrospectedTable introspectedTable)
introspectedColumn - the introspected columncontext - the contextintrospectedTable - the introspected tablepublic static Method getImportJavaBeansSetter(IntrospectedColumn introspectedColumn, Context context)
public static Method getImportJavaBeansGetter(IntrospectedColumn introspectedColumn, Context context)
Copyright © 2019. All rights reserved.