Package de.thomas_oster.lazysql
Class OracleAdapter
java.lang.Object
de.thomas_oster.lazysql.AbstractRDBMSAdapter
de.thomas_oster.lazysql.OracleAdapter
- 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 rowsgetStoredProcedureParameters(Connection con, String name) getStoredProcedures(Connection con, String prefix) getTableColumns(Connection con, String name, String prefix) Methods inherited from class de.thomas_oster.lazysql.AbstractRDBMSAdapter
getAdapterByDbUri, getColumnType, getInsertableTableColumns, getInsertableTableColumns, getSchemas, getSchemas, getStoredProcedureParameters, getStoredProcedures, getTableColumns, getTables, getTables, tryToLoadDriver
-
Constructor Details
-
OracleAdapter
public OracleAdapter()
-
-
Method Details
-
getTableColumns
public List<Argument> getTableColumns(Connection con, String name, String prefix) throws SQLException - Overrides:
getTableColumnsin classAbstractRDBMSAdapter- Throws:
SQLException
-
getStoredProcedures
public List<AbstractRDBMSAdapter.Procedure> getStoredProcedures(Connection con, String prefix) throws SQLException, AbstractRDBMSAdapter.NotSupportedException - Overrides:
getStoredProceduresin classAbstractRDBMSAdapter- Throws:
SQLExceptionAbstractRDBMSAdapter.NotSupportedException
-
getStoredProcedureParameters
public List<Argument> getStoredProcedureParameters(Connection con, String name) throws SQLException, AbstractRDBMSAdapter.NotSupportedException - Overrides:
getStoredProcedureParametersin classAbstractRDBMSAdapter- Throws:
SQLExceptionAbstractRDBMSAdapter.NotSupportedException
-
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
-