Uses of Class
net.risesoft.api.utils.jdbc.DataBaseType
-
Packages that use DataBaseType Package Description net.risesoft.api.utils.jdbc -
-
Uses of DataBaseType in net.risesoft.api.utils.jdbc
Methods in net.risesoft.api.utils.jdbc that return DataBaseType Modifier and Type Method Description static DataBaseTypeDataBaseType. valueOf(String name)Returns the enum constant of this type with the specified name.static DataBaseType[]DataBaseType. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in net.risesoft.api.utils.jdbc with parameters of type DataBaseType Modifier and Type Method Description 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)
-