org.mybatis.generator.internal.types.JavaTypeResolverDefaultImpl Java Examples
The following examples show how to use
org.mybatis.generator.internal.types.JavaTypeResolverDefaultImpl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ObjectFactory.java From mapper-generator-javafx with Apache License 2.0 | 6 votes |
public static JavaTypeResolver createJavaTypeResolver(Context context, List<String> warnings) { JavaTypeResolverConfiguration config = context .getJavaTypeResolverConfiguration(); String type; if (config != null && config.getConfigurationType() != null) { type = config.getConfigurationType(); if ("DEFAULT".equalsIgnoreCase(type)) { type = JavaTypeResolverDefaultImpl.class.getName(); } } else { type = JavaTypeResolverDefaultImpl.class.getName(); } JavaTypeResolver answer = (JavaTypeResolver) createInternalObject(type); answer.setWarnings(warnings); if (config != null) { answer.addConfigurationProperties(config.getProperties()); } answer.setContext(context); return answer; }
Example #2
Source File: ObjectFactory.java From mybatis-generator-plus with Apache License 2.0 | 6 votes |
public static JavaTypeResolver createJavaTypeResolver(Context context, List<String> warnings) { JavaTypeResolverConfiguration config = context .getJavaTypeResolverConfiguration(); String type; if (config != null && config.getConfigurationType() != null) { type = config.getConfigurationType(); if ("DEFAULT".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = JavaTypeResolverDefaultImpl.class.getName(); } } else { type = JavaTypeResolverDefaultImpl.class.getName(); } JavaTypeResolver answer = (JavaTypeResolver) createInternalObject(type); answer.setWarnings(warnings); if (config != null) { answer.addConfigurationProperties(config.getProperties()); } answer.setContext(context); return answer; }
Example #3
Source File: ObjectFactory.java From mybatis-generator-core-fix with Apache License 2.0 | 5 votes |
/** * Creates a new Object object. * * @param context * the context * @param warnings * the warnings * @return the java type resolver */ public static JavaTypeResolver createJavaTypeResolver(Context context, List<String> warnings) { JavaTypeResolverConfiguration config = context .getJavaTypeResolverConfiguration(); String type; if (config != null && config.getConfigurationType() != null) { type = config.getConfigurationType(); if ("DEFAULT".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = JavaTypeResolverDefaultImpl.class.getName(); } } else { type = JavaTypeResolverDefaultImpl.class.getName(); } JavaTypeResolver answer = (JavaTypeResolver) createInternalObject(type); answer.setWarnings(warnings); if (config != null) { answer.addConfigurationProperties(config.getProperties()); } answer.setContext(context); return answer; }