| Modifier and Type | Field and Description |
|---|---|
protected ExceptionInterceptor |
CoreSession.exceptionInterceptor |
(package private) ExceptionInterceptor |
NativeQueryBindValue.exceptionInterceptor |
| Modifier and Type | Method and Description |
|---|---|
ExceptionInterceptor |
Session.getExceptionInterceptor() |
ExceptionInterceptor |
MysqlConnection.getExceptionInterceptor() |
ExceptionInterceptor |
CoreSession.getExceptionInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
Session.setExceptionInterceptor(ExceptionInterceptor exceptionInterceptor) |
void |
CoreSession.setExceptionInterceptor(ExceptionInterceptor exceptionInterceptor) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Boolean |
BooleanPropertyDefinition.booleanFrom(java.lang.String name,
java.lang.String value,
ExceptionInterceptor exceptionInterceptor) |
protected void |
IntegerProperty.checkRange(java.lang.Integer val,
java.lang.String valueAsString,
ExceptionInterceptor exceptionInterceptor) |
protected void |
LongProperty.checkRange(java.lang.Long val,
java.lang.String valueAsString,
ExceptionInterceptor exceptionInterceptor) |
protected void |
AbstractRuntimeProperty.checkRange(T val,
java.lang.String valueAsString,
ExceptionInterceptor exceptionInterceptor)
For range-based property, checks that value fit into range given by PropertyDefinition.
|
void |
RuntimeProperty.initializeFrom(java.util.Properties extractFrom,
ExceptionInterceptor exceptionInterceptor)
Explicitly set value of this RuntimeProperty according to the self-titled property value contained in extractFrom.
|
void |
AbstractRuntimeProperty.initializeFrom(java.util.Properties extractFrom,
ExceptionInterceptor exceptionInterceptor) |
void |
MemorySizeProperty.initializeFrom(java.util.Properties extractFrom,
ExceptionInterceptor exceptionInterceptor) |
void |
RuntimeProperty.initializeFrom(javax.naming.Reference ref,
ExceptionInterceptor exceptionInterceptor) |
void |
AbstractRuntimeProperty.initializeFrom(javax.naming.Reference ref,
ExceptionInterceptor exceptionInterceptor) |
void |
MemorySizeProperty.initializeFrom(javax.naming.Reference ref,
ExceptionInterceptor exceptionInterceptor) |
static java.lang.Integer |
IntegerPropertyDefinition.integerFrom(java.lang.String name,
java.lang.String value,
int multiplier,
ExceptionInterceptor exceptionInterceptor) |
T |
PropertyDefinition.parseObject(java.lang.String value,
ExceptionInterceptor exceptionInterceptor)
Returns the value object parsed from it's string representation and checked against allowable values.
|
abstract T |
AbstractPropertyDefinition.parseObject(java.lang.String value,
ExceptionInterceptor exceptionInterceptor) |
java.lang.Integer |
IntegerPropertyDefinition.parseObject(java.lang.String value,
ExceptionInterceptor exceptionInterceptor) |
java.lang.String |
StringPropertyDefinition.parseObject(java.lang.String value,
ExceptionInterceptor exceptionInterceptor) |
java.lang.Integer |
MemorySizePropertyDefinition.parseObject(java.lang.String value,
ExceptionInterceptor exceptionInterceptor) |
java.lang.Boolean |
BooleanPropertyDefinition.parseObject(java.lang.String value,
ExceptionInterceptor exceptionInterceptor) |
java.lang.Long |
LongPropertyDefinition.parseObject(java.lang.String value,
ExceptionInterceptor exceptionInterceptor) |
T |
EnumPropertyDefinition.parseObject(java.lang.String value,
ExceptionInterceptor exceptionInterceptor) |
void |
RuntimeProperty.setValue(T value,
ExceptionInterceptor exceptionInterceptor)
Set the object value of a property directly.
|
void |
AbstractRuntimeProperty.setValue(T value,
ExceptionInterceptor exceptionInterceptor) |
void |
MemorySizeProperty.setValueInternal(java.lang.Integer value,
java.lang.String valueAsString,
ExceptionInterceptor exceptionInterceptor) |
void |
AbstractRuntimeProperty.setValueInternal(java.lang.String value,
ExceptionInterceptor exceptionInterceptor)
Set the value of a property from a string value.
|
void |
AbstractRuntimeProperty.setValueInternal(T value,
java.lang.String valueAsString,
ExceptionInterceptor exceptionInterceptor)
Internal method for setting property value; ignoring the RUNTIME_NOT_MODIFIABLE flag.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ExceptionInterceptorChain |
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ExceptionInterceptor> |
ExceptionInterceptorChain.interceptors |
| Modifier and Type | Method and Description |
|---|---|
ExceptionInterceptor |
ExceptionInterceptor.init(java.util.Properties props,
Log log)
Called once per connection that wants to use the extension
The properties are the same ones passed in in the URL or arguments to
Driver.connect() or DriverManager.getConnection().
|
ExceptionInterceptor |
ExceptionInterceptorChain.init(java.util.Properties properties,
Log log) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ExceptionInterceptor> |
ExceptionInterceptorChain.getInterceptors() |
| Modifier and Type | Method and Description |
|---|---|
void |
ExceptionInterceptorChain.addRingZero(ExceptionInterceptor interceptor) |
static CJCommunicationsException |
ExceptionFactory.createCommunicationsException(PropertySet propertySet,
ServerSession serverSession,
PacketSentTimeHolder packetSentTimeHolder,
PacketReceivedTimeHolder packetReceivedTimeHolder,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
static <T extends CJException> |
ExceptionFactory.createException(java.lang.Class<T> clazz,
java.lang.String message,
ExceptionInterceptor interceptor) |
static <T extends CJException> |
ExceptionFactory.createException(java.lang.Class<T> clazz,
java.lang.String message,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
static CJException |
ExceptionFactory.createException(java.lang.String message,
ExceptionInterceptor interceptor) |
static CJException |
ExceptionFactory.createException(java.lang.String message,
java.lang.String sqlState,
int vendorErrorCode,
boolean isTransient,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
static CJException |
ExceptionFactory.createException(java.lang.String message,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
| Modifier and Type | Field and Description |
|---|---|
private ExceptionInterceptor |
MysqlParameterMetadata.exceptionInterceptor |
private ExceptionInterceptor |
MysqlPooledConnection.exceptionInterceptor |
protected ExceptionInterceptor |
StatementImpl.exceptionInterceptor |
private ExceptionInterceptor |
Blob.exceptionInterceptor |
protected ExceptionInterceptor |
WrapperBase.exceptionInterceptor |
private ExceptionInterceptor |
ParameterBindingsImpl.exceptionInterceptor |
private ExceptionInterceptor |
MysqlSQLXML.exceptionInterceptor |
private ExceptionInterceptor |
BlobFromLocator.exceptionInterceptor |
private ExceptionInterceptor |
MysqlSavepoint.exceptionInterceptor |
private ExceptionInterceptor |
DatabaseMetaData.exceptionInterceptor |
private ExceptionInterceptor |
ConnectionImpl.exceptionInterceptor |
private ExceptionInterceptor |
Clob.exceptionInterceptor |
| Modifier and Type | Method and Description |
|---|---|
ExceptionInterceptor |
ConnectionWrapper.getExceptionInterceptor() |
protected ExceptionInterceptor |
MysqlPooledConnection.getExceptionInterceptor() |
ExceptionInterceptor |
StatementImpl.getExceptionInterceptor() |
protected ExceptionInterceptor |
DatabaseMetaData.getExceptionInterceptor() |
ExceptionInterceptor |
ConnectionImpl.getExceptionInterceptor() |
ExceptionInterceptor |
JdbcStatement.getExceptionInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
private static java.sql.SQLException |
ServerPreparedStatement.appendMessageToException(java.sql.SQLException sqlEx,
java.lang.String messageToAppend,
ExceptionInterceptor interceptor) |
static java.lang.Object |
EscapeProcessor.escapeSQL(java.lang.String sql,
java.util.TimeZone connectionTimeZone,
boolean serverSupportsFractionalSecond,
boolean serverTruncatesFractionalSecond,
ExceptionInterceptor exceptionInterceptor)
Escape process one string
|
private static java.lang.String |
EscapeProcessor.processConvertToken(java.lang.String functionToken,
ExceptionInterceptor exceptionInterceptor)
Re-writes {fn convert (expr, type)} as cast(expr AS type)
|
private static void |
EscapeProcessor.processTimestampToken(java.util.TimeZone tz,
java.lang.StringBuilder newSql,
java.lang.String token,
boolean serverSupportsFractionalSecond,
boolean serverTruncatesFractionalSecond,
ExceptionInterceptor exceptionInterceptor) |
private static void |
EscapeProcessor.processTimeToken(java.lang.StringBuilder newSql,
java.lang.String token,
boolean serverSupportsFractionalSecond,
ExceptionInterceptor exceptionInterceptor) |
| Constructor and Description |
|---|
Blob(byte[] data,
ExceptionInterceptor exceptionInterceptor)
Creates a BLOB encapsulating the given binary data
|
Blob(ExceptionInterceptor exceptionInterceptor)
Creates a Blob without data
|
BlobFromLocator(ResultSetImpl creatorResultSetToSet,
int blobColumnIndex,
ExceptionInterceptor exceptionInterceptor)
Creates an updatable BLOB that can update in-place
|
Clob(ExceptionInterceptor exceptionInterceptor) |
Clob(java.lang.String charDataInit,
ExceptionInterceptor exceptionInterceptor) |
MysqlParameterMetadata(Session session,
Field[] fieldInfo,
int parameterCount,
ExceptionInterceptor exceptionInterceptor) |
MysqlSavepoint(ExceptionInterceptor exceptionInterceptor)
Creates an unnamed savepoint.
|
MysqlSavepoint(java.lang.String name,
ExceptionInterceptor exceptionInterceptor)
Creates a named savepoint
|
MysqlSQLXML(ExceptionInterceptor exceptionInterceptor) |
MysqlSQLXML(ResultSetInternalMethods owner,
int index,
ExceptionInterceptor exceptionInterceptor) |
NClob(ExceptionInterceptor exceptionInterceptor) |
NClob(java.lang.String charDataInit,
ExceptionInterceptor exceptionInterceptor) |
| Modifier and Type | Method and Description |
|---|---|
static java.sql.SQLException |
SQLError.createBatchUpdateException(java.sql.SQLException underlyingEx,
long[] updateCounts,
ExceptionInterceptor interceptor)
Create a BatchUpdateException.
|
static java.sql.SQLException |
SQLError.createCommunicationsException(JdbcConnection conn,
PacketSentTimeHolder packetSentTimeHolder,
PacketReceivedTimeHolder packetReceivedTimeHolder,
java.lang.Exception underlyingException,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
SQLError.createCommunicationsException(java.lang.String message,
java.lang.Throwable underlyingException,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
SQLError.createSQLException(java.lang.String message,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
SQLError.createSQLException(java.lang.String message,
java.lang.String sqlState,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
SQLError.createSQLException(java.lang.String message,
java.lang.String sqlState,
int vendorErrorCode,
boolean isTransient,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
SQLError.createSQLException(java.lang.String message,
java.lang.String sqlState,
int vendorErrorCode,
boolean isTransient,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
SQLError.createSQLException(java.lang.String message,
java.lang.String sqlState,
int vendorErrorCode,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
SQLError.createSQLException(java.lang.String message,
java.lang.String sqlState,
int vendorErrorCode,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
SQLError.createSQLException(java.lang.String message,
java.lang.String sqlState,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
SQLError.createSQLFeatureNotSupportedException(java.lang.String message,
java.lang.String sqlState,
ExceptionInterceptor interceptor)
Create a SQLFeatureNotSupportedException or a NotImplemented exception according to the JDBC version in use.
|
private static java.sql.SQLException |
SQLError.runThroughExceptionInterceptor(ExceptionInterceptor exInterceptor,
java.sql.SQLException sqlEx)
Run exception through an ExceptionInterceptor chain.
|
static java.sql.SQLException |
SQLExceptionsMapping.translateException(java.lang.Throwable ex,
ExceptionInterceptor interceptor) |
| Modifier and Type | Method and Description |
|---|---|
ExceptionInterceptor |
MultiHostMySQLConnection.getExceptionInterceptor() |
| Modifier and Type | Field and Description |
|---|---|
private ExceptionInterceptor |
ResultSetImpl.exceptionInterceptor |
private ExceptionInterceptor |
ResultSetMetaData.exceptionInterceptor |
| Modifier and Type | Method and Description |
|---|---|
protected ExceptionInterceptor |
ResultSetImpl.getExceptionInterceptor() |
| Constructor and Description |
|---|
ResultSetMetaData(Session session,
Field[] fields,
boolean useOldAliasBehavior,
boolean treatYearAsDate,
ExceptionInterceptor exceptionInterceptor)
Initialize for a result with a tuple set and a field descriptor set
|
| Modifier and Type | Field and Description |
|---|---|
protected ExceptionInterceptor |
AbstractSocketConnection.exceptionInterceptor |
protected ExceptionInterceptor |
AbstractProtocol.exceptionInterceptor |
| Modifier and Type | Method and Description |
|---|---|
ExceptionInterceptor |
SocketConnection.getExceptionInterceptor() |
ExceptionInterceptor |
Protocol.getExceptionInterceptor() |
ExceptionInterceptor |
AbstractSocketConnection.getExceptionInterceptor() |
ExceptionInterceptor |
AbstractProtocol.getExceptionInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
SocketConnection.connect(java.lang.String host,
int port,
PropertySet propertySet,
ExceptionInterceptor exceptionInterceptor,
Log log,
int loginTimeout)
Connect to the MySQL server and setup a stream connection.
|
static javax.net.ssl.SSLContext |
ExportControlled.getSSLContext(ExportControlled.KeyStoreConf clientCertificateKeyStore,
ExportControlled.KeyStoreConf trustCertificateKeyStore,
boolean fallbackToDefaultTrustStore,
boolean verifyServerCert,
java.lang.String hostName,
ExceptionInterceptor exceptionInterceptor)
Configure the
SSLContext based on the supplier property set. |
void |
ValueEncoder.init(PropertySet pset,
ServerSession serverSession,
ExceptionInterceptor exceptionInterceptor) |
void |
AuthenticationProvider.init(Protocol<M> prot,
PropertySet propertySet,
ExceptionInterceptor exceptionInterceptor) |
| Modifier and Type | Field and Description |
|---|---|
private ExceptionInterceptor |
NativeAuthenticationProvider.exceptionInterceptor |
protected ExceptionInterceptor |
AbstractValueEncoder.exceptionInterceptor |
protected ExceptionInterceptor |
AbstractRowFactory.exceptionInterceptor |
| Modifier and Type | Method and Description |
|---|---|
ExceptionInterceptor |
NativeAuthenticationProvider.getExceptionInterceptor() |
ExceptionInterceptor |
SimplePacketReaderTest.MockSocketConnection.getExceptionInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
NativeSocketConnection.connect(java.lang.String hostName,
int portNumber,
PropertySet propSet,
ExceptionInterceptor excInterceptor,
Log log,
int loginTimeout) |
void |
SimplePacketReaderTest.MockSocketConnection.connect(java.lang.String host,
int port,
PropertySet propertySet,
ExceptionInterceptor exceptionInterceptor,
Log log,
int loginTimeout) |
void |
AbstractValueEncoder.init(PropertySet pset,
ServerSession serverSess,
ExceptionInterceptor excInterceptor) |
void |
NullValueEncoder.init(PropertySet pset,
ServerSession serverSess,
ExceptionInterceptor excInterceptor) |
void |
ByteArrayValueEncoder.init(PropertySet pset,
ServerSession serverSess,
ExceptionInterceptor excInterceptor) |
void |
StringValueEncoder.init(PropertySet pset,
ServerSession serverSess,
ExceptionInterceptor excInterceptor) |
void |
NativeAuthenticationProvider.init(Protocol<NativePacketPayload> prot,
PropertySet propSet,
ExceptionInterceptor excInterceptor) |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
Sha256PasswordPlugin.readRSAKey(java.lang.String pkPath,
PropertySet propertySet,
ExceptionInterceptor exceptionInterceptor) |
| Modifier and Type | Field and Description |
|---|---|
private ExceptionInterceptor |
ResultsetRowsStreaming.exceptionInterceptor |
| Constructor and Description |
|---|
AbstractBufferRow(ExceptionInterceptor exceptionInterceptor) |
BinaryBufferRow(NativePacketPayload buf,
ColumnDefinition cd,
ExceptionInterceptor exceptionInterceptor,
ValueDecoder valueDecoder) |
ByteArrayRow(byte[][] internalRowData,
ExceptionInterceptor exceptionInterceptor) |
ByteArrayRow(byte[][] internalRowData,
ExceptionInterceptor exceptionInterceptor,
ValueDecoder valueDecoder) |
TextBufferRow(NativePacketPayload buf,
ColumnDefinition cd,
ExceptionInterceptor exceptionInterceptor,
ValueDecoder valueDecoder) |
| Modifier and Type | Field and Description |
|---|---|
protected ExceptionInterceptor |
AbstractResultsetRow.exceptionInterceptor |
| Constructor and Description |
|---|
AbstractResultsetRow(ExceptionInterceptor exceptionInterceptor) |
| Modifier and Type | Method and Description |
|---|---|
ExceptionInterceptor |
XProtocol.getExceptionInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
XAuthenticationProvider.init(Protocol<XMessage> prot,
PropertySet propertySet,
ExceptionInterceptor exceptionInterceptor) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
TimeUtil.getCanonicalTimeZone(java.lang.String timezoneStr,
ExceptionInterceptor exceptionInterceptor)
Returns the 'official' Java timezone name for the given timezone
|
static <T> T |
Util.getInstance(java.lang.Class<T> returnType,
java.lang.String className,
java.lang.Class<?>[] argTypes,
java.lang.Object[] args,
ExceptionInterceptor exceptionInterceptor)
Creates an instance of the specified class name through reflection using the given arguments, as long as the class implements the return type specified.
|
static <T> T |
Util.handleNewInstance(java.lang.reflect.Constructor<T> ctor,
java.lang.Object[] args,
ExceptionInterceptor exceptionInterceptor)
Handles constructing new instance with the given constructor and wrapping (or not, as required) the exceptions that could possibly be generated.
|
static <T> java.util.List<T> |
Util.loadClasses(java.lang.Class<T> instancesType,
java.lang.String extensionClassNames,
java.lang.String errorMessageKey,
ExceptionInterceptor exceptionInterceptor) |
private static void |
TimeUtil.loadTimeZoneMappings(ExceptionInterceptor exceptionInterceptor)
Loads a properties file that contains all kinds of time zone mappings.
|
static int |
Util.readBlock(java.io.InputStream i,
byte[] b,
ExceptionInterceptor exceptionInterceptor) |
static int |
Util.readBlock(java.io.InputStream i,
byte[] b,
int length,
ExceptionInterceptor exceptionInterceptor) |
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionRegressionTest.TestBug21934573ExceptionInterceptor |
static class |
ConnectionRegressionTest.TestBug67803ExceptionInterceptor |
static class |
ConnectionRegressionTest.TestBug71850ExceptionInterceptor |
static class |
ResultSetRegressionTest.TestBug67318ExceptionInterceptor |
| Modifier and Type | Method and Description |
|---|---|
ExceptionInterceptor |
ConnectionRegressionTest.TestBug71850ExceptionInterceptor.init(java.util.Properties props,
Log log) |
ExceptionInterceptor |
ConnectionRegressionTest.TestBug67803ExceptionInterceptor.init(java.util.Properties props,
Log log) |
ExceptionInterceptor |
ConnectionRegressionTest.TestBug21934573ExceptionInterceptor.init(java.util.Properties props,
Log log) |
ExceptionInterceptor |
ResultSetRegressionTest.TestBug67318ExceptionInterceptor.init(java.util.Properties props,
Log log) |