Package de.thomas_oster.lazysql
Class UnknownRDBMSAdapter
java.lang.Object
de.thomas_oster.lazysql.AbstractRDBMSAdapter
de.thomas_oster.lazysql.UnknownRDBMSAdapter
- Author:
- Thomas Oster (mail@thomas-oster.de)
-
Nested Class Summary
Nested classes/interfaces inherited from class de.thomas_oster.lazysql.AbstractRDBMSAdapter
AbstractRDBMSAdapter.FullyQualifiedName, AbstractRDBMSAdapter.NotSupportedException, AbstractRDBMSAdapter.Procedure -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSQLSyntax(Connection con, String sql, List<Argument> params) getSqlQueryType(Connection con, 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 rowsMethods inherited from class de.thomas_oster.lazysql.AbstractRDBMSAdapter
getAdapterByDbUri, getColumnType, getInsertableTableColumns, getInsertableTableColumns, getSchemas, getSchemas, getStoredProcedureParameters, getStoredProcedureParameters, getStoredProcedures, getStoredProcedures, getTableColumns, getTableColumns, getTables, getTables, tryToLoadDriver
-
Constructor Details
-
UnknownRDBMSAdapter
- Throws:
DbConfig.ConfigException
-
-
Method Details
-
getSqlQueryType
public List<Argument> getSqlQueryType(Connection con, String sql, List<Argument> params) throws SQLException, AbstractRDBMSAdapter.NotSupportedException Description copied from class:AbstractRDBMSAdapterLet's the db analyze an SQL query and throws an exception or returns a map containing the names and types of the resulting rows- Specified by:
getSqlQueryTypein classAbstractRDBMSAdapter- Parameters:
con- the database connectionsql- the sql queryparams- a list of parameters used in this query- Returns:
- returns a list of arguments corresponding to the query result type
- Throws:
SQLException- if the query is wrongAbstractRDBMSAdapter.NotSupportedException- if the corresponding adapter cannot check the query result type
-
checkSQLSyntax
public void checkSQLSyntax(Connection con, String sql, List<Argument> params) throws SQLException, AbstractRDBMSAdapter.NotSupportedException - Specified by:
checkSQLSyntaxin classAbstractRDBMSAdapter- Throws:
SQLExceptionAbstractRDBMSAdapter.NotSupportedException
-