Package org.mariadb.jdbc.export
Class ExceptionFactory.SqlExceptionFactory
- java.lang.Object
-
- org.mariadb.jdbc.export.ExceptionFactory
-
- org.mariadb.jdbc.export.ExceptionFactory.SqlExceptionFactory
-
- Enclosing class:
- ExceptionFactory
public class ExceptionFactory.SqlExceptionFactory extends ExceptionFactory
Exception with SQL command
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mariadb.jdbc.export.ExceptionFactory
ExceptionFactory.SqlExceptionFactory
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
sql
-
Constructor Summary
Constructors Constructor Description SqlExceptionFactory(Connection connection, MariaDbPoolConnection poolConnection, Configuration conf, HostAddress hostAddress, long threadId, java.sql.Statement statement, java.lang.String sql)
Constructor of Exception factory with SQL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSql()
get SQL command-
Methods inherited from class org.mariadb.jdbc.export.ExceptionFactory
create, create, create, create, createBatchUpdate, createBatchUpdate, notSupported, of, setConnection, setConnection, setPoolConnection, setThreadId, withSql
-
-
-
-
Constructor Detail
-
SqlExceptionFactory
public SqlExceptionFactory(Connection connection, MariaDbPoolConnection poolConnection, Configuration conf, HostAddress hostAddress, long threadId, java.sql.Statement statement, java.lang.String sql)
Constructor of Exception factory with SQL- Parameters:
connection
- connectionpoolConnection
- pool connectionconf
- configurationhostAddress
- hostthreadId
- connection thread idstatement
- statementsql
- sql
-
-
Method Detail
-
getSql
public java.lang.String getSql()
Description copied from class:ExceptionFactory
get SQL command- Overrides:
getSql
in classExceptionFactory
- Returns:
- sql command
-
-