|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.tools.dblook.DB_Roles
public class DB_Roles
| Constructor Summary | |
|---|---|
DB_Roles()
|
|
| Method Summary | |
|---|---|
static void |
doRoles(java.sql.Connection conn)
Generate role definition statements and role grant statements. |
private static void |
generateRoleDefinitions(java.sql.ResultSet rs)
Generate role definition statements |
private static void |
generateRoleGrants(java.sql.ResultSet rs)
|
private static java.lang.String |
roleDefinitionStatement(java.sql.ResultSet rs,
java.lang.String roleName)
Generate a role definition statement for the current row |
private static java.lang.String |
roleGrantStatement(java.sql.ResultSet rs,
java.lang.String roleName,
java.lang.String grantee,
boolean isWithAdminOption)
Generate role grant statement for the current row |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DB_Roles()
| Method Detail |
|---|
public static void doRoles(java.sql.Connection conn)
throws java.sql.SQLException
conn - Connection to use
java.sql.SQLException
private static void generateRoleDefinitions(java.sql.ResultSet rs)
throws java.sql.SQLException
rs - Result set holding required information
java.sql.SQLException
private static java.lang.String roleDefinitionStatement(java.sql.ResultSet rs,
java.lang.String roleName)
throws java.sql.SQLException
rs - @{code ResultSet} holding role definition informationroleName - The role defined, already quoted
java.sql.SQLException
private static void generateRoleGrants(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
private static java.lang.String roleGrantStatement(java.sql.ResultSet rs,
java.lang.String roleName,
java.lang.String grantee,
boolean isWithAdminOption)
throws java.sql.SQLException
rs - @{ResultSet} holding role grant informationroleName - The role granted, already quotedgrantee - The authorization id to whom the role is granted (a role
or a user), already quotedisWithAdminOption - @{code true} if ADMIN OPTION was used for the
grant
java.sql.SQLException
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||