Skip to content

Commit be09369

Browse files
committed
update adb docs
1 parent fd6153a commit be09369

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

spring-cloud-oci/docs/src/main/asciidoc/adb.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies {
3131

3232
The starter automatically configures and registers an `AutonomousDb` bean in the Spring application context.
3333
The `AutonomousDb` bean (https://oracle.github.io/spring-cloud-oci/{project-version}/javadocs/com/oracle/cloud/spring/adb/package-summary.html[Javadoc]) can be used to create an Autonomous Database, get details of an Autonomous Database,
34-
delete an Autonomous Database and generate a wallet for an Autonomous Database.
34+
start and stop the Autonomous Database, generate a wallet for an Autonomous Database and, ultimately, deleta an Autonomous Databse.
3535

3636
[source,java]
3737
----
@@ -54,8 +54,12 @@ public void getAutonomousDatabaseWallet() {
5454
// read the InputStream to get the wallet
5555
}
5656
57-
public void deleteAutonomousDatabase() {
58-
DeleteAutonomousDatabaseResponse response = autonomousDatabase.deleteAutonomousDatabase(databaseId);
57+
public void startAutonomousDatabase() {
58+
StartAutonomousDatabaseResponse response = autonomousDatabase.startAutonomousDatabase(databaseId);
59+
}
60+
61+
public void stopAutonomousDatabase() {
62+
StopAutonomousDatabaseResponse response = autonomousDatabase.stopAutonomousDatabase(databaseId);
5963
}
6064
----
6165

spring-cloud-oci/spring-cloud-oci-adb/src/main/java/com/oracle/cloud/spring/adb/AutonomousDbImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ public DeleteAutonomousDatabaseResponse deleteAutonomousDatabase(String database
141141

142142
return response;
143143
}
144-
@Override
145144
public StartAutonomousDatabaseResponse startAutonomousDatabase(String databaseId) {
146145
return getDatabaseClient().startAutonomousDatabase(
147146
StartAutonomousDatabaseRequest.builder()
@@ -150,7 +149,6 @@ public StartAutonomousDatabaseResponse startAutonomousDatabase(String databaseId
150149
);
151150
}
152151

153-
@Override
154152
public StopAutonomousDatabaseResponse stopAutonomousDatabase(String databaseId) {
155153
return getDatabaseClient().stopAutonomousDatabase(
156154
StopAutonomousDatabaseRequest.builder()

0 commit comments

Comments
 (0)