@@ -15,17 +15,13 @@ public class AdapterProperties extends AbstractAdapterProperties {
1515 public static final String CATALOG_NAME_PROPERTY = "CATALOG_NAME" ;
1616 public static final String SCHEMA_NAME_PROPERTY = "SCHEMA_NAME" ;
1717 public static final String CONNECTION_NAME_PROPERTY = "CONNECTION_NAME" ;
18- public static final String CONNECTION_STRING_PROPERTY = "CONNECTION_STRING" ;
1918 public static final String DEBUG_ADDRESS_PROPERTY = "DEBUG_ADDRESS" ;
2019 public static final String LOG_LEVEL_PROPERTY = "LOG_LEVEL" ;
2120 public static final String SQL_DIALECT_PROPERTY = "SQL_DIALECT" ;
2221 public static final String EXCLUDED_CAPABILITIES_PROPERTY = "EXCLUDED_CAPABILITIES" ;
2322 public static final String EXCEPTION_HANDLING_PROPERTY = "EXCEPTION_HANDLING" ;
2423 public static final String IGNORE_ERRORS_PROPERTY = "IGNORE_ERRORS" ;
2524 public static final String IS_LOCAL_PROPERTY = "IS_LOCAL" ;
26- public static final String USERNAME_PROPERTY = "USERNAME" ;
27- @ SuppressWarnings ("squid:S2068" ) // Sonar mistakes this for a hard-coded credential
28- public static final String PASSWORD_PROPERTY = "PASSWORD" ;
2925 public static final String BINARY_COLUMN_HANDLING_PROPERTY = "BINARY_COLUMN_HANDLING" ;
3026
3127 /**
@@ -64,33 +60,6 @@ public String getConnectionName() {
6460 return get (CONNECTION_NAME_PROPERTY );
6561 }
6662
67- /**
68- * Get the connection string
69- *
70- * @return connection string
71- */
72- public String getConnectionString () {
73- return get (CONNECTION_STRING_PROPERTY );
74- }
75-
76- /**
77- * Get the user name
78- *
79- * @return user name
80- */
81- public String getUsername () {
82- return get (USERNAME_PROPERTY );
83- }
84-
85- /**
86- * Get the password
87- *
88- * @return password
89- */
90- public String getPassword () {
91- return get (PASSWORD_PROPERTY );
92- }
93-
9463 /**
9564 * Get the debug address
9665 *
@@ -171,10 +140,7 @@ public List<String> getFilteredTables() {
171140 * @return <code>true</code> if any of the changes makes refreshing the virtual schema necessary
172141 */
173142 public static boolean isRefreshingVirtualSchemaRequired (final Map <String , String > changedProperties ) {
174- return changedProperties .containsKey (CONNECTION_STRING_PROPERTY ) //
175- || changedProperties .containsKey (CONNECTION_NAME_PROPERTY ) //
176- || changedProperties .containsKey (USERNAME_PROPERTY ) //
177- || changedProperties .containsKey (PASSWORD_PROPERTY ) //
143+ return changedProperties .containsKey (CONNECTION_NAME_PROPERTY ) //
178144 || changedProperties .containsKey (SCHEMA_NAME_PROPERTY ) //
179145 || changedProperties .containsKey (CATALOG_NAME_PROPERTY ) //
180146 || changedProperties .containsKey (TABLE_FILTER_PROPERTY )
@@ -204,33 +170,6 @@ public BinaryColumnHandling getBinaryColumnHandling() {
204170 }
205171 }
206172
207- /**
208- * Check if the username property is set
209- *
210- * @return <code>true</code> if username property is set
211- */
212- public boolean hasUsername () {
213- return containsKey (USERNAME_PROPERTY );
214- }
215-
216- /**
217- * Check if the password property is set
218- *
219- * @return <code>true</code> if password property is set
220- */
221- public boolean hasPassword () {
222- return containsKey (PASSWORD_PROPERTY );
223- }
224-
225- /**
226- * Check if the connection string property is set
227- *
228- * @return <code>true</code> if connection string property is set
229- */
230- public boolean hasConnectionString () {
231- return containsKey (CONNECTION_STRING_PROPERTY );
232- }
233-
234173 /**
235174 * Check if the table filter property is set
236175 *
0 commit comments