类的使用
net.risesoft.api.utils.jdbc.DataBaseType
-
使用DataBaseType的程序包 程序包 说明 net.risesoft.api.utils.jdbc -
-
net.risesoft.api.utils.jdbc中DataBaseType的使用
返回DataBaseType的net.risesoft.api.utils.jdbc中的方法 修饰符和类型 方法 说明 static DataBaseTypeDataBaseType. valueOf(String name)返回带有指定名称的该类型的枚举常量。static DataBaseType[]DataBaseType. values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。参数类型为DataBaseType的net.risesoft.api.utils.jdbc中的方法 修饰符和类型 方法 说明 static booleanDBUtil. checkDeletePrivilege(DataBaseType dataBaseType, String jdbcURL, String userName, String password, List<String> tableList)static booleanDBUtil. checkInsertPrivilege(DataBaseType dataBaseType, String jdbcURL, String userName, String password, List<String> tableList)static StringDBUtil. chooseJdbcUrl(DataBaseType dataBaseType, List<String> jdbcUrls, String username, String password, List<String> preSql, boolean checkSlave)static StringDBUtil. chooseJdbcUrlWithoutRetry(DataBaseType dataBaseType, List<String> jdbcUrls, String username, String password, List<String> preSql, boolean checkSlave)static org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>>DBUtil. getColumnMetaData(DataBaseType dataBaseType, String jdbcUrl, String user, String pass, String tableName, String column)static ConnectionDBUtil. getConnection(DataBaseType dataBaseType, String jdbcUrl, String username, String password)Get direct JDBC connectionstatic ConnectionDBUtil. getConnection(DataBaseType dataBaseType, String jdbcUrl, String username, String password, String socketTimeout)static ConnectionDBUtil. getConnectionWithoutRetry(DataBaseType dataBaseType, String jdbcUrl, String username, String password)Get direct JDBC connectionstatic ConnectionDBUtil. getConnectionWithoutRetry(DataBaseType dataBaseType, String jdbcUrl, String username, String password, String socketTimeout)static List<String>DBUtil. getTableColumns(DataBaseType dataBaseType, String jdbcUrl, String user, String pass, String tableName)static List<String>DBUtil. getTableColumnsByConn(DataBaseType dataBaseType, Connection conn, String tableName, String basicMsg)static booleanDBUtil. hasInsertPrivilege(DataBaseType dataBaseType, String jdbcURL, String userName, String password, List<String> tableList)检查表是否具有insert 权限 insert on *.* 或者 insert on database.* 时验证通过 当insert on database.tableName时,确保tableList中的所有table有insert 权限,验证通过 其它验证都不通过static voidDBUtil. sqlValid(String sql, DataBaseType dataBaseType)static booleanDBUtil. testConnWithoutRetry(DataBaseType dataBaseType, String url, String user, String pass, boolean checkSlave)static booleanDBUtil. testConnWithoutRetry(DataBaseType dataBaseType, String url, String user, String pass, List<String> preSql)
-