public class JavaBeansUtil
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
getCamelCaseString(java.lang.String inputString,
boolean firstCharacterUppercase)
Gets the camel case string.
|
static java.lang.String |
getGetterMethodName(java.lang.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 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 java.lang.String |
getSetterMethodName(java.lang.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 java.lang.String |
getValidPropertyName(java.lang.String inputString)
This method ensures that the specified input string is a valid Java property name.
|
public static java.lang.String getGetterMethodName(java.lang.String property,
FullyQualifiedJavaType fullyQualifiedJavaType)
property - the propertyfullyQualifiedJavaType - the fully qualified java typepublic static java.lang.String getSetterMethodName(java.lang.String property)
property - the propertypublic static java.lang.String getCamelCaseString(java.lang.String inputString,
boolean firstCharacterUppercase)
inputString - the input stringfirstCharacterUppercase - the first character uppercasepublic static java.lang.String getValidPropertyName(java.lang.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 tableCopyright © 2018. All Rights Reserved.