| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | columnPrivStatement(ResultSet
ResultSet with info for this GRANT statement rs, String Full qualified name of the table fullName, String Authorization name for this GRANT authName, ResultSet ResultSet for mapping column numbers to names rsCols)
|
| public static void | doAuthorizations(Connection
Connection to use conn, boolean True if the database level is 10.6 or higher at10_6)Generate Grant and Revoke statements if sqlAuthorization is on |
| public static void | generateAggregatePrivs(ResultSet
ResultSet holding required information rs)Generate aggregate privilege statements |
| private static void | generateColumnPrivs(ResultSet
ResultSet holding column privilege information rs, Connection Connection to use. Used to get another ResultSet conn)Generate column privilege statements |
| public static void | generateRoutinePrivs(ResultSet
ResultSet holding required information rs)Generate routine privilege statements |
| public static void | generateSequencePrivs(ResultSet
ResultSet holding required information rs)Generate sequence privilege statements |
| private static void | generateTablePrivs(ResultSet
Result set holding required information rs)Generate table privilege statements |
| public static void | generateUDTPrivs(ResultSet
ResultSet holding required information rs)Generate udt privilege statements |
| private static String | |
| private static String | mapColumnsToNames(String
List of columns to grant required privs columns, ResultSet ResultSet for mapping column numbers to names rsCols)Generate one column grant statement |
| private static String | |
| private static String | |
| private static String | |
| private static String | tablePrivStatement(ResultSet
ResultSet holding tableperm information rs, String Table's qualified name fullName, String Authorization id for grant statement authName)Generate table privilege statement for the current row |
| DB_GrantRevoke | back to summary |
|---|---|
| public DB_GrantRevoke() | |
| columnPrivStatement | back to summary |
|---|---|
| private static String columnPrivStatement(ResultSet rs, String fullName, String authName, ResultSet rsCols) throws SQLException | |
| doAuthorizations | back to summary |
|---|---|
| public static void doAuthorizations(Connection conn, boolean at10_6) throws SQLException Generate Grant and Revoke statements if sqlAuthorization is on
| |
| generateAggregatePrivs | back to summary |
|---|---|
| public static void generateAggregatePrivs(ResultSet rs) throws SQLException Generate aggregate privilege statements
| |
| generateColumnPrivs | back to summary |
|---|---|
| private static void generateColumnPrivs(ResultSet rs, Connection conn) throws SQLException Generate column privilege statements
| |
| generateRoutinePrivs | back to summary |
|---|---|
| public static void generateRoutinePrivs(ResultSet rs) throws SQLException Generate routine privilege statements
| |
| generateSequencePrivs | back to summary |
|---|---|
| public static void generateSequencePrivs(ResultSet rs) throws SQLException Generate sequence privilege statements
| |
| generateTablePrivs | back to summary |
|---|---|
| private static void generateTablePrivs(ResultSet rs) throws SQLException Generate table privilege statements
| |
| generateUDTPrivs | back to summary |
|---|---|
| public static void generateUDTPrivs(ResultSet rs) throws SQLException Generate udt privilege statements
| |
| genericPrivStatement | back to summary |
|---|---|
| private static String genericPrivStatement(String fullName, String authName, String permission, String objectType) throws SQLException | |
| mapColumnsToNames | back to summary |
|---|---|
| private static String mapColumnsToNames(String columns, ResultSet rsCols) throws SQLException Generate one column grant statement | |
| privTypeToString | back to summary |
|---|---|
| private static String privTypeToString(String privType) | |
| routinePrivStatement | back to summary |
|---|---|
| private static String routinePrivStatement(String fullName, String authName, String aliasType) throws SQLException | |
| separatorStr | back to summary |
|---|---|
| private static String separatorStr(boolean addSeparator) | |
| tablePrivStatement | back to summary |
|---|---|
| private static String tablePrivStatement(ResultSet rs, String fullName, String authName) throws SQLException Generate table privilege statement for the current row | |