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

pack-priv Class SYSCOLPERMSRowFactory

extends PermissionsCatalogRowFactory
Class Inheritance
Imports
org.apache.derby.iapi.sql.dictionary.ColPermsDescriptor, .DataDescriptorGenerator, .DataDictionary, .StatisticsDescriptor, .SystemColumn, .TupleDescriptor, .PermissionsDescriptor, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.execute.ExecRow, .ExecIndexRow, .ExecutionFactory, org.apache.derby.iapi.types.SQLChar, .TypeId, .UserType, .DataValueFactory, .RowLocation, .DataTypeDescriptor, .DataValueDescriptor, .NumberDataValue, .StringDataValue, org.apache.derby.iapi.services.uuid.UUIDFactory, org.apache.derby.catalog.UUID, .Statistics, org.apache.derby.iapi.services.io.FormatableBitSet, java.sql.Timestamp

Factory for creating a SYSCOLPERMS row.

Field Summary

Modifier and TypeField and Description
private static final int
pack-priv static final int
private static final int
protected static final int
private static final int
public static final int
pack-priv static final int
private static final int
private static final int[][]
private static final boolean[]
private static final int
pack-priv static final int
pack-priv static final String
protected static final int
private static final int
private static final String[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public SystemColumn[]
buildColumnList()

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildColumnList.

builds a column list for the catalog

public TupleDescriptor
buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary)

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildDescriptor.

builds a tuple descriptor from a row

public ExecIndexRow
buildIndexKeyRow(int indexNumber, PermissionsDescriptor
a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.
perm
)

Implements abstract org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.buildIndexKeyRow.

builds an index key row for a given index number.

public int
getPrimaryKeyIndexNumber()

Overrides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.getPrimaryKeyIndexNumber.

Get the index number for the primary key index on this catalog.

public ExecRow
makeRow(TupleDescriptor td, TupleDescriptor parent)

Overrides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.makeRow.

most subclasses should provide this method.

public 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
)

Implements abstract org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.orPermissions.

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

public 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
)

Implements abstract org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.removePermissions.

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

public void
setUUIDOfThePassedDescriptor(ExecRow
The row from the system table for the passed permission descriptor
row
,
PermissionsDescriptor
Permission descriptor
perm
)

Implements abstract org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.setUUIDOfThePassedDescriptor.

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

Inherited from org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory:
getAuthorizationIDgetAuthorizationIDgetNullAuthorizationID

Field Detail

COLPERMSID_COL_NUMback to summary
private static final int COLPERMSID_COL_NUM
COLPERMSID_INDEX_NUMback to summary
pack-priv static final int COLPERMSID_INDEX_NUM
COLUMN_COUNTback to summary
private static final int COLUMN_COUNT
COLUMNS_COL_NUMback to summary
protected static final int COLUMNS_COL_NUM
GRANTEE_COL_NUMback to summary
private static final int GRANTEE_COL_NUM
GRANTEE_COL_NUM_IN_GRANTEE_TABLE_TYPE_GRANTOR_INDEXback to summary
public static final int GRANTEE_COL_NUM_IN_GRANTEE_TABLE_TYPE_GRANTOR_INDEX
GRANTEE_TABLE_TYPE_GRANTOR_INDEX_NUMback to summary
pack-priv static final int GRANTEE_TABLE_TYPE_GRANTOR_INDEX_NUM
GRANTOR_COL_NUMback to summary
private static final int GRANTOR_COL_NUM
indexColumnPositionsback to summary
private static final int[][] indexColumnPositions

Hides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.indexColumnPositions.

indexUniquenessback to summary
private static final boolean[] indexUniqueness

Hides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.indexUniqueness.

TABLEID_COL_NUMback to summary
private static final int TABLEID_COL_NUM
TABLEID_INDEX_NUMback to summary
pack-priv static final int TABLEID_INDEX_NUM
TABLENAME_STRINGback to summary
pack-priv static final String TABLENAME_STRING
TOTAL_NUM_OF_INDEXESback to summary
protected static final int TOTAL_NUM_OF_INDEXES
TYPE_COL_NUMback to summary
private static final int TYPE_COL_NUM
uuidsback to summary
private static final String[] uuids

Constructor Detail

SYSCOLPERMSRowFactoryback to summary
pack-priv SYSCOLPERMSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)

Method Detail

buildColumnListback to summary
public SystemColumn[] buildColumnList() throws StandardException

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildColumnList.

builds a column list for the catalog

buildDescriptorback to summary
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException

Implements abstract org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.buildDescriptor.

builds a tuple descriptor from a row

buildIndexKeyRowback to summary
public ExecIndexRow buildIndexKeyRow(int indexNumber, PermissionsDescriptor perm) throws StandardException

Implements abstract org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.buildIndexKeyRow.

builds an index key row for a given index number.

Parameters
perm:PermissionsDescriptor

Doc from org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.buildIndexKeyRow.

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

Exceptions
StandardException:

Doc from org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.buildIndexKeyRow.

standard error policy

getPrimaryKeyIndexNumberback to summary
public int getPrimaryKeyIndexNumber()

Overrides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.getPrimaryKeyIndexNumber.

Doc from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.getPrimaryKeyIndexNumber.

Get the index number for the primary key index on this catalog.

Returns:int

a 0-based number

makeRowback to summary
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException

Overrides org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.makeRow.

Doc from org.apache.derby.iapi.sql.dictionary.CatalogRowFactory.makeRow.

most subclasses should provide this method. One or two oddball cases in Replication and SysSTATEMENTSRowFactory don't. For those we call makeRow with the additional arguments.

orPermissionsback to summary
public int orPermissions(ExecRow row, PermissionsDescriptor perm, boolean[] colsChanged) throws StandardException

Implements abstract org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.orPermissions.

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
public int removePermissions(ExecRow row, PermissionsDescriptor perm, boolean[] colsChanged) throws StandardException

Implements abstract org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.removePermissions.

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
public void setUUIDOfThePassedDescriptor(ExecRow row, PermissionsDescriptor perm) throws StandardException

Implements abstract org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.setUUIDOfThePassedDescriptor.

Doc from org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory.setUUIDOfThePassedDescriptor.

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

See Also
PermissionsCatalogRowFactory#setUUIDOfThePassedDescriptor