Skip to content

Commit e6a0ada

Browse files
committed
Adapted providers to new version of the driver
1 parent 07ac69d commit e6a0ada

File tree

9 files changed

+20
-21
lines changed

9 files changed

+20
-21
lines changed

ojdbc-provider-azure/src/main/java/oracle/jdbc/provider/azure/AzureResourceFactory.java

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
* {@link TokenCredential} created by {@link TokenCredentialFactory} is passed
6060
* to the {@link #request(TokenCredential, ParameterSet)} method of a subclass.
6161
* </p>
62+
* @param <T> the type
6263
*/
6364
public abstract class AzureResourceFactory<T> implements ResourceFactory<T> {
6465

ojdbc-provider-azure/src/main/java/oracle/jdbc/provider/azure/configuration/AzureVaultJsonProvider.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
package oracle.jdbc.provider.azure.configuration;
4040

41-
import oracle.jdbc.driver.OracleConfigurationJsonProvider;
41+
import oracle.jdbc.driver.configuration.OracleConfigurationParsableProvider;
4242
import oracle.jdbc.provider.azure.keyvault.KeyVaultSecretFactory;
4343
import oracle.jdbc.provider.parameter.Parameter;
4444
import oracle.jdbc.provider.parameter.ParameterSet;
@@ -52,9 +52,9 @@
5252

5353
/**
5454
* A provider for JSON payload which contains configuration from Azure Vault.
55-
* See {@link #getJson(String)} for the spec of the JSON payload.
55+
* See {@link #getInputStream(String)} for the spec of the JSON payload.
5656
*/
57-
public class AzureVaultJsonProvider extends OracleConfigurationJsonProvider {
57+
public class AzureVaultJsonProvider extends OracleConfigurationParsableProvider {
5858

5959
/**
6060
* Parser that recognizes the "key" and "value" field,
@@ -85,7 +85,7 @@ public class AzureVaultJsonProvider extends OracleConfigurationJsonProvider {
8585
* @return JSON payload
8686
**/
8787
@Override
88-
public InputStream getJson(String secretIdentifier) {
88+
public InputStream getInputStream(String secretIdentifier) {
8989
final String valueFieldName = "value";
9090
Map<String, String> optionsWithSecret = new HashMap<>(options);
9191
optionsWithSecret.put(valueFieldName, secretIdentifier);

ojdbc-provider-jackson-oson/src/main/java/oracle/jdbc/provider/oson/OsonGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public void writeNull() throws IOException {
532532

533533
/**
534534
* Checks if the generator is closed.
535-
* @return
535+
* @return true if the generator is closed, otherwise false.
536536
*/
537537
@Override
538538
public boolean isClosed() {

ojdbc-provider-jackson-oson/src/main/java/oracle/jdbc/provider/oson/OsonModule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
* <li>{@link Duration} - {@link OsonDurationDeserializer} and {@link OsonDurationSerializer}</li>
7575
* <li>{@link BigInteger} - {@link OsonBigIntegerDeserializer} and {@link OsonBigIntegerSerializer}</li>
7676
* <li>{@link Year} - {@link OsonYearDeserializer} and {@link OsonYearSerializer}</li>
77-
* <li>{@link byte[]} - {@link OsonByteDeserializer} and {@link OsonByteSerializer}</li>
77+
* <li>byte[] - {@link OsonByteDeserializer} and {@link OsonByteSerializer}</li>
7878
* <li>{@link java.util.Date}- {@link OsonDateSerializer} and {@link OsonDateDeserializer} </li>
7979
* <li>{@link java.sql.Date}- {@link OsonDateSerializer} and {@link OsonSqlDateDeserializer} </li>
8080
* <li>{@link Timestamp}- {@link OsonDateSerializer} and {@link OsonTimeStampDeserializer} </li>

ojdbc-provider-jackson-oson/src/main/java/oracle/jdbc/provider/oson/deser/OsonByteDeserializer.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,15 @@
5959
*
6060
* @see StdScalarDeserializer
6161
* @see OsonParser
62-
* @see byte[]
63-
*/
62+
*/
6463
public class OsonByteDeserializer extends StdScalarDeserializer<byte[]> {
65-
/**
64+
/**
6665
* A singleton instance of the deserializer.
6766
*/
6867
public static final OsonByteDeserializer INSTANCE = new OsonByteDeserializer();
6968

70-
/**
71-
* Default constructor that initializes the deserializer for the {@link byte[]} class.
69+
/**
70+
* Default constructor that initializes the deserializer for the byte[] class.
7271
*/
7372
protected OsonByteDeserializer() {
7473
super(Year.class);

ojdbc-provider-jackson-oson/src/main/java/oracle/jdbc/provider/oson/ser/OsonByteSerializer.java

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
*
5656
* @see StdSerializer
5757
* @see OsonGenerator
58-
* @see byte[]
5958
*/
6059
public class OsonByteSerializer extends StdSerializer<byte[]> {
6160

ojdbc-provider-oci/src/main/java/oracle/jdbc/provider/oci/configuration/OciObjectStorageProvider.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
package oracle.jdbc.provider.oci.configuration;
4040

41-
import oracle.jdbc.driver.OracleConfigurationJsonProvider;
41+
import oracle.jdbc.driver.configuration.OracleConfigurationParsableProvider;
4242
import oracle.jdbc.provider.oci.objectstorage.ObjectFactory;
4343
import oracle.jdbc.provider.parameter.ParameterSet;
4444
import oracle.jdbc.util.OracleConfigurationCache;
@@ -49,10 +49,10 @@
4949

5050
/**
5151
* A provider for JSON payload which contains configuration from OCI Object
52-
* Storage. See {@link #getJson(String)} for the spec of the JSON payload.
52+
* Storage. See {@link #getInputStream(String)} for the spec of the JSON payload.
5353
*/
5454
public class OciObjectStorageProvider
55-
extends OracleConfigurationJsonProvider {
55+
extends OracleConfigurationParsableProvider {
5656

5757
/**
5858
* {@inheritDoc}
@@ -71,7 +71,7 @@ public class OciObjectStorageProvider
7171
* @return JSON payload
7272
*/
7373
@Override
74-
public InputStream getJson(String objectUrl) {
74+
public InputStream getInputStream(String objectUrl) {
7575
// Add implicit prefix if not informed
7676
if (!objectUrl.startsWith("https://")) {
7777
objectUrl = "https://" + objectUrl;

ojdbc-provider-oci/src/main/java/oracle/jdbc/provider/oci/configuration/OciVaultJsonProvider.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package oracle.jdbc.provider.oci.configuration;
22

3-
import oracle.jdbc.driver.OracleConfigurationJsonProvider;
3+
import oracle.jdbc.driver.configuration.OracleConfigurationParsableProvider;
44
import oracle.jdbc.provider.oci.vault.SecretFactory;
55
import oracle.jdbc.provider.parameter.ParameterSet;
66
import oracle.jdbc.util.OracleConfigurationCache;
@@ -13,9 +13,9 @@
1313

1414
/**
1515
* A provider for JSON payload which contains configuration from OCI Vault.
16-
* See {@link #getJson(String)} for the spec of the JSON payload.
16+
* See {@link #getInputStream(String)} for the spec of the JSON payload.
1717
**/
18-
public class OciVaultJsonProvider extends OracleConfigurationJsonProvider {
18+
public class OciVaultJsonProvider extends OracleConfigurationParsableProvider {
1919

2020
/**
2121
* {@inheritDoc}
@@ -30,7 +30,7 @@ public class OciVaultJsonProvider extends OracleConfigurationJsonProvider {
3030
* @return JSON payload
3131
**/
3232
@Override
33-
public InputStream getJson(String secretOcid) {
33+
public InputStream getInputStream(String secretOcid) {
3434
final String valueFieldName = "value";
3535
Map<String, String> optionsWithOcid = new HashMap<>(options);
3636
optionsWithOcid.put(valueFieldName, secretOcid);

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<properties>
3333
<maven.compiler.target>1.8</maven.compiler.target>
3434
<maven.compiler.source>1.8</maven.compiler.source>
35-
<jdbc.version>23.6.0.24.10</jdbc.version>
35+
<jdbc.version>23.7.0.25.01</jdbc.version>
3636
<junit.version>5.9.0</junit.version>
3737
<mockito.version>4.11.0</mockito.version>
3838
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

0 commit comments

Comments
 (0)