public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); } }
/** * Determines whether a sql statement is an update (INSERT, UPDATE, or DELETE). * Throws exception if SQL statement appears to be invalid (because it's null, has * 0 length, etc. * @param sql Sql string * @return True if INSERT, UPDATE, or DELETE, and false otherwise * @throws IllegalArgumentException If sql string is invalid and neither a * query or an update */ public static boolean isUpdateSql(String sql) throws IllegalArgumentException { String keyWord = getKeyword(sql); return updateKeywords.contains(keyWord); }
public void helpTest(String sql, boolean isUpdate) { boolean actual = SqlUtil.isUpdateSql(sql); assertEquals(isUpdate, actual); }
/** * @see java.sql.Blob#setBytes(long, byte[]) */ public int setBytes(long pos, byte[] bytes) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); } }
/** * @see query timeouts and the synchronousTtl setting if using socket connections */ public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
/** * @see java.sql.Blob#truncate(long) */ public void truncate(long len) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); } }
/** * @see java.sql.Blob#setBytes(long, byte[], int, int) */ public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
/** * @see query timeouts and the synchronousTtl setting if using socket connections */ public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
/** * @see java.sql.Blob#setBytes(long, byte[]) */ public int setBytes(long pos, byte[] bytes) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
/** * @see java.sql.Blob#setBinaryStream(long) */ public OutputStream setBinaryStream(long pos) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
/** * @see java.sql.Blob#setBinaryStream(long) */ public OutputStream setBinaryStream(long pos) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
/** * @see java.sql.Blob#truncate(long) */ public void truncate(long len) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); } }
/** * @see java.sql.Blob#setBytes(long, byte[], int, int) */ public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
public <T extends Result> T setResult(Class<T> resultClass) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
public int setString(long arg0, String arg1, int arg2, int arg3) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }
public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException { throw SqlUtil.createFeatureNotSupportedException(); }