public class DbQueryTyper extends Object
| Modifier and Type | Method and Description |
|---|---|
AbstractRDBMSAdapter.FullyQualifiedName |
getFqn(String name) |
List<String> |
getSchemas(String prefix) |
List<Argument> |
getSqlQueryType(String sql,
List<Argument> params)
Let's the db analyze an SQL query and throws an exception or returns a
map containing the names and types of the resulting rows
|
List<Argument> |
getStoredProcedureParameters(String name) |
List<AbstractRDBMSAdapter.Procedure> |
getStoredProcedures(String prefix) |
List<AbstractRDBMSAdapter.Procedure> |
getStoredProcedures(String catalog,
String schema,
String prefix) |
List<Argument> |
getTableColumns(String name,
String prefix) |
List<String> |
getTables(String prefix) |
List<String> |
getTables(String catalog,
String schema,
String prefix) |
public List<String> getTables(String prefix) throws SQLException, AbstractRDBMSAdapter.NotSupportedException
public List<String> getTables(String catalog, String schema, String prefix) throws SQLException, AbstractRDBMSAdapter.NotSupportedException
public List<String> getSchemas(String prefix) throws SQLException, AbstractRDBMSAdapter.NotSupportedException
public AbstractRDBMSAdapter.FullyQualifiedName getFqn(String name) throws SQLException, AbstractRDBMSAdapter.NotSupportedException
public List<Argument> getTableColumns(String name, String prefix) throws SQLException, AbstractRDBMSAdapter.NotSupportedException
public List<AbstractRDBMSAdapter.Procedure> getStoredProcedures(String catalog, String schema, String prefix) throws SQLException, AbstractRDBMSAdapter.NotSupportedException
public List<AbstractRDBMSAdapter.Procedure> getStoredProcedures(String prefix) throws SQLException, AbstractRDBMSAdapter.NotSupportedException
public List<Argument> getStoredProcedureParameters(String name) throws SQLException, AbstractRDBMSAdapter.NotSupportedException
public List<Argument> getSqlQueryType(String sql, List<Argument> params) throws SQLException, AbstractRDBMSAdapter.NotSupportedException
sql - the sql queryparams - a list of parameters used in this querySQLException - if the query is invalidAbstractRDBMSAdapter.NotSupportedException - if the corresponding adapter cannot check the query result typeCopyright © 2019. All rights reserved.