Browse Source

Introduce TableMetaDataProvider.columnNameToUse(String)

pull/31174/head
Sam Brannen 2 years ago
parent
commit
070590cb11
  1. 6
      spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericTableMetaDataProvider.java
  2. 8
      spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataProvider.java

6
spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericTableMetaDataProvider.java

@ -229,6 +229,12 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider {
return identifierNameToUse(tableName); return identifierNameToUse(tableName);
} }
@Override
@Nullable
public String columnNameToUse(@Nullable String columnName) {
return identifierNameToUse(columnName);
}
@Override @Override
@Nullable @Nullable
public String catalogNameToUse(@Nullable String catalogName) { public String catalogNameToUse(@Nullable String catalogName) {

8
spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataProvider.java

@ -60,6 +60,14 @@ public interface TableMetaDataProvider {
@Nullable @Nullable
String tableNameToUse(@Nullable String tableName); String tableNameToUse(@Nullable String tableName);
/**
* Get the column name formatted based on meta-data information.
* <p>This could include altering the case.
* @since 6.1
*/
@Nullable
String columnNameToUse(@Nullable String columnName);
/** /**
* Get the catalog name formatted based on meta-data information. * Get the catalog name formatted based on meta-data information.
* <p>This could include altering the case. * <p>This could include altering the case.

Loading…
Cancel
Save