Top Fields Constructors Methods
org.apache.derby.impl.sql.catalog

pack-priv abstract Class PermissionsCatalogRowFactory

extends CatalogRowFactory
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.catalog.SYSCOLPERMSRowFactory, org.apache.derby.impl.sql.catalog.SYSPERMSRowFactory, org.apache.derby.impl.sql.catalog.SYSROUTINEPERMSRowFactory, org.apache.derby.impl.sql.catalog.SYSTABLEPERMSRowFactory
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.Limits, org.apache.derby.iapi.services.uuid.UUIDFactory, org.apache.derby.iapi.sql.dictionary.CatalogRowFactory, .PermissionsDescriptor, org.apache.derby.iapi.sql.execute.ExecIndexRow, .ExecRow, .ExecutionFactory, org.apache.derby.iapi.types.DataValueDescriptor, .DataValueFactory, .RowLocation, .SQLVarchar, .StringDataValue

Field Summary

Inherited from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory:
dvfheapUUIDindexColumnPositionsindexNamesindexUniquenessindexUUIDtableUUID

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract ExecIndexRow
buildIndexKeyRow(int indexNumber, PermissionsDescriptor
a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.
perm
)

Build an index key row from a permission descriptor.

pack-priv DataValueDescriptor
pack-priv String

Returns:

The internal authorization ID
getAuthorizationID
(ExecRow row, int
1 based
columnPos
)

Extract an internal authorization ID from a row.

pack-priv DataValueDescriptor
pack-priv abstract int

Returns:

The number of columns that were changed.
orPermissions
(ExecRow
an existing row
row
,
PermissionsDescriptor
a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.
perm
,
boolean[]
An array with one element for each column in row. It is updated to indicate which columns in row were changed
colsChanged
)

Or a set of permissions in with a row from this catalog table

pack-priv abstract int

Returns:

-1 if there are no permissions left in the row, otherwise the number of columns that were changed.
removePermissions
(ExecRow
an existing row
row
,
PermissionsDescriptor
a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.
perm
,
boolean[]
An array with one element for each column in row. It is updated to indicate which columns in row were changed
colsChanged
)

Remove a set of permissions from a row from this catalog table

pack-priv abstract void
setUUIDOfThePassedDescriptor(ExecRow
The row from the system table for the passed permission descriptor
row
,
PermissionsDescriptor
Permission descriptor
perm
)

Set the uuid of the passed permission descriptor to the uuid of the row from the system table.

Inherited from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory:
buildColumnListbuildDescriptorgenerateIndexNamegetCanonicalHeapNamegetCanonicalHeapUUIDgetCanonicalIndexUUIDgetCanonicalTableUUIDgetCatalogNamegetCreateHeapPropertiesgetCreateIndexPropertiesgetDataValueFactorygetExecutionFactorygetHeapColumnCountgetIndexColumnCountgetIndexColumnPositionsgetIndexNamegetNumIndexesgetPrimaryKeyIndexNumbergetUUIDFactoryinitInfoisIndexUniquemakeEmptyRowmakeEmptyRowForCurrentVersionmakeRow

Constructor Detail

PermissionsCatalogRowFactoryback to summary
pack-priv PermissionsCatalogRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)

Method Detail

buildIndexKeyRowback to summary
pack-priv abstract ExecIndexRow buildIndexKeyRow(int indexNumber, PermissionsDescriptor perm) throws StandardException

Build an index key row from a permission descriptor. A key row does not include the RowLocation column.

Parameters
perm:PermissionsDescriptor

a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.

Exceptions
StandardException:
standard error policy
getAuthorizationIDback to summary
pack-priv DataValueDescriptor getAuthorizationID(String value)
getAuthorizationIDback to summary
pack-priv String getAuthorizationID(ExecRow row, int columnPos) throws StandardException

Extract an internal authorization ID from a row.

Parameters
columnPos:int

1 based

Returns:String

The internal authorization ID

getNullAuthorizationIDback to summary
pack-priv DataValueDescriptor getNullAuthorizationID()
orPermissionsback to summary
pack-priv abstract int orPermissions(ExecRow row, PermissionsDescriptor perm, boolean[] colsChanged) throws StandardException

Or a set of permissions in with a row from this catalog table

Parameters
row:ExecRow

an existing row

perm:PermissionsDescriptor

a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.

colsChanged:boolean[]

An array with one element for each column in row. It is updated to indicate which columns in row were changed

Returns:int

The number of columns that were changed.

Exceptions
StandardException:
standard error policy
removePermissionsback to summary
pack-priv abstract int removePermissions(ExecRow row, PermissionsDescriptor perm, boolean[] colsChanged) throws StandardException

Remove a set of permissions from a row from this catalog table

Parameters
row:ExecRow

an existing row

perm:PermissionsDescriptor

a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.

colsChanged:boolean[]

An array with one element for each column in row. It is updated to indicate which columns in row were changed

Returns:int

-1 if there are no permissions left in the row, otherwise the number of columns that were changed.

Exceptions
StandardException:
standard error policy
setUUIDOfThePassedDescriptorback to summary
pack-priv abstract void setUUIDOfThePassedDescriptor(ExecRow row, PermissionsDescriptor perm) throws StandardException

Set the uuid of the passed permission descriptor to the uuid of the row from the system table. DataDictionary will make this call before calling the dependency manager to send invalidation messages to the objects dependent on the permission descriptor's uuid.

Parameters
row:ExecRow

The row from the system table for the passed permission descriptor

perm:PermissionsDescriptor

Permission descriptor