public class StoredProcedureUtils extends Object
| Constructor and Description |
|---|
StoredProcedureUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getStoredProcedureName(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 String getStoredProcedureName(String sqlText) throws SQLException
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 validpublic static Optional<String> getStoreProcedureOwner(String sqlText) throws SQLException
sqlText - the SQL Query textOptional with the Schema of the stored procedureSQLException - if the SQL Query syntax is not validpublic static Optional<String> getStoredProcedureParentOwner(String sqlText) throws SQLException
sqlText - the SQL Query textOptional with the package of the stored procedureSQLException - if the SQL Query syntax is not validCopyright © 2021. All rights reserved.