Skip to content

Commit

Permalink
Merge pull request #191 from vmware/IAC-798---172-o11n-plugin-sql-sql…
Browse files Browse the repository at this point in the history
…databasemanagergetdatabase-definition-to-be-removed

IAC-798 Deprecate SQLDatabaseManager getDatabase function
  • Loading branch information
VenelinBakalov committed Nov 15, 2023
2 parents bfd1b07 + 426aecb commit 8f32223
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Enhancements
* [vro-types/o11n-plugin-aria] IAC-789 / Adding new Aria Automation Plugin vRO inventory Types
* [vro-types/o11n-plugin-aria] IAC-798 / Deprecating SQLDatabaseManager getDatabase() function
* [artifact-manager] IAC-786 / Set Aria Operations Default Policy vROPs 8.12.x.
* [artifact-manager] IAC-790 / Update usage of deprecated policy APIs for vROPs 8.12.x.
* [archetypes] IAC-797 / Improved content.yaml definition for "ts-vra-ng" and "vra-ng"
Expand Down
3 changes: 3 additions & 0 deletions docs/versions/latest/Release.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
[//]: # (### *Deprecation*)
[//]: # (Explain what is deprecated and suggest alternatives)

### Deprecating SQLDatabaseManager.getDatabase() function

SQLDatabaseManager.getDatabase() function is removed in vRA 7.6 / Aria Automation 8 and above. The function uses name as parameter to retrieve a database. Use getDatabaseById() or getDatabases() and filter by name instead.

[//]: # (Features -> New Functionality)
## Features
Expand Down
11 changes: 6 additions & 5 deletions vro-types/o11n-plugin-sql/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ declare class SQLDatabaseManager {
/**
* Returns the database object from the plug-in's inventory with a specified name.
* @param name
* @deprecated removed in vRA 7.6 and above / Aria Automation 8. Use getDatabaseById and getDatabases instead.
*/
static getDatabase(name: string): SQLDatabase;
/**
Expand Down Expand Up @@ -214,7 +215,7 @@ declare class JDBCConnection {
* Return a connection on a Database connection
* ((String)url,(String)username,(String)password)
*/
getConnection(url:string, username:string, password:string): Connection;
getConnection(url: string, username: string, password: string): Connection;
}

/**
Expand All @@ -230,12 +231,12 @@ declare class Connection {
* Creates a PreparedStatement object for sending
* parameterized SQL statements to the database
*/
prepareStatement(param0:string): PreparedStatement;
prepareStatement(param0: string): PreparedStatement;
/**
* Creates a CallableStatement object for calling
* database stored procedures
*/
prepareCall(param0:string): PreparedStatement;
prepareCall(param0: string): PreparedStatement;
/**
* Releases this Connection object's database and JDBC
* resources
Expand Down Expand Up @@ -303,7 +304,7 @@ declare class PreparedStatement {
* Sets the designated parameter to db null.
* @param parameterIndex
*/
setNull(parameterIndex : number): this;
setNull(parameterIndex: number): this;

/**
* Registers the OUT parameter in ordinal position parameterIndex to the JDBC type sqlType.
Expand All @@ -322,7 +323,7 @@ declare class PreparedStatement {
* Not present in the API documentation
* @param parameterIndex
*/
getString(parameterIndex : number): string;
getString(parameterIndex: number): string;
}

/**
Expand Down

0 comments on commit 8f32223

Please sign in to comment.