Class ProtocolLoggingProxy
java.lang.Object
org.mariadb.jdbc.internal.logging.ProtocolLoggingProxy
- All Implemented Interfaces:
InvocationHandler
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProtocolLoggingProxy
Constructor. Will create a proxy around protocol to log queries.- Parameters:
protocol- protocol to proxyoptions- options
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
subQuery
Get query, truncated if to big.- Parameters:
sql- current query- Returns:
- possibly truncated query if too big
-