Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Sep 13, 2023
1 parent 8449470 commit 70d6d43
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
@LoadLevel(name = JdbcConstants.DM)
public class DmTableMetaCache extends OracleTableMetaCache {
public static class TableNameMeta {
private String schema;
private String tableName;
private final String schema;
private final String tableName;

public TableNameMeta(String schema, String tableName) {
this.schema = schema;
Expand All @@ -64,7 +64,7 @@ protected TableMeta resultSetMetaToSchema(DatabaseMetaData dbmd, String tableNam
ResultSet rsPrimary = dbmd.getPrimaryKeys(null, tableNameMeta.getSchema(), tableNameMeta.getTableName())) {
processColumns(result, rsColumns);

processIndexs(result, rsIndex);
processIndexes(result, rsIndex);

processPrimaries(result, rsPrimary);

Expand Down Expand Up @@ -97,7 +97,7 @@ protected void processColumns(TableMeta tableMeta, ResultSet rs) throws SQLExcep
}
}

protected void processIndexs(TableMeta tableMeta, ResultSet rs) throws SQLException {
protected void processIndexes(TableMeta tableMeta, ResultSet rs) throws SQLException {
while (rs.next()) {
String indexName = rs.getString("INDEX_NAME");
if (StringUtils.isNullOrEmpty(indexName)) {
Expand Down

0 comments on commit 70d6d43

Please sign in to comment.