public class MybatisObjectFactory extends Object
Description:
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addExternalClassLoader(ClassLoader classLoader)
Adds a custom classloader to the collection of classloaders searched for "external" classes.
|
static org.mybatis.generator.api.CommentGenerator |
createCommentGenerator(org.mybatis.generator.config.Context context) |
static org.mybatis.generator.api.ConnectionFactory |
createConnectionFactory(org.mybatis.generator.config.Context context) |
static Object |
createExternalObject(String type) |
static Object |
createInternalObject(String type) |
static org.mybatis.generator.api.IntrospectedColumn |
createIntrospectedColumn(org.mybatis.generator.config.Context context) |
static org.mybatis.generator.api.IntrospectedTable |
createIntrospectedTable(org.mybatis.generator.config.TableConfiguration tableConfiguration,
org.mybatis.generator.api.FullyQualifiedTable table,
org.mybatis.generator.config.Context context) |
static org.mybatis.generator.api.IntrospectedTable |
createIntrospectedTableForValidation(org.mybatis.generator.config.Context context)
Creates an introspected table implementation that is only usable for validation (i.e. for a context
to determine if the target is ibatis2 or mybatis3).
|
static org.mybatis.generator.api.JavaFormatter |
createJavaFormatter(org.mybatis.generator.config.Context context) |
static org.mybatis.generator.api.JavaTypeResolver |
createJavaTypeResolver(org.mybatis.generator.config.Context context,
List<String> warnings) |
static org.mybatis.generator.api.Plugin |
createPlugin(org.mybatis.generator.config.Context context,
org.mybatis.generator.config.PluginConfiguration pluginConfiguration) |
static org.mybatis.generator.api.XmlFormatter |
createXmlFormatter(org.mybatis.generator.config.Context context) |
static Class<?> |
externalClassForName(String type)
Returns a class loaded from the context classloader, or the classloader supplied by a client.
|
static URL |
getResource(String resource) |
static Class<?> |
internalClassForName(String type) |
static void |
reset()
Clears the class loaders.
|
public static void reset()
public static void addExternalClassLoader(ClassLoader classLoader)
classLoader - the class loaderpublic static Class<?> externalClassForName(String type) throws ClassNotFoundException
type - the typeClassNotFoundException - the class not found exceptionpublic static Class<?> internalClassForName(String type) throws ClassNotFoundException
public static org.mybatis.generator.api.JavaTypeResolver createJavaTypeResolver(org.mybatis.generator.config.Context context,
List<String> warnings)
public static org.mybatis.generator.api.Plugin createPlugin(org.mybatis.generator.config.Context context,
org.mybatis.generator.config.PluginConfiguration pluginConfiguration)
public static org.mybatis.generator.api.CommentGenerator createCommentGenerator(org.mybatis.generator.config.Context context)
public static org.mybatis.generator.api.ConnectionFactory createConnectionFactory(org.mybatis.generator.config.Context context)
public static org.mybatis.generator.api.JavaFormatter createJavaFormatter(org.mybatis.generator.config.Context context)
public static org.mybatis.generator.api.XmlFormatter createXmlFormatter(org.mybatis.generator.config.Context context)
public static org.mybatis.generator.api.IntrospectedTable createIntrospectedTable(org.mybatis.generator.config.TableConfiguration tableConfiguration,
org.mybatis.generator.api.FullyQualifiedTable table,
org.mybatis.generator.config.Context context)
public static org.mybatis.generator.api.IntrospectedTable createIntrospectedTableForValidation(org.mybatis.generator.config.Context context)
context - the contextpublic static org.mybatis.generator.api.IntrospectedColumn createIntrospectedColumn(org.mybatis.generator.config.Context context)
Copyright © 2019. All rights reserved.