public class StoredProcedureUtils extends Object
| Constructor and Description |
|---|
StoredProcedureUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.mule.runtime.api.util.Pair<String,Boolean> |
analyzeStoredOperation(String sqlText)
Gets the name of the stored procedure of the given SQL Query.
|
static Optional<String> |
getStoredProcedureParentOwner(String sqlText)
Gets the owner of the owner of the stored procedure of the given SQL Query.
|
static Optional<String> |
getStoreProcedureOwner(String sqlText)
Gets the owner of the stored procedure of the given SQL Query.
|
public static org.mule.runtime.api.util.Pair<String,Boolean> analyzeStoredOperation(String sqlText) throws BadSqlSyntaxException
sqlText - the SQL Query textSQLException - if it is no possible to get name of the stored procedure from the given SQL Query or the SQL Query
syntax is not validBadSqlSyntaxExceptionpublic static Optional<String> getStoreProcedureOwner(String sqlText) throws BadSqlSyntaxException
sqlText - the SQL Query textOptional with the Schema of the stored procedureSQLException - if the SQL Query syntax is not validBadSqlSyntaxExceptionpublic static Optional<String> getStoredProcedureParentOwner(String sqlText) throws BadSqlSyntaxException
sqlText - the SQL Query textOptional with the package of the stored procedureSQLException - if the SQL Query syntax is not validBadSqlSyntaxExceptionCopyright © 2021. All rights reserved.