|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mybatis.guice.configuration.ConfigurationProvider
@Singleton public final class ConfigurationProvider
Provides the myBatis Configuration.
| Constructor Summary | |
|---|---|
ConfigurationProvider(org.apache.ibatis.mapping.Environment environment)
|
|
| Method Summary | |
|---|---|
org.apache.ibatis.session.Configuration |
get()
|
void |
registerTypeHandlers(Map<Class<?>,org.apache.ibatis.type.TypeHandler> typeHandlers)
Adds the user defined type handlers to the myBatis Configuration. |
protected void |
setAggressiveLazyLoading(boolean aggressiveLazyLoading)
|
protected void |
setAutoMappingBehavior(org.apache.ibatis.session.AutoMappingBehavior autoMappingBehavior)
|
protected void |
setCacheEnabled(boolean cacheEnabled)
|
protected void |
setDefaultExecutorType(org.apache.ibatis.session.ExecutorType defaultExecutorType)
|
void |
setEnvironment(org.apache.ibatis.mapping.Environment environment)
Deprecated. |
void |
setFailFast(boolean failFast)
Flag to check all statements are completed. |
void |
setLazyLoadingEnabled(boolean lazyLoadingEnabled)
|
void |
setMapperClasses(Set<Class<?>> mapperClasses)
Adds the user defined Mapper classes to the myBatis Configuration. |
protected void |
setMultipleResultSetsEnabled(boolean multipleResultSetsEnabled)
|
void |
setObjectFactory(org.apache.ibatis.reflection.factory.ObjectFactory objectFactory)
Adds the user defined ObjectFactory to the myBatis Configuration. |
void |
setPlugins(Set<org.apache.ibatis.plugin.Interceptor> plugins)
Registers the user defined plugins interceptors to the myBatis Configuration. |
void |
setTypeAliases(Map<String,Class<?>> typeAliases)
Adds the user defined type aliases to the myBatis Configuration. |
protected void |
setUseColumnLabel(boolean useColumnLabel)
|
protected void |
setUseGeneratedKeys(boolean useGeneratedKeys)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public ConfigurationProvider(org.apache.ibatis.mapping.Environment environment)
| Method Detail |
|---|
@Deprecated public void setEnvironment(org.apache.ibatis.mapping.Environment environment)
public void setLazyLoadingEnabled(boolean lazyLoadingEnabled)
protected void setAggressiveLazyLoading(boolean aggressiveLazyLoading)
protected void setMultipleResultSetsEnabled(boolean multipleResultSetsEnabled)
protected void setUseGeneratedKeys(boolean useGeneratedKeys)
protected void setUseColumnLabel(boolean useColumnLabel)
protected void setCacheEnabled(boolean cacheEnabled)
protected void setDefaultExecutorType(org.apache.ibatis.session.ExecutorType defaultExecutorType)
protected void setAutoMappingBehavior(org.apache.ibatis.session.AutoMappingBehavior autoMappingBehavior)
public void setFailFast(boolean failFast)
failFast - flag to check all statements are completedpublic void setTypeAliases(Map<String,Class<?>> typeAliases)
typeAliases - the user defined type aliases.@Inject(optional=true) public void registerTypeHandlers(Map<Class<?>,org.apache.ibatis.type.TypeHandler> typeHandlers)
typeHandlers - the user defined type handlers.public void setMapperClasses(Set<Class<?>> mapperClasses)
mapperClasses - the user defined Mapper classes.public void setObjectFactory(org.apache.ibatis.reflection.factory.ObjectFactory objectFactory)
objectFactory - public void setPlugins(Set<org.apache.ibatis.plugin.Interceptor> plugins)
plugins - the user defined plugins interceptors.public org.apache.ibatis.session.Configuration get()
get in interface javax.inject.Provider<org.apache.ibatis.session.Configuration>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||