本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例5: getDatabaseIdProvider
import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
* Gets the DatabaseIdProvider
*
* @return
* @since 1.1.0
*/
public DatabaseIdProvider getDatabaseIdProvider() {
return databaseIdProvider;
}
示例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;
}
示例7: getDatabaseIdProvider
import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
* Sets the DatabaseIdProvider.
*
* @since 1.1.0
* @return DatabaseIdProvider
*/
public DatabaseIdProvider getDatabaseIdProvider() {
return databaseIdProvider;
}
示例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;
}
示例9: getDatabaseIdProvider
import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
* Gets the DatabaseIdProvider
*
* @since 1.1.0
* @return
*/
public DatabaseIdProvider getDatabaseIdProvider() {
return databaseIdProvider;
}
示例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;
}
示例11: getDatabaseIdProvider
import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
* Gets the DatabaseIdProvider
*
* @since 1.1.0
* @return
*/
public DatabaseIdProvider getDatabaseIdProvider() {
return databaseIdProvider;
}
示例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;
}
示例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;
}
示例14: getDatabaseIdProvider
import org.apache.ibatis.mapping.DatabaseIdProvider; //导入依赖的package包/类
/**
* Gets the DatabaseIdProvider
*
* @since 1.1.0
* @return
*/
public DatabaseIdProvider getDatabaseIdProvider() {
return databaseIdProvider;
}
示例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;
}