com.mysql.cj.exceptions.CJOperationNotSupportedException Java Examples

The following examples show how to use com.mysql.cj.exceptions.CJOperationNotSupportedException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MySQLJDBCReflections.java    From quarkus with Apache License 2.0 5 votes vote down vote up
@BuildStep
void registerExceptionsForReflection(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, CJCommunicationsException.class.getName()));
    reflectiveClass
            .produce(new ReflectiveClassBuildItem(false, false, CJConnectionFeatureNotAvailableException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, CJOperationNotSupportedException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, CJTimeoutException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, CJPacketTooBigException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, CJException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, AssertionFailedException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, CJOperationNotSupportedException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, ClosedOnExpiredPasswordException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, ConnectionIsClosedException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, DataConversionException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, DataReadException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, DataTruncationException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, DeadlockTimeoutRollbackMarker.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, FeatureNotAvailableException.class.getName()));
    reflectiveClass
            .produce(new ReflectiveClassBuildItem(false, false, InvalidConnectionAttributeException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, NumberOutOfRange.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, OperationCancelledException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, PasswordExpiredException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, PropertyNotModifiableException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, RSAException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, SSLParamsException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, StatementIsClosedException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, StreamingNotifiable.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, UnableToConnectException.class.getName()));
    reflectiveClass
            .produce(new ReflectiveClassBuildItem(false, false, UnsupportedConnectionStringException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, WrongArgumentException.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.mysql.cj.jdbc.MysqlXAException"));
    reflectiveClass
            .produce(new ReflectiveClassBuildItem(false, false, StandardLoadBalanceExceptionChecker.class.getName()));
    reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, NdbLoadBalanceExceptionChecker.class.getName()));
}
 
Example #2
Source File: XProtocol.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void setPacketSentTimeHolder(PacketSentTimeHolder packetSentTimeHolder) {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #3
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String getServerDefaultCharset() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #4
Source File: XProtocol.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PacketSentTimeHolder getPacketSentTimeHolder() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #5
Source File: ProtocolEntityFactory.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
default Resultset.Type getResultSetType() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not allowed");
}
 
Example #6
Source File: XProtocol.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public XMessage checkErrorMessage() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #7
Source File: XProtocol.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public XMessage sendCommand(Message queryPacket, boolean skipCheck, int timeoutMillis) {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #8
Source File: XProtocol.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public <T extends ProtocolEntity> T read(Class<T> requiredClass, ProtocolEntityFactory<T, XMessage> protocolEntityFactory) throws IOException {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #9
Source File: NativeMessageBuilder.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public NativePacketPayload buildClose() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #10
Source File: XProtocol.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void setLocalInfileInputStream(InputStream stream) {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #11
Source File: XProtocol.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String getQueryComment() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #12
Source File: XProtocol.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void setQueryComment(String comment) {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #13
Source File: StatementImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public long getServerStatementId() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, Messages.getString("Statement.65"));
}
 
Example #14
Source File: SyncMessageSender.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void send(byte[] message, int messageLen, byte messageSequence) throws IOException {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #15
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public void setServerTimeZone(TimeZone serverTimeZone) {
    //this.serverTimeZone = serverTimeZone;
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #16
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean isAutoCommit() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #17
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean useAnsiQuotedIdentifiers() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #18
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean isNoBackslashEscapesSet() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #19
Source File: NativeSocketConnection.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public AsynchronousSocketChannel getAsynchronousSocketChannel() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #20
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean isLowerCaseTableNames() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #21
Source File: ProtocolEntityFactory.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
default int getFetchSize() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not allowed");
}
 
Example #22
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String getCharacterSetResultsOnServer() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #23
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void setMetadataCollationIndex(int metadataCollationIndex) {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #24
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void setCharacterSetMetadata(String characterSetMetadata) {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #25
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String getCharacterSetMetadata() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #26
Source File: CoreSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeListener(SessionEventListener l) {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #27
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public int getMaxBytesPerChar(String javaCharsetName) {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #28
Source File: NativeSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public <M extends Message, RES_T, R> RES_T query(M message, Predicate<Row> filterRow, Function<Row, R> mapRow, Collector<R, ?, RES_T> collector) {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #29
Source File: XServerSession.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String getErrorMessageEncoding() {
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}
 
Example #30
Source File: XAsyncSocketConnection.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public NetworkResources getNetworkResources() {
    // TODO not supported ?
    throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported");
}