Class DatabaseService
java.lang.Object
org.eclipse.lemminx.customservice.synapse.dynamic.db.DatabaseService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStoredProcedureParameters(String connectionUrl, String username, String password, String procedureName, String fieldName) Retrieves the parameters of a specified stored procedure from the database and returns them as a list of DynamicField objects.getTableColumns(String connectionUrl, String username, String password, String table, String fieldName, boolean markNull) Retrieves the columns of a specified table from the database and returns them as a list of DynamicField objects.
-
Constructor Details
-
DatabaseService
public DatabaseService()
-
-
Method Details
-
getTableColumns
public List<DynamicField> getTableColumns(String connectionUrl, String username, String password, String table, String fieldName, boolean markNull) Retrieves the columns of a specified table from the database and returns them as a list of DynamicField objects.- Parameters:
connectionUrl-username-password-table-fieldName-markNull-- Returns:
- List
containing the columns of the table.
-
getStoredProcedureParameters
public List<DynamicField> getStoredProcedureParameters(String connectionUrl, String username, String password, String procedureName, String fieldName) Retrieves the parameters of a specified stored procedure from the database and returns them as a list of DynamicField objects.- Parameters:
connectionUrl-username-password-procedureName-fieldName-- Returns:
- List
containing the parameters of the stored procedure.
-