当前位置: 首页>>代码示例>>Java>>正文


Java DatabaseIdProvider类代码示例

本文整理汇总了Java中org.apache.ibatis.mapping.DatabaseIdProvider的典型用法代码示例。如果您正苦于以下问题:Java DatabaseIdProvider类的具体用法?Java DatabaseIdProvider怎么用?Java DatabaseIdProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DatabaseIdProvider类属于org.apache.ibatis.mapping包,在下文中一共展示了DatabaseIdProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: afterPropertiesSet

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
@Override
public void afterPropertiesSet() throws Exception {

    DatabaseIdProvider databaseIdProvider = new VendorDatabaseIdProvider();
    Properties p = new Properties();
    p.setProperty("SQL Server", "sqlserver");
    p.setProperty("Oracle", "oracle");
    p.setProperty("DB2", "db2");
    p.setProperty("MySQL", "mysql");
    p.setProperty("H2", "h2");
    p.setProperty("PostgreSQL", "postgres");
    databaseIdProvider.setProperties(p);
    setDatabaseIdProvider(databaseIdProvider);


    super.afterPropertiesSet();
}
 
开发者ID:hatunet,项目名称:spring-data-mybatis,代码行数:18,代码来源:SqlSessionFactoryBean.java

示例2: MybatisPlusAutoConfiguration

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
public MybatisPlusAutoConfiguration(MybatisPlusProperties properties,
                                    ObjectProvider<Interceptor[]> interceptorsProvider,
                                    ResourceLoader resourceLoader,
                                    ObjectProvider<DatabaseIdProvider> databaseIdProvider,
                                    ObjectProvider<List<ConfigurationCustomizer>> configurationCustomizersProvider) {
    this.properties = properties;
    this.interceptors = interceptorsProvider.getIfAvailable();
    this.resourceLoader = resourceLoader;
    this.databaseIdProvider = databaseIdProvider.getIfAvailable();
    this.configurationCustomizers = configurationCustomizersProvider.getIfAvailable();
}
 
开发者ID:baomidou,项目名称:mybatisplus-boot-starter,代码行数:12,代码来源:MybatisPlusAutoConfiguration.java

示例3: MapperAutoConfiguration

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
public MapperAutoConfiguration(MybatisProperties properties,
                               ObjectProvider<Interceptor[]> interceptorsProvider,
                               ResourceLoader resourceLoader,
                               ObjectProvider<DatabaseIdProvider> databaseIdProvider,
                               ObjectProvider<List<ConfigurationCustomizer>> configurationCustomizersProvider) {
    this.properties = properties;
    this.interceptors = interceptorsProvider.getIfAvailable();
    this.resourceLoader = resourceLoader;
    this.databaseIdProvider = databaseIdProvider.getIfAvailable();
    this.configurationCustomizers = configurationCustomizersProvider.getIfAvailable();
}
 
开发者ID:abel533,项目名称:mapper-boot-starter,代码行数:12,代码来源:MapperAutoConfiguration.java

示例4: MybatisAutoConfiguration

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
public MybatisAutoConfiguration(MybatisProperties properties,
                                ObjectProvider<Interceptor[]> interceptorsProvider,
                                ResourceLoader resourceLoader,
                                ObjectProvider<DatabaseIdProvider> databaseIdProvider,
                                ObjectProvider<List<ConfigurationCustomizer>> configurationCustomizersProvider) {
  this.properties = properties;
  this.interceptors = interceptorsProvider.getIfAvailable();
  this.resourceLoader = resourceLoader;
  this.databaseIdProvider = databaseIdProvider.getIfAvailable();
  this.configurationCustomizers = configurationCustomizersProvider.getIfAvailable();
}
 
开发者ID:mybatis,项目名称:spring-boot-starter,代码行数:12,代码来源:MybatisAutoConfiguration.java

示例5: getDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Gets the DatabaseIdProvider
 *
 * @return
 * @since 1.1.0
 */
public DatabaseIdProvider getDatabaseIdProvider() {
    return databaseIdProvider;
}
 
开发者ID:Caratacus,项目名称:mybatis-plus-mini,代码行数:10,代码来源:MybatisSqlSessionFactoryBean.java

示例6: setDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Sets the DatabaseIdProvider.
 * As of version 1.2.2 this variable is not initialized by default.
 *
 * @param databaseIdProvider
 * @since 1.1.0
 */
public void setDatabaseIdProvider(DatabaseIdProvider databaseIdProvider) {
    this.databaseIdProvider = databaseIdProvider;
}
 
开发者ID:Caratacus,项目名称:mybatis-plus-mini,代码行数:11,代码来源:MybatisSqlSessionFactoryBean.java

示例7: getDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Sets the DatabaseIdProvider.
 *
 * @since 1.1.0
 * @return DatabaseIdProvider
 */
public DatabaseIdProvider getDatabaseIdProvider() {
    return databaseIdProvider;
}
 
开发者ID:Alfresco,项目名称:alfresco-core,代码行数:10,代码来源:HierarchicalSqlSessionFactoryBean.java

示例8: setDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Gets the DatabaseIdProvider
 *
 * @since 1.1.0
 * @param databaseIdProvider DatabaseIdProvider
 */
public void setDatabaseIdProvider(DatabaseIdProvider databaseIdProvider) {
    this.databaseIdProvider = databaseIdProvider;
}
 
开发者ID:Alfresco,项目名称:alfresco-core,代码行数:10,代码来源:HierarchicalSqlSessionFactoryBean.java

示例9: getDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Gets the DatabaseIdProvider
 * 
 * @since 1.1.0
 * @return
 */
public DatabaseIdProvider getDatabaseIdProvider() {
	return databaseIdProvider;
}
 
开发者ID:EleTeam,项目名称:Shop-for-JavaWeb,代码行数:10,代码来源:SqlSessionFactoryBean.java

示例10: setDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Sets the DatabaseIdProvider. As of version 1.2.2 this variable is not
 * initialized by default.
 * 
 * @since 1.1.0
 * @param databaseIdProvider
 */
public void setDatabaseIdProvider(DatabaseIdProvider databaseIdProvider) {
	this.databaseIdProvider = databaseIdProvider;
}
 
开发者ID:EleTeam,项目名称:Shop-for-JavaWeb,代码行数:11,代码来源:SqlSessionFactoryBean.java

示例11: getDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Gets the DatabaseIdProvider
 *
 * @since 1.1.0
 * @return
 */
public DatabaseIdProvider getDatabaseIdProvider() {
	return databaseIdProvider;
}
 
开发者ID:whatlookingfor,项目名称:spring-boot-sample,代码行数:10,代码来源:SqlSessionFactoryBean.java

示例12: setDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Sets the DatabaseIdProvider.
 * As of version 1.2.2 this variable is not initialized by default.
 *
 * @since 1.1.0
 * @param databaseIdProvider
 */
public void setDatabaseIdProvider(DatabaseIdProvider databaseIdProvider) {
	this.databaseIdProvider = databaseIdProvider;
}
 
开发者ID:whatlookingfor,项目名称:spring-boot-sample,代码行数:11,代码来源:SqlSessionFactoryBean.java

示例13: setDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Sets the DatabaseIdProvider. As of version 1.2.2 this variable is not initialized by default.
 *
 * @since 1.1.0
 * @param databaseIdProvider
 */
public void setDatabaseIdProvider(DatabaseIdProvider databaseIdProvider) {
	this.databaseIdProvider = databaseIdProvider;
}
 
开发者ID:lindzh,项目名称:mybatis-spring-1.2.2,代码行数:10,代码来源:SqlSessionFactoryBean.java

示例14: getDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Gets the DatabaseIdProvider
 *
 * @since 1.1.0
 * @return
 */
public DatabaseIdProvider getDatabaseIdProvider() {
  return databaseIdProvider;
}
 
开发者ID:zyong2004,项目名称:mybatis-spring,代码行数:10,代码来源:SqlSessionFactoryBean.java

示例15: setDatabaseIdProvider

import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
 * Sets the DatabaseIdProvider.
 * As of version 1.2.2 this variable is not initialized by default. 
 *
 * @since 1.1.0
 * @param databaseIdProvider
 */
public void setDatabaseIdProvider(DatabaseIdProvider databaseIdProvider) {
  this.databaseIdProvider = databaseIdProvider;
}
 
开发者ID:zyong2004,项目名称:mybatis-spring,代码行数:11,代码来源:SqlSessionFactoryBean.java


注:本文中的org.apache.ibatis.mapping.DatabaseIdProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。