Top Description Fields Constructors Methods
org.apache.derby.impl.sql.compile

pack-priv Class TablePrivilegesNode

extends QueryTreeNode
Class Inheritance
Imports
java.util.ArrayList, .List, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.iapi.services.io.FormatableBitSet, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.sql.depend.DependencyManager, .Provider, .ProviderInfo, org.apache.derby.iapi.sql.dictionary.AliasDescriptor, .DataDictionary, .TableDescriptor, .ViewDescriptor, org.apache.derby.impl.sql.execute.PrivilegeInfo, .TablePrivilegeInfo

This class represents a set of privileges on one table.

Field Summary

Modifier and TypeField and Description
private boolean[]
private FormatableBitSet[]
private ResultColumnList[]
private List<Provider>
private TableDescriptor
Inherited from org.apache.derby.impl.sql.compile.QueryTreeNode:
AUTOINCREMENT_CREATE_MODIFYAUTOINCREMENT_CYCLEAUTOINCREMENT_INC_INDEXAUTOINCREMENT_IS_AUTOINCREMENT_INDEXAUTOINCREMENT_START_INDEX

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addAction(int
The action type
action
,
ResultColumnList
The set of privilege columns. Null for all columns
privilegeColumnList
)

Add one action to the privileges for this table

pack-priv void
addAll()

Add all actions

pack-priv void
bind(TableDescriptor
The table descriptor
td
,
boolean
grant if true; revoke if false
isGrant
)

Bind.

private void
bindPrivilegesForView(TableDescriptor
the TableDescriptor to check
td
)

Retrieve all the underlying stored dependencies such as table(s), view(s) and routine(s) descriptors which the view depends on.

pack-priv PrivilegeInfo

Returns:

PrivilegeInfo for this node
makePrivilegeInfo
()

Inherited from org.apache.derby.impl.sql.compile.QueryTreeNode:
acceptacceptChildrenaddTagaddUDTUsagePrivaddUDTUsagePrivbindOffsetFetchbindRowMultiSetbindUserCatalogTypebindUserTypecheckReliabilitycheckReliabilityconvertDefaultNodecopyTagsFromcreateTypeDependencydebugFlushdebugPrintdisablePrivilegeCollectionformatNodeStringgenerategenerateAuthorizeCheckgetBeginOffsetgetClassFactorygetCompilerContextgetContextgetContextManagergetDataDictionarygetDependencyManagergetEndOffsetgetExecutionFactorygetGenericConstantActionFactorygetIntPropertygetLanguageConnectionContextgetLongPropertygetNullNodegetOffsetOrderedNodesgetOptimizerFactorygetOptimizerTracergetParameterTypesgetSchemaDescriptorgetSchemaDescriptorgetStatementTypegetTableDescriptorgetTypeCompilergetUDTDescisAtomicisPrivilegeCollectionRequiredisSessionSchemaisSessionSchemamakeConstantActionmakeTableNamemakeTableNamenodeHeaderoptimizerTracingIsOnorReliabilityparseSearchConditionparseStatementprintLabelprintSubNodesreferencesSessionSchemaresolveTableToSynonymsetBeginOffsetsetEndOffsetsetRefActionInfostackPrinttaggedWithtoStringtreePrinttreePrintverifyClassExist

Field Detail

actionAllowedback to summary
private boolean[] actionAllowed
columnBitSetsback to summary
private FormatableBitSet[] columnBitSets
columnListsback to summary
private ResultColumnList[] columnLists
descriptorListback to summary
private List<Provider> descriptorList
tdback to summary
private TableDescriptor td

Constructor Detail

TablePrivilegesNodeback to summary
pack-priv TablePrivilegesNode(ContextManager cm)

Method Detail

addActionback to summary
pack-priv void addAction(int action, ResultColumnList privilegeColumnList)

Add one action to the privileges for this table

Parameters
action:int

The action type

privilegeColumnList:ResultColumnList

The set of privilege columns. Null for all columns

Exceptions
StandardException:
standard error policy.
addAllback to summary
pack-priv void addAll()

Add all actions

bindback to summary
pack-priv void bind(TableDescriptor td, boolean isGrant) throws StandardException

Bind.

Parameters
td:TableDescriptor

The table descriptor

isGrant:boolean

grant if true; revoke if false

bindPrivilegesForViewback to summary
private void bindPrivilegesForView(TableDescriptor td) throws StandardException

Retrieve all the underlying stored dependencies such as table(s), view(s) and routine(s) descriptors which the view depends on. This information is then passed to the runtime to determine if the privilege is grantable to the grantees by this grantor at execution time. Go through the providers regardless who the grantor is since the statement cache may be in effect.

Parameters
td:TableDescriptor

the TableDescriptor to check

Exceptions
StandardException:
standard error policy.
makePrivilegeInfoback to summary
pack-priv PrivilegeInfo makePrivilegeInfo()
Returns:PrivilegeInfo

PrivilegeInfo for this node