[#7971] Add missing delegation support to JDBC 4.3 methods in DefaultConnection and similar types
This commit is contained in:
parent
57ed9aee42
commit
14eb5acdd3
@ -50,6 +50,7 @@ import java.sql.SQLException;
|
||||
import java.sql.SQLWarning;
|
||||
import java.sql.SQLXML;
|
||||
import java.sql.Savepoint;
|
||||
import java.sql.ShardingKey;
|
||||
import java.sql.Statement;
|
||||
import java.sql.Struct;
|
||||
import java.util.Map;
|
||||
@ -355,4 +356,42 @@ public class DefaultConnection extends JDBC41Connection implements Connection {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* [java-9] */
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// JDBC 4.3
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public void beginRequest() throws SQLException {
|
||||
getDelegate().beginRequest();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void endRequest() throws SQLException {
|
||||
getDelegate().endRequest();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setShardingKeyIfValid(ShardingKey shardingKey, ShardingKey superShardingKey, int timeout) throws SQLException {
|
||||
return getDelegate().setShardingKeyIfValid(shardingKey, superShardingKey, timeout);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setShardingKeyIfValid(ShardingKey shardingKey, int timeout) throws SQLException {
|
||||
return getDelegate().setShardingKeyIfValid(shardingKey, timeout);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setShardingKey(ShardingKey shardingKey, ShardingKey superShardingKey) throws SQLException {
|
||||
getDelegate().setShardingKey(shardingKey, superShardingKey);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setShardingKey(ShardingKey shardingKey) throws SQLException {
|
||||
getDelegate().setShardingKey(shardingKey);
|
||||
}
|
||||
|
||||
/* [/java-9] */
|
||||
}
|
||||
|
||||
@ -350,4 +350,33 @@ public class DefaultStatement extends JDBC41Statement implements Statement {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* [java-9] */
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// JDBC 4.3
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public String enquoteLiteral(String val) throws SQLException {
|
||||
return getDelegate().enquoteLiteral(val);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String enquoteIdentifier(String identifier, boolean alwaysQuote) throws SQLException {
|
||||
return getDelegate().enquoteIdentifier(identifier, alwaysQuote);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSimpleIdentifier(String identifier) throws SQLException {
|
||||
return getDelegate().isSimpleIdentifier(identifier);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String enquoteNCharLiteral(String val) throws SQLException {
|
||||
return getDelegate().enquoteNCharLiteral(val);
|
||||
}
|
||||
|
||||
/* [/java-9] */
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user