本文整理汇总了Java中org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor类的典型用法代码示例。如果您正苦于以下问题:Java NativeJdbcExtractor类的具体用法?Java NativeJdbcExtractor怎么用?Java NativeJdbcExtractor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NativeJdbcExtractor类属于org.springframework.jdbc.support.nativejdbc包,在下文中一共展示了NativeJdbcExtractor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setNativeJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
public void setNativeJdbcExtractor(NativeJdbcExtractor extractor) {
delegate.setNativeJdbcExtractor(extractor);
}
示例2: getNativeJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
public NativeJdbcExtractor getNativeJdbcExtractor() {
return delegate.getNativeJdbcExtractor();
}
示例3: setNativeJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
/**
* Specify the NativeJdbcExtractor to use for unwrapping CallableStatements, if any.
*/
public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor) {
this.nativeJdbcExtractor = nativeJdbcExtractor;
}
示例4: getNativeJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
/**
* Return the current NativeJdbcExtractor implementation.
*/
public NativeJdbcExtractor getNativeJdbcExtractor() {
return this.nativeJdbcExtractor;
}
示例5: setNativeJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
@Override
public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor) {
this.nativeJdbcExtractor = nativeJdbcExtractor;
}
示例6: getNativeJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
protected NativeJdbcExtractor getNativeJdbcExtractor() {
return this.nativeJdbcExtractor;
}
示例7: setNativeJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
/**
* Set {@link NativeJdbcExtractor} to be used to retrieve the native connection.
*/
public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor) {
this.nativeJdbcExtractor = nativeJdbcExtractor;
}
示例8: createMetaDataProvider
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
/**
* Create a TableMetaDataProvider based on the database metedata
* @param dataSource used to retrieve metedata
* @param context the class that holds configuration and metedata
* @param nativeJdbcExtractor the NativeJdbcExtractor to be used
* @return instance of the TableMetaDataProvider implementation to be used
*/
public static TableMetaDataProvider createMetaDataProvider(DataSource dataSource,
final TableMetaDataContext context, final NativeJdbcExtractor nativeJdbcExtractor) {
try {
return (TableMetaDataProvider) JdbcUtils.extractDatabaseMetaData(dataSource,
new DatabaseMetaDataCallback() {
@Override
public Object processMetaData(DatabaseMetaData databaseMetaData) throws SQLException {
String databaseProductName =
JdbcUtils.commonDatabaseName(databaseMetaData.getDatabaseProductName());
boolean accessTableColumnMetaData = context.isAccessTableColumnMetaData();
TableMetaDataProvider provider;
if ("Oracle".equals(databaseProductName)) {
provider = new OracleTableMetaDataProvider(databaseMetaData,
context.isOverrideIncludeSynonymsDefault());
}
else if ("HSQL Database Engine".equals(databaseProductName)) {
provider = new HsqlTableMetaDataProvider(databaseMetaData);
}
else if ("PostgreSQL".equals(databaseProductName)) {
provider = new PostgresTableMetaDataProvider(databaseMetaData);
}
else if ("Apache Derby".equals(databaseProductName)) {
provider = new DerbyTableMetaDataProvider(databaseMetaData);
}
else {
provider = new GenericTableMetaDataProvider(databaseMetaData);
}
if (nativeJdbcExtractor != null) {
provider.setNativeJdbcExtractor(nativeJdbcExtractor);
}
if (logger.isDebugEnabled()) {
logger.debug("Using " + provider.getClass().getSimpleName());
}
provider.initializeWithMetaData(databaseMetaData);
if (accessTableColumnMetaData) {
provider.initializeWithTableColumnMetaData(databaseMetaData, context.getCatalogName(),
context.getSchemaName(), context.getTableName());
}
return provider;
}
});
}
catch (MetaDataAccessException ex) {
throw new DataAccessResourceFailureException("Error retrieving database metadata", ex);
}
}
示例9: setNativeJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
/**
* Specify the NativeJdbcExtractor to use for unwrapping PreparedStatements, if any.
*/
public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor) {
this.nativeJdbcExtractor = nativeJdbcExtractor;
}
示例10: setNativeJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
/**
* Set the {@link NativeJdbcExtractor} to use to retrieve the native connection if necessary
*/
public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor) {
this.tableMetaDataContext.setNativeJdbcExtractor(nativeJdbcExtractor);
}
示例11: useNativeJdbcExtractorForMetaData
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
@Override
public SimpleJdbcInsertOperations useNativeJdbcExtractorForMetaData(NativeJdbcExtractor nativeJdbcExtractor) {
setNativeJdbcExtractor(nativeJdbcExtractor);
return this;
}
示例12: getExtractors
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
public Map<String, NativeJdbcExtractor> getExtractors() {
return extractors;
}
示例13: setExtractors
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
public void setExtractors(Map<String, NativeJdbcExtractor> extractors) {
this.extractors = extractors;
}
示例14: getDefaultJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
public NativeJdbcExtractor getDefaultJdbcExtractor() {
return defaultJdbcExtractor;
}
示例15: setDefaultJdbcExtractor
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; //导入依赖的package包/类
public void setDefaultJdbcExtractor(NativeJdbcExtractor defaultJdbcExtractor) {
this.defaultJdbcExtractor = defaultJdbcExtractor;
}