ConstantAction
class CreateRoleConstantAction extends DDLConstantAction
Modifier and Type | Field | Description |
---|---|---|
private java.lang.String |
roleName |
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
Constructor | Description |
---|---|
CreateRoleConstantAction(java.lang.String roleName) |
Make the ConstantAction for a CREATE ROLE statement.
|
Modifier and Type | Method | Description |
---|---|---|
void |
executeConstantAction(Activation activation) |
This is the guts of the Execution-time logic for CREATE ROLE.
|
private boolean |
knownUser(java.lang.String roleName,
java.lang.String currentUser,
LanguageConnectionContext lcc,
DataDictionary dd,
TransactionController tc) |
Heuristically, try to determine is a proposed role identifier
is already known to Derby as a user name.
|
java.lang.String |
toString() |
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
public CreateRoleConstantAction(java.lang.String roleName)
roleName
- The name of the role being createdpublic void executeConstantAction(Activation activation) throws StandardException
activation
- The execution environment for this constant action.StandardException
- Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
public java.lang.String toString()
toString
in class java.lang.Object
private boolean knownUser(java.lang.String roleName, java.lang.String currentUser, LanguageConnectionContext lcc, DataDictionary dd, TransactionController tc) throws StandardException
StandardException
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.