-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SAMLSSOServiceProviderdAOImpl to use named parameters #5887
Update SAMLSSOServiceProviderdAOImpl to use named parameters #5887
Conversation
438a239
to
7a768ac
Compare
@@ -329,8 +329,8 @@ private boolean processIsServiceProviderExists(Connection connection, String iss | |||
|
|||
try (NamedPreparedStatement statement = new NamedPreparedStatement(connection, | |||
SAMLSSOServiceProviderConstants.SqlQueries.GET_SAML2_SSO_CONFIG_ID_BY_ISSUER)) { | |||
statement.setString(1, issuer); | |||
statement.setString(2, tenantUUID); | |||
statement.setString("ISSUER", issuer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets use constants.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
827ebcb
to
afd4a6b
Compare
@@ -24,67 +24,138 @@ private SAMLSSOServiceProviderConstants() { | |||
|
|||
} | |||
|
|||
public static class SAML2TableColumns { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's have an empty line here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
|
||
//IDN_SAML2_SSO table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a space after //
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…nts to use named parameters
afd4a6b
to
f02e487
Compare
faf5a42
into
wso2:feature-remove-registry-saml
Proposed changes in this pull request
This PR introduces usage of named parameters in SAMLSSOServiceProviderDAOImpl.java. To support the transition from positional parameters to named parameters SAMLSSOServiceProvider.java is updated. This change improves code readability and maintainability.
-The refactored code replaces positional indices with named parameters.
-SQL queries are being executed using named parameters instead of positional indices.
Related to,